Skip to content

Instantly share code, notes, and snippets.

@haproxytechblog
Created July 18, 2024 13:39
Show Gist options
  • Save haproxytechblog/ecbdf5fd3ace33e8abb9ba1eb187e949 to your computer and use it in GitHub Desktop.
Save haproxytechblog/ecbdf5fd3ace33e8abb9ba1eb187e949 to your computer and use it in GitHub Desktop.
AI Crawlers Blog Post
global
module-load hapee-lb-botmgmt.so
botmgmt-data-file /opt/hapee-2.9/data-hapee
frontend www
mode http
bind :443 ssl crt /path/to/ssl.pem
filter botmgmt
acl is_ai_bot var(txn.verified_bot_category) -m str AI-crawler
http-request deny deny_status 403 if is_ai_bot
acl is_ai_claude var(txn.verified_bot) -m str ClaudeBot
http-request deny deny_status 403 if is_ai_claude
global
module-load hapee-lb-botmgmt.so
botmgmt-data-file /opt/hapee-2.9/data-hapee
frontend www
mode http
bind :443 ssl crt /path/to/ssl.pem
filter botmgmt
acl is_ai_bot var(txn.verified_bot_category) -m str AI-crawler
http-request deny deny_status 403 if is_ai_bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment