fix positioning of blockbots snippet
This commit is contained in:
parent
09c98315ea
commit
a9f9b8a500
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue