Hello!

Do you use reverse proxy (like nginx or apache) in front of Wt
application? If you do, you should make sure the reverse proxy you use
sets X-Forwarded-For header or Client_IP header with actual IP of
client. By the way, in this case you should also configure the reverse
proxy to remove previous value of X-Forwarded-For and Client_IP to
prevent header cheating by client.

On Tue, Oct 16, 2012 at 1:14 PM, Bastien AMIEL
<bastien.am...@opencubetech.com> wrote:
> Hi,
>
> I need to detect if my client browser is the same than the current WT
> server.
>
> I was using
>
>      environment().clientAddress() == "127.0.0.1"
>
> but it seems that this may send the non loopback address too.
> What would be the best way to make this work ?
>
> Thank you for reading.
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to