You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
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
Barry Hunter
unread,
Dec 13, 2009, 9:36:16 AM12/13/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Otherwise for dynamic (python/java) requests, you can block them at
your application level. It wont totally negate quota usage, but should
take it to minimal levels. Also it should have minimal impact on real
traffic, as the IP check would be negligible overhead.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-a...@googlegroups.com
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")
Greg
unread,
Dec 14, 2009, 4:18:09 AM12/14/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
On Dec 14, 3:05 am, judotenslab <judot...@gmail.com> wrote:
> 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")
Or even better:
self.error(404)
Instead of the redirect line. Saves you serving the spammer one more
page (blocked), and if their system is at all smart it will stop
pinging you when it gets the 404..
Stephen
unread,
Dec 14, 2009, 8:46:54 AM12/14/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message