TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   $_SERVER['X_FORWARDED_FOR'] doesnt exist (http://www.talkphp.com/general/2618-_server-x_forwarded_for-doesnt-exist.html)

Orc 04-11-2008 11:49 PM

$_SERVER['X_FORWARDED_FOR'] doesnt exist
 
I've tried using a proxy to find it and looked through it using print_r and everything, it just doesn't exist, what am I missing?

freenity 04-11-2008 11:58 PM

I think it should be HTTP_X_FORWARDED_FOR

Orc 04-12-2008 12:04 AM

Quote:

Originally Posted by freenity (Post 13390)
I think it should be HTTP_X_FORWARDED_FOR

That apparently, doesn't exist either. Can't find it. :/

Wildhoney 04-12-2008 12:12 AM

It's X-Forwarded-For. Although I'm not sure if PHP would convert hyphens to underscores. Web-based proxies won't pass a X-Forwarded-For, but normal proxies, such as those on 8080, should do.

The XFF project may of be some use to you in this case.

Orc 04-12-2008 12:15 AM

Quote:

Originally Posted by Wildhoney (Post 13392)
It's X-Forwarded-For. Although I'm not sure if PHP would convert hyphens to underscores. Web-based proxies won't pass a X-Forwarded-For, but normal proxies, such as those on 8080, should do.

still nothing.

lucid 04-17-2008 05:05 PM

Is it actually set? You won't find it unless the header itself is sent (and it isn't always).

Orc 04-17-2008 05:08 PM

Tried that. Man this is old, I think I understand what the problem is now cause I read more of wild honeys post -_-


All times are GMT. The time now is 04:05 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0