Sunil Kumar Sunil Kumar - 6 months ago 33
Python Question

Restrict IP addresses to access your application on GAE?

I have an application on GAE . Suppose I want that application to available on to 172.12.. IP addresses . How can i do that ?

ip = self.request.remote_addr

if ip in allowed_ip_list:
    allow_access = True
    allow_access = False

More detailed answer here: Get IP address in Google App Engine + Python