Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pillar/base/haproxy.sls
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ haproxy:
buildbot-master:
domains:
- buildbot.python.org
rate_limit: 100
check: "GET /all/#/about HTTP/1.1\\r\\nHost:\\ buildbot.python.org"
extra:
- timeout client 30s
Expand Down
4 changes: 4 additions & 0 deletions salt/buildbot/config/nginx.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ server {
rewrite ^/all/(.*) /$1 break;

location / {
if ($http_user_agent ~* "(Lightpanda|Sogou web spider|SemrushBot|AhrefsBot|Bytespider|GPTBot|ClaudeBot|Amazonbot|meta-externalagent)") {
return 403;
}

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
Expand Down
Loading