Welcome! Log In Create A New Profile

Advanced

Recommended limit_req and limit_conn for location ~ \.php$ {}

September 26, 2016 07:41PM
So to prevent flooding / spam by bots especially since some bots are just brutal when they crawl by within milliseconds jumping to every single page they can get.

I am going to apply limit's to my PHP block

limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
limit_conn_zone $binary_remote_addr zone=addr:10m;

location ~ \.php$ {
limit_req zone=one burst=5;
limit_conn addr 10;
}

But in applying these limits on all PHP pages will that have bad repercussions on Google/Bing/Baidu/Yandex etc I don't want them flooding me with requests either but at the same time I don't want them to start receiving 503 errors either.

Whats a good setting that won't effect legitimate decent (I think I just committed a crime calling some of these companies decent?) crawlers like Google, Bing, Baidu, Yandex etc.

http://www.networkflare.com/
Subject Author Posted

Recommended limit_req and limit_conn for location ~ \.php$ {}

c0nw0nk September 26, 2016 07:41PM

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

Francis Daly September 27, 2016 03:58AM

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

itpp2012 September 27, 2016 04:59AM

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

oscaretu . September 27, 2016 05:18AM

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

c0nw0nk September 27, 2016 10:24AM

Re: Recommended limit_req and limit_conn for location ~ \.php$ {}

Alt September 27, 2016 07:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready