bots, china and amazon can suck my cock

This commit is contained in:
Selfhost Root 2023-11-07 21:37:12 -03:00
parent 4c0ca5a5e0
commit 49470a2e25
3 changed files with 14 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;

9
nginx/snippets/poop.conf Normal file
View File

@ -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;
}