Attempt to stop various spiders which do not follow rules.
The ByteSpider and ClaudeBot do not follow robots.txt so need to be dealt with in other ways. Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
This commit is contained in:
parent
643e5ae324
commit
4937c5be2a
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ ProxyPassReverse / http://127.0.0.1:8000/
|
||||||
# Redirecting to hyperkitty if nothing is specified
|
# Redirecting to hyperkitty if nothing is specified
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteRule ^/$ /archives [R,L]
|
RewriteRule ^/$ /archives [R,L]
|
||||||
|
# Spiders-gone-wild
|
||||||
|
# These spiders do not follow robots.txt
|
||||||
|
RewriteCond %{HTTP_USER_AGENT ^.*(Bytespider|ClaudeBot).*$ [NC]
|
||||||
|
RewriteRule .* - [F,L]
|
||||||
|
|
||||||
# Old static archives
|
# Old static archives
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue