bots, china and amazon can suck my cock
This commit is contained in:
parent
4c0ca5a5e0
commit
49470a2e25
|
@ -10,7 +10,7 @@ brotli on;
|
|||
brotli_comp_level 6;
|
||||
brotli_types text/plain text/css text/xml application/json application/javascript application/rss+xml application/atom+xml image/svg+xml;
|
||||
|
||||
# FUCK SEMRUSH
|
||||
if ($http_user_agent ~ (SemrushBot|Bytespider)) {
|
||||
return 401;
|
||||
# fuck bots .kill
|
||||
if ($poop) {
|
||||
return 444;
|
||||
}
|
||||
|
|
|
@ -63,8 +63,9 @@ http {
|
|||
aio_write on;
|
||||
directio 2m;
|
||||
|
||||
# Maps
|
||||
# Maps
|
||||
include /etc/nginx/snippets/maps.conf;
|
||||
include /etc/nginx/snippets/poop.conf;
|
||||
|
||||
# Virtual Host Configs
|
||||
include /etc/nginx/sites-enabled/*.conf;
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
map $http_user_agent $poop {
|
||||
default 0;
|
||||
~*my-tiny-bot 1;
|
||||
~*thesis-research-bot 1;
|
||||
~*SemrushBot 1;
|
||||
~*Bytespider 1;
|
||||
~*PetalBot 1;
|
||||
~*Amazonbot 1;
|
||||
}
|
Loading…
Reference in New Issue