mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-30 05:20:49 +08:00
bodhi: move bot section to the right place
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -17,12 +17,6 @@ RequestHeader unset Expect early
|
||||
ProxyPreserveHost On
|
||||
{% endif %}
|
||||
|
||||
# Spiders-gone-wild
|
||||
# These spiders may not follow robots.txt and will
|
||||
# hit admin sections which consume large amounts of CPU
|
||||
RewriteCond %{HTTP_USER_AGENT} "(Bytespider|ClaudeBot|Amazonbot|YandexBot|ChatGLM-Spider|GPTBot|Barkrowler|YisouSpider|MJ12bot)" [NC]
|
||||
RewriteRule .* - [F,L]
|
||||
|
||||
{% if balancer_name is defined %}
|
||||
# This is something that wants a apache balancer
|
||||
SSLProxyEngine On
|
||||
@@ -64,6 +58,12 @@ BalancerMember "wss://{{ member }}"
|
||||
</Proxy>
|
||||
|
||||
RewriteEngine on
|
||||
# Spiders-gone-wild
|
||||
# These spiders may not follow robots.txt and will
|
||||
# hit admin sections which consume large amounts of CPU
|
||||
RewriteCond %{HTTP_USER_AGENT} "(Bytespider|ClaudeBot|Amazonbot|YandexBot|ChatGLM-Spider|GPTBot|Barkrowler|YisouSpider|MJ12bot)" [NC]
|
||||
RewriteRule .* - [F,L]
|
||||
|
||||
RewriteCond %{HTTP:Upgrade} ^WebSocket$ [NC]
|
||||
RewriteCond %{HTTP:Connection} Upgrade [NC]
|
||||
{% if remotepath is defined and remotepath != "/" %}
|
||||
|
||||
Reference in New Issue
Block a user