add blocks for fidget-spinner-bot/thesis-research-bot

This commit is contained in:
packetcat 2023-11-07 18:32:55 -05:00
parent 6c64c7437f
commit 09c98315ea
1 changed files with 12 additions and 0 deletions

View File

@ -28,6 +28,7 @@
- ssl_certificate_key "/etc/ssl/letsencrypt/nullrouted.space.pem" - ssl_certificate_key "/etc/ssl/letsencrypt/nullrouted.space.pem"
- include snippets/sslstapling_hsts.conf - include snippets/sslstapling_hsts.conf
- include snippets/wp_with_supercache.conf - include snippets/wp_with_supercache.conf
- include snippets/blockbots.conf
entropynet.net.http: entropynet.net.http:
- listen *:80 - listen *:80
- listen [::]:80 - listen [::]:80
@ -45,6 +46,7 @@
- ssl_certificate "/etc/ssl/letsencrypt/entropynet.net.crt" - ssl_certificate "/etc/ssl/letsencrypt/entropynet.net.crt"
- ssl_certificate_key "/etc/ssl/letsencrypt/entropynet.net.pem" - ssl_certificate_key "/etc/ssl/letsencrypt/entropynet.net.pem"
- include snippets/sslstapling_hsts.conf - include snippets/sslstapling_hsts.conf
- include snippets/blockbots.conf
twoshadesofbrown.com.http: twoshadesofbrown.com.http:
- listen *:80 - listen *:80
- listen [::]:80 - listen [::]:80
@ -63,6 +65,7 @@
- ssl_certificate_key "/etc/ssl/letsencrypt/twoshadesofbrown.com.pem" - ssl_certificate_key "/etc/ssl/letsencrypt/twoshadesofbrown.com.pem"
- include snippets/sslstapling_hsts.conf - include snippets/sslstapling_hsts.conf
- include snippets/wp_with_supercache.conf - include snippets/wp_with_supercache.conf
- include snippets/blockbots.conf
wiki.packetcat.ca.http: wiki.packetcat.ca.http:
- listen *:80 - listen *:80
- listen [::]:80 - listen [::]:80
@ -79,6 +82,7 @@
- ssl_certificate "/etc/ssl/letsencrypt/wiki.packetcat.ca.crt" - ssl_certificate "/etc/ssl/letsencrypt/wiki.packetcat.ca.crt"
- ssl_certificate_key "/etc/ssl/letsencrypt/wiki.packetcat.ca.pem" - ssl_certificate_key "/etc/ssl/letsencrypt/wiki.packetcat.ca.pem"
- include snippets/sslstapling_hsts.conf - include snippets/sslstapling_hsts.conf
- include snippets/blockbots.conf
- location ~ /(data|conf|bin|inc)/ { - location ~ /(data|conf|bin|inc)/ {
deny all; deny all;
} }
@ -110,6 +114,7 @@
- ssl_certificate "/etc/ssl/letsencrypt/sadiqsaif.com.crt" - ssl_certificate "/etc/ssl/letsencrypt/sadiqsaif.com.crt"
- ssl_certificate_key "/etc/ssl/letsencrypt/sadiqsaif.com.pem" - ssl_certificate_key "/etc/ssl/letsencrypt/sadiqsaif.com.pem"
- include snippets/sslstapling_hsts.conf - include snippets/sslstapling_hsts.conf
- include snippets/blockbots.conf
sadiqsaif.ca.http: sadiqsaif.ca.http:
- listen *:80 - listen *:80
- listen [::]:80 - listen [::]:80
@ -142,6 +147,7 @@
- ssl_certificate_key "/etc/ssl/letsencrypt/ultonomy.com.pem" - ssl_certificate_key "/etc/ssl/letsencrypt/ultonomy.com.pem"
- include snippets/sslstapling_hsts.conf - include snippets/sslstapling_hsts.conf
- include snippets/wp_with_supercache.conf - include snippets/wp_with_supercache.conf
- include snippets/blockbots.conf
wallabag.packetcat.ca.http: wallabag.packetcat.ca.http:
- listen *:80 - listen *:80
- listen [::]:80 - listen [::]:80
@ -158,6 +164,7 @@
- ssl_certificate "/etc/ssl/letsencrypt/wallabag.packetcat.ca.crt" - ssl_certificate "/etc/ssl/letsencrypt/wallabag.packetcat.ca.crt"
- ssl_certificate_key "/etc/ssl/letsencrypt/wallabag.packetcat.ca.pem" - ssl_certificate_key "/etc/ssl/letsencrypt/wallabag.packetcat.ca.pem"
- include snippets/sslstapling_hsts.conf - include snippets/sslstapling_hsts.conf
- include snippets/blockbots.conf
- location / { - location / {
try_files $uri /app.php$is_args$args; try_files $uri /app.php$is_args$args;
} }
@ -231,3 +238,8 @@
- fastcgi_cache_use_stale error timeout invalid_header http_500 - fastcgi_cache_use_stale error timeout invalid_header http_500
- fastcgi_ignore_headers Cache-Control Expires Set-Cookie - fastcgi_ignore_headers Cache-Control Expires Set-Cookie
- add_header rt-Fastcgi-Cache $upstream_cache_status - add_header rt-Fastcgi-Cache $upstream_cache_status
nginx_snippets:
blockbots:
- if ($http_user_agent ~* (thesis-research-bot|fidget-spinner-bot) ) {
return 403;
}