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 &quot;print &#39;please try later&#39; and exit&quot;<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, &quot;Please try again later&quot;<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>