WWW::RobotRules::DB\_File(3) User Contributed Perl Documentation WWW::RobotRules::DB\_File(3)

# [NAME](#NAME)

WWW::RobotRules::DB\_File - Parse robots.txt files using a disk cache

# [SYNOPSIS](#SYNOPSIS)

```
 require WWW::RobotRules::DB_File;
 require LWP::RobotUA;
 #Create a robot useragent that uses a disk caching RobotRules
 $ua = WWW::RobotUA->new( 'my-robot/1.0', 'me@foo.com' ,
       WWW::RobotRules::DB_File->new( 'my-robot/1.0', '/path/cachefile' ));
 #The just use $ua as usual
 $res=$ua->request($req);
```

# [DESCRIPTION](#DESCRIPTION)

This is a subclass of WWW::RobotRules that uses the DB\_File package to implement disk caching of robots.txt.

# [METHODS](#METHODS)

This is a subclass of WWW::RobotRules, so it implements the same methods

$rules new WWW::RobotRules::DB\_File 'my-robot/1.0', /path/cachefile

This is the constructor. The only difference from the original constructor from WWW::RobotRules is that you here has to specify a cache file as well.

# [SEE ALSO](#SEE_ALSO)

WWW::RobotRules

# [AUTHOR](#AUTHOR)

Hakan Ardo &lt;hakan@munin.ub2.lu.se&gt;

2026-08-26 perl v5.44.0

---

Document: WWW::RobotRules::DB_File(3pm) from perl-www-robotrules 6.02-r9 (Chainguard OS)
Source: https://github.com/gisle/www-robotrules.git
