Hi,
I had included a file in Nginx under Plesk 11.09. There, I had no problems.
The included File:
I made it with "custom Template".
I check the block.log against fail2ban.
Now under 11.5.... the File still works with the new Webserver Nginx include Function. BUT my block.log is full... Every Hit on any Website is in the Log.
I had included a file in Nginx under Plesk 11.09. There, I had no problems.
The included File:
Code:
## Block some robots ##
if ($http_user_agent ~* (008|acoonbot|ahrefsbot|baiduspider|blexbot|exabot|ezooms|flightdeckreportsbot|iCjobs|magpie-crawler|MJ12bot|msnbot|scrapbot|Spiderlytics|UnisterBot|YandexBot|Yandex)) {
return 403;
}
## Deny certain Referers ###
if ( $http_referer ~* (babes|forsale|girl|jewelry|love|nudit|organic|poker|porn|sex|teen|viagra|rolex) ){
return 403;
}
## Block download agents ##
if ($http_user_agent ~* (BBBike|curl|LWP::Simple|nmap|wget)) {
return 403;
}
access_log /var/log/nginx/block.log;
I check the block.log against fail2ban.
Now under 11.5.... the File still works with the new Webserver Nginx include Function. BUT my block.log is full... Every Hit on any Website is in the Log.