fix positioning of blockbots snippet

This commit is contained in:
packetcat 2023-11-07 18:34:43 -05:00
parent 09c98315ea
commit a9f9b8a500
1 changed files with 5 additions and 6 deletions

View File

@ -217,6 +217,10 @@
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass php;
}
blockbots:
- if ($http_user_agent ~* (thesis-research-bot|fidget-spinner-bot) ) {
return 403;
}
nginx_configs:
gzip:
- gzip on
@ -238,8 +242,3 @@
- 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;
}