Sunil Kumar Sunil Kumar - 1 year ago 92
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 ?

Answer Source
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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download