Choose paths that exercise the decision
A root-path result does not describe every URL. Inventory a public article, a restricted folder and any exception inside it. Include exact spelling, case, trailing slashes and encoded characters when these matter to your application. CrawlCharter evaluates the supplied path against policy text; it does not fetch that page or inspect redirects, noindex tags or authentication.
Prefer the longest matching rule
After selecting the relevant user-agent group, the evaluator compares matching path rules by specificity. In the example, /private/ is restricted, but the longer /private/public/ exception permits its descendants. An Allow rule wins an equivalent match against Disallow. Moving either rule lower in the file does not change that relationship. Review line evidence to see why a result was chosen.
Use patterns deliberately
The supported * wildcard matches variable text, and a terminal $ anchors a rule to the end of the path. /download$ and /download are different policies: the anchored rule targets that ending, while the unanchored prefix also matches longer paths. CrawlCharter normalizes percent-encoded unreserved characters and handles UTF-8 path bytes during matching, but this is a bounded text evaluator rather than a guarantee of identical behavior across vendors.
User-agent: *
Disallow: /private/
Allow: /private/public/
/private/draft is restricted; /private/public/readme is permitted by the longer Allow rule.
Keep ambiguous evidence visible
Malformed directives or unsupported path patterns make access unknown in this implementation instead of producing a confident partial answer. The parser limits a pattern to 2,048 bytes and sixteen wildcards. Correct or simplify the file, then rerun the important paths. Do not remove a valid restriction merely to obtain a more reassuring result.
Put it into practice
- List a public path, a restricted path and an intended exception.
- Check each path using the same complete policy.
- Inspect the winning rule and its line number.
- Test trailing slashes and case where your routes differ.
- Resolve unknown syntax before treating access as verified.
Primary sources
Protocol matching and vendor controls are distinct. Read the current sources before deploying; crawler semantics may change.