L2/L3 Proxy Headers

captchaman

Junior Member
Joined
Sep 16, 2010
Messages
192
Reaction score
848
I'm making a PHP script to detect and sort L1/L2/L3 proxies and have a list of proxy headers, I'm just not sure which ones actually give your IP address and which ones just give proxy information. The list is below, if anyone could sort me out I'd be forever grateful.

Code:
HTTP_VIA
HTTP_X_FORWARDED_FOR
HTTP_FORWARDED_FOR
HTTP_X_FORWARDED
HTTP_FORWARDED
HTTP_CLIENT_IP
HTTP_FORWARDED_FOR_IP
VIA
X_FORWARDED_FOR
FORWARDED_FOR
X_FORWARDED
FORWARDED
CLIENT_IP
FORWARDED_FOR_IP
HTTP_PROXY_CONNECTION
 
Google is your best friend man. It is best to read from the docs about such things as some of these variables might return different results in certain conditions
 
@innozemec: I spent about 15 minutes Googling, didn't come up with much. That's why I asked here.
 
if REMOTE_ADDR == explode , HTTP_X_FORWARDED_FOR[0] { transparent }
if REMOTE_ADDR != explode , HTTP_X_FORWARDED_FOR[0] && isset HTTP_VIA { anonymous }
else { eli.te}
 
Back
Top