nginx-badbot-blocker
nginx-badbot-blocker copied to clipboard
Limiting requests by zone "flood"
Hello.
nginx.conf
limit_req_zone $binary_remote_addr zone=flood:50m rate=90r/s;
ddos.conf
limit_req zone=flood burst=200 nodelay;
domain.conf
include /etc/nginx/bots.d/ddos.conf;
...
location /images/ {
rewrite "^\/images\/(poster|picture)\/(medium|small)\/.*img([0-9]+).*\.jpg$" "/$1/$2/$3.jpg" break;
root /var/local/images;
expires 30d;
access_log off;
autoindex off;
add_header Cache-Control "public, no-transform";
proxy_cache cinemacache;
proxy_cache_valid 404 500 502 503 504 1m;
proxy_cache_valid any 30d;
try_files $uri /poster/no-poster.jpg /poster/small/629951.jpg =404;
}
And have error /images/
. But referrer and URL, it`s my website.
2018/08/28 05:38:12 [error] 2612#2612: *18433 limiting requests, excess: 200.640 by zone "flood", request: "GET /images/poster/medium/img273679-devochka-pol...
The site itself floods?
Interesting, I have the same issue. I had to increase the rate, because internal requests were constantly being blocked via fail2ban...