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