if ($http_user_agent ~* "(GPTBot|ChatGPT-User|ClaudeBot|Claude-Web|anthropic-ai|CCBot|Google-Extended|PerplexityBot|Bytespider|Diffbot|FacebookBot|Meta-ExternalAgent|Amazonbot|cohere-ai|YouBot|Omgilibot|ImagesiftBot|Applebot-Extended)") {
return 418;
}
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.