Field notes / Troubleshooting

Fix repeated groups without losing restrictions

Understand combined groups and wildcard fallback before merging crawler-specific robots.txt rules.

By CrawlCharter · Reviewed

A duplicate group is not a last-write-wins override

Repeated groups for the same crawler are combined by CrawlCharter. Adding a second group to permit a path does not erase the restrictions in the first. Before editing, locate every occurrence of that token in the complete file. Generated fragments and plugin-managed sections are common reasons the intended rule is spread across multiple places.

Specific groups change the fallback

A specific crawler group takes precedence over the wildcard group in this evaluator. Wildcard restrictions are not automatically inherited into that specific group. If your wildcard group disallows an administrative path, creating a permissive GPTBot-specific group can change how that path is evaluated for GPTBot. Copy necessary path restrictions into the specific group as part of a deliberate manual merge.

Consolidate by intent, then test

The example has two GPTBot groups. Their combined rules restrict /drafts/ and permit /drafts/public/, using the more specific path for the exception. You can consolidate both rules under one GPTBot header for readability, but preserve their meaning. Search for equivalent Allow/Disallow ties and check whether the Allow outcome matches your intention. Comments can record that intent without altering matching.

Worked example / illustrative text
User-agent: GPTBot
Disallow: /drafts/

User-agent: GPTBot
Allow: /drafts/public/

The groups combine: /drafts/notes is restricted; /drafts/public/readme is permitted. The second group does not delete the first.

Find the actual source of the deployed file

A CMS plugin, reverse proxy or application route may regenerate robots.txt after you edit a static file. Keep a backup, identify which layer owns the response, and change that source. Fetch again after deployment and compare the served body. A local edit alone does not show that the public policy changed; caches may briefly retain an earlier response.

Put it into practice

  1. Find every group for the selected crawler.
  2. Retain all required path restrictions and intended exceptions.
  3. Review whether a specific group bypasses wildcard restrictions.
  4. Consolidate only after comparing effective outcomes.
  5. Fetch the deployed file again and check representative paths.

Primary sources

Protocol matching and vendor controls are distinct. Read the current sources before deploying; crawler semantics may change.