Source Package: perl-WWW-RobotRules (6.30.0-1.3)
Database of robots.txt-derived permissions
This module parses _/robots.txt_ files as specified in at https://www.robotstxt.org/robotstxt.html. Webmasters can use the _/robots.txt_ file to forbid conforming robots from accessing parts of their web site. The parsed files are kept in a 'WWW::RobotRules' object, and this object provides methods to check if access to a given URL is prohibited. The same 'WWW::RobotRules' object can be used for one or more parsed _/robots.txt_ files on any number of hosts. The following methods are provided: * $rules = WWW::RobotRules->new($robot_name) This is the constructor for WWW::RobotRules objects. The first argument given to new() is the name of the robot. * $rules->parse($robot_txt_url, $content, $fresh_until) The parse() method takes as arguments the URL that was used to retrieve the _/robots.txt_ file, and the contents of the file. * $rules->allowed($uri) Returns TRUE if this robot is allowed to retrieve this URL. * $rules->agent([$name]) Get/set the agent name. NOTE: Changing the agent name will clear the _robots.txt_ rules and expire times out of the cache.
Package information
- Homepage
- [https://metacpan.org/release/WWW-RobotRules]
- License
- Artistic-1.0 OR GPL-1.0-or-later
- Mainteneur du paquet aval
- Inconnu : non déclaré dans la source indexée
The following binary packages are built from this source package:
- perl-WWW-RobotRules
Database of robots.txt-derived permissions
