1
0
Fork 0
forked from infra/ansible

proxies / wiki: disable RecentChanges for a bit

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2026-04-17 08:27:22 -07:00
commit b94e384d21

View file

@ -14,6 +14,10 @@ RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,NE,L]
RewriteCond %{HTTP_USER_AGENT} "(Bytespider|ClaudeBot|Amazonbot|YandexBot|ChatGLM-Spider|GPTBot|Barkrowler|YisouSpider|MJ12bot|Avengineers-Crawler)" [NC]
RewriteRule .* - [F,L]
# temp disable recent changes for bots
RewriteCond %{QUERY_STRING} title=Special%3ARecentChanges [NC]
RewriteRule .* - [F,L]
# /wiki must come before /w due to prefix matching.
ProxyPass {{wikipath}} {{proxyurl}}{{wikipath}}
ProxyPassReverse {{wikipath}} {{proxyurl}}{{wikipath}}