Possible Duplicate:
Get ip address of visitors using Python (specifically Flask micro-framework)
I'm creating REST api with flask. I want to allow requests only from one (or more later on) IP addresses. How do I check for IP address in my view?
Possible Duplicate:
Get ip address of visitors using Python (specifically Flask micro-framework)
I'm creating REST api with flask. I want to allow requests only from one (or more later on) IP addresses. How do I check for IP address in my view?