Previously Mark Phillips wrote:
> I found this in a plone product source code (PASPlugins - IPRangePlugin)
> 
> ip = request.get('HTTP_X_FORWARDED_FOR') or request.get('REMOTE_ADDR',
> None)
> 
> Any other suggestions for getting around the proxy in front of zope?

No, that line is the One True Way to get the remote users IP address.

Wichert.

-- 
Wichert Akkerman <[EMAIL PROTECTED]>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to