Commit 920cc8d5 authored by omega8cc's avatar omega8cc

Nginx: Block semalt botnet (extended boa mode only)

parent 20e48708
...@@ -48,6 +48,13 @@ if ($is_crawler) { ...@@ -48,6 +48,13 @@ if ($is_crawler) {
return 403; return 403;
} }
###
### Block semalt botnet.
###
if ($is_botnet) {
return 403;
}
### ###
### Include high load protection config if exists. ### Include high load protection config if exists.
### ###
......
...@@ -222,7 +222,17 @@ map $request_uri $key_uri { ...@@ -222,7 +222,17 @@ map $request_uri $key_uri {
### ###
map $http_user_agent $is_crawler { map $http_user_agent $is_crawler {
default ''; default '';
~*HTTrack|BrokenLinkCheck|2009042316.*Firefox.*3\.0\.10|MJ12|HTMLParser|PECL|Automatic|SiteBot|BuzzTrack|Sistrix|Offline|Nutch|Mireo|SWEB|Morfeus|GSLFbot|HiScan|Riddler|DBot|CCBot is_crawler; ~*HTTrack|BrokenLinkCheck|2009042316.*Firefox.*3\.0\.10|MJ12|HTMLParser|PECL|Automatic|CCBot is_crawler;
~*SiteBot|BuzzTrack|Sistrix|Offline|Nutch|Mireo|SWEB|Morfeus|GSLFbot|HiScan|Riddler|DBot is_crawler;
}
###
### Block semalt botnet.
###
map $http_referer $is_botnet {
default '';
~*semalt\.com|kambasoft\.com|savetubevideo\.com|bottlenose\.com|yapoga\.com is_botnet;
~*descargar-musica-gratis\.net|baixar-musicas-gratis\.com is_botnet;
} }
### ###
......
...@@ -55,6 +55,13 @@ location ^~ /<?php print $subdir; ?> { ...@@ -55,6 +55,13 @@ location ^~ /<?php print $subdir; ?> {
return 403; return 403;
} }
###
### Block semalt botnet.
###
if ($is_botnet) {
return 403;
}
### ###
### Include high load protection config if exists. ### Include high load protection config if exists.
### ###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment