i used this for disallow some ip from my web:
def get(self):
spammer_list = ("123.123.123.123","122.122.122.122")
visitor_ip = self.request.remote_addr
if visitor_ip is in spammer_list:
self.response.redirect("/blocked")
On Sun, Dec 13, 2009 at 8:30 PM, vivpuri <[email protected]> wrote:
> Is there a way to block all calls from an IP address or Domain. Some
> days, my app tends to get thousands of hits from one particular
> domain, and i know that site is pretty much a spam site. As you can
> guess this is eating up lot of my CPU and skewing my stats. I really
> wish i could block that domain
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.