Block ClaudeBot #196

Closed
opened 2024-09-16 21:00:31 +00:00 by maxkratz · 0 comments
Owner

Put

if ($http_user_agent = "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"){
    return 429;
}

into forego.dev in reverse proxy directory and mount it to ./forgejo.dev:/etc/nginx/vhost.d/forgejo.dev:ro

Put ``` if ($http_user_agent = "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"){ return 429; } ``` into `forego.dev` in reverse proxy directory and mount it to `./forgejo.dev:/etc/nginx/vhost.d/forgejo.dev:ro`
maxkratz added the
bug
label 2024-09-16 21:00:31 +00:00
maxkratz self-assigned this 2024-09-16 21:00:31 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: forgejo.dev/infrastructure-as-code#196
No description provided.