From 195ae6f5e27c96c03e4bb6516b77c45be0949c85 Mon Sep 17 00:00:00 2001 From: jahway603 Date: Sun, 26 Feb 2023 18:03:40 -0500 Subject: [PATCH] added more to example nginx conf --- example-nginx.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/example-nginx.conf b/example-nginx.conf index 6cbe907..bcdd4f5 100644 --- a/example-nginx.conf +++ b/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 {