The rule object returns a single rule for the robots.txt file that tells crawlers which pages they can and cannot access. It consists of a directive, either Allow or Disallow, and a value for the URL path.
For example:
Disallow: /policies/
The rule object has the following attributes:
rule.directive
Returns the rule directive: Allow lets crawlers access the given URL, Disallow blocks them.
rule.value
Returns the URL path of the rule.