mitchellkrogza / nginx-ultimate-bad-bot-blocker

Nginx Block Bad Bots, Spam Referrer Blocker, Vulnerability Scanners, User-Agents, Malware, Adware, Ransomware, Malicious Sites, with anti-DDOS, Wordpress Theme Detector Blocking and Fail2Ban Jail for Repeat Offenders
Other
3.81k stars 472 forks source link

[ENHANCEMENT] Set limit_req_status and limit_conn_status to 429 #533

Open jaysee opened 9 months ago

jaysee commented 9 months ago

Describe

Actually the protection about limit_conn_status / limit_req_status is nginx defaults (503) but there is 429 / Too Many Requests than is more appropriate, and since nginx-1.3.15 we can specify it!

to enable it, in conf.d/botblocker-nginx-settings.conf just add

limit_req_status 429;
limit_conn_status 429;