[web2py] Re: Hi, Is there a way to block ip address if there are more no of requests from the same ip address

2014-08-26 Thread Derek
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

[web2py] Re: Hi, Is there a way to block ip address if there are more no of requests from the same ip address

2014-08-26 Thread Richard Penman
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 *

[web2py] Re: Hi, Is there a way to block ip address if there are more no of requests from the same ip address

2014-03-27 Thread 黄祥
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

[web2py] Re: Hi, Is there a way to block ip address if there are more no of requests from the same ip address

2014-03-27 Thread Massimo Di Pierro
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