hafte: I think you posted to the wrong thread...
A friendly bump to the others: Is there a way to restrict access by IP
address in web2py's main/core routes.py?
Right now I'm doing it in appname/controllers/appadmin.py with this:
--snip--
if request.client not in ['x.x.x.x']:
raise HTTP(404)
--snip--
And the same for admin/models/access.py:
--snip--
if request.client not in ['x.x.x.x']:
raise HTTP(404)
--snip--
This does work and accomplish what I need, but it would be nice to do
it centrally from routes.py.
Thanks,
Marc