Gungho::Component::RobotRules::Rule - A Rule Object
use Gungho::Component::RobotRules::Rule; my $rule = Gungho::Component::RobotRules::Rule->new( 'UserAgent A' => [ '/foo', '/bar' ], 'UserAgent B' => [ '/baz', '/quux' ], );
This modules stores the RobotRules ruleset for a particular host.
Creates a new rule. A single rule is a set of subrules that represents an user-agent to a list of denied paths.
No host information is stored.
Initializes the rule.
Returns true if the given URL is allowed within this ruleset
Returns true if $string matches our user agent string contained in $c->user_agent
To install Gungho, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gungho
CPAN shell
perl -MCPAN -e shell install Gungho
For more information on module installation, please visit the detailed CPAN module installation guide.