once again, use 429 not 503 please read your RFCs.
On Tuesday, August 26, 2014 5:31:07 AM UTC-7, Richard Penman wrote:
>
> Try putting something like this in your model to detect and ban IP
> addresses that download too fast:
>
>
> # block malicious crawlers that download too fast
Try putting something like this in your controller to detect and ban IP
addresses that download too fast:
# block malicious crawlers that download too fast
BAN_IP_TIME = 60 *
perhaps, if you record the user access from in your database, i think you
can query it, and redirect so that user not access your web application if
the condition is met (access from same ip address).
this is just a redirect so that user can't access your web application not
block their ip addr
Usually this is handled at the level if the web server, not the web
framework.
On Thursday, 27 March 2014 08:31:22 UTC-5, Kv Harish wrote:
>
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p
4 matches
Mail list logo