Forum Moderators: phranque
<IfModule mod_rewrite.c>
RewriteCond %[HTTP_USER_AGENT] ClaudeBot [NC,OR]
... (others) ...
RewriteRule .* [R=404,L]
</IfModule> RewriteCond %{HTTP_USER_AGENT} (A6|Abadbot|AnotherBot|appid|Blog|nextone) [NC,OR] and the next line continues like that with additional bot snippets until I have added them all. The last line does not get [NC,OR] just [NC] RewriteRule .* - [F] to kick them out with a Forbidden (403), instead of a 404 (not found) that keeps them trying. RewriteRule .* [R=404,L]Is that really what the rule says, or did you miss something in cut-and-paste? It should be
RewriteRule . - [R=404]
RewriteRule robots\.txt - [L]
because everyone should be allowed to see robots.txt. Especially when, like ClaudeBot/claudebot, it appears to be compliant. Sure, it asks for robots.txt dozens of times a day--but nothing else.