Expand description
robots.txt policy enforcement. robots.txt honor for one-shot invocations (no cross-process cache).
Default policy is honor. Override requires BOTH --ignore-robots and
--i-accept-robots-risk. Uses robotstxt::DefaultMatcher (Google port).
Enums§
- Robots
Policy - Effective robots policy for one invocation.
Functions§
- enforce_
robots - Fetch origin robots.txt and enforce honor policy (async, one-shot).
- path_
allowed - Returns true when path is allowed by a simple robots Disallow set. Empty disallow list means allow all. Exact prefix match on path.
- scheme_
skips_ robots - Schemes that skip robots.txt (local / non-network).
- url_
allowed_ by_ robots_ body - Check URL against robots.txt body for a user-agent using DefaultMatcher.