Dear all,<br><br>A day ago, we had a DDOS attack.<br><br>To remedy that we have put some logic on the php application to check number of access on php per minute and if certain limit is matched do something like "print 'please try later' and exit"<br>
<br>On the php side it will work fine but on the nginx side, it will still forward all the request to the php-cgi to get that response.<br><br>What I would like to do in php side is something like<br><br>if limit reached,<br>
key=hostname.locked, "Please try again later"<br><br>on nginx side.<br><br>If found memcached HTTP_HOST.locked, return someother file.<br><br>is that do-able.<br><br>best regards<br><br>