forked from infra/ansible
proxies / wiki: disable RecentChanges for a bit
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
736b083568
commit
b94e384d21
1 changed files with 4 additions and 0 deletions
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue