add blockbots nginx snippet and use it in TF vhost

This commit is contained in:
staticsafe 2021-03-20 18:41:23 -04:00
parent 0b3265d75c
commit 8cbf3b0e64
1 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,7 @@
- add_header Referrer-Policy "no-referrer, strict-origin-when-cross-origin"
- add_header Strict-Transport-Security max-age=31536000
- add_header Access-Control-Allow-Origin *
- include snippets/blockbots.conf
- client_max_body_size 0
- location / {
try_files $uri @proxy;
@ -96,3 +97,8 @@
- ssl_session_timeout 1d
- ssl_session_cache shared:SSL:50m
- ssl_session_tickets off
nginx_snippets:
blockbots:
- if ($http_user_agent ~* (LanaiBotmarch) ) {
return 403;
}