Browse Source

added more to example nginx conf

pull/11/head
jahway603 1 year ago
parent
commit
195ae6f5e2
  1. 6
      example-nginx.conf

6
example-nginx.conf

@ -30,7 +30,7 @@ server {
internal;
}
# BOT PROTECTION BELOW
# BOT PROTECTION BELOW - thanks Duke for this
if ($request_method !~ ^(GET|HEAD|POST)$ ) { return 444; }
if ($http_user_agent ~* "SemrushBot|xforce-security.com|TestBot|MauiBot|CCBot|SummalyBot|PetalBot|BLEXBot|expanseinc.com|clark-crawler|AhrefsBot|mj12bot|YisouSpider|opensiteexplorer|seznambot|dataforseo") {
@ -44,6 +44,10 @@ server {
location ~* ^/wp-content/.*$ {
return 444;
}
# thanks Onryo for this
location ~* ^/wp-admin/.*$ {
return 444;
}
}
server {

Loading…
Cancel
Save