1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

L2/L3 Proxy Headers

Discussion in 'Proxies' started by captchaman, Jul 23, 2013.

  1. captchaman

    captchaman Junior Member

    Joined:
    Sep 16, 2010
    Messages:
    190
    Likes Received:
    842
    Occupation:
    Software Programmer
    Location:
    USA
    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
     
  2. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,263
    Likes Received:
    1,795
    Location:
    www.Indexification.com
    Home Page:
    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
     
  3. captchaman

    captchaman Junior Member

    Joined:
    Sep 16, 2010
    Messages:
    190
    Likes Received:
    842
    Occupation:
    Software Programmer
    Location:
    USA
    @innozemec: I spent about 15 minutes Googling, didn't come up with much. That's why I asked here.
     
  4. teapear

    teapear Junior Member

    Joined:
    Feb 6, 2009
    Messages:
    188
    Likes Received:
    41
    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}