mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-13 00:18:31 +00:00
add SEO robot to rules
This commit is contained in:
@@ -108,7 +108,7 @@ if ($block_spam = 1) {
|
||||
## Block suspicious user agents.
|
||||
set $block_user_agents 0;
|
||||
|
||||
# Don't disable wget if you need it to run cron jobs!
|
||||
# Do not disable wget if you need it to run cron jobs!
|
||||
#if ($http_user_agent ~ "Wget") {
|
||||
# set $block_user_agents 1;
|
||||
#}
|
||||
@@ -123,6 +123,11 @@ if ($http_user_agent ~* "(libwww-perl|GetRight|GetWeb!|Go!Zilla|Download Demon|G
|
||||
set $block_user_agents 1;
|
||||
}
|
||||
|
||||
# SEO tools robot (hide your site from competitors SEO tool)
|
||||
if ($http_user_agent ~* "(Rogerbot|SemrushBot|MJ12bot|AhrefsBot|Xenu)") {
|
||||
set $block_user_agents 1;
|
||||
}
|
||||
|
||||
if ($block_user_agents = 1) {
|
||||
return 403;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user