returning a different response if memcache key is set
atif.ghaffar at gmail.com
Wed Feb 4 03:11:35 MSK 2009
A day ago, we had a DDOS attack.
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"
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.
What I would like to do in php side is something like
if limit reached,
key=hostname.locked, "Please try again later"
on nginx side.
If found memcached HTTP_HOST.locked, return someother file.
is that do-able.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx