On Jul 23, 12:59 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > you can do:
> @auth.requires(lambda: not IS_IPV4()(request.client)[1])
> > works behind a proxy if the proxy uses HTTP_X_FORWARDED_FOR but it can
> > be spoofed
> @auth.requires(lambda: not IS_IPV4()(request.addr)[1])
> > does not work behind a proxy and cannot be spoofed.

A great example for the new book then :)

F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to