Detect proxy with php

Discussion in 'PHP' started by Tom12361, Aug 20, 2009.

  1. #1
    Is there any way to detect proxy with php?
     
    Tom12361, Aug 20, 2009 IP
  2. szalinski

    szalinski Peon

    Messages:
    341
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
  3. Kyosys

    Kyosys Peon

    Messages:
    226
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Transparent proxies - yes. They send headers like X-REAL-IP or X-REDIRECTED-FOR, but you can fake those, so don't rely on them.
     
    Kyosys, Aug 20, 2009 IP
  4. bulkemailpp

    bulkemailpp Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Check the folowing variables, they should be empty by direct connection:

    HTTP_VIA
    HTTP_PROXY
    HTTP_XPROXY
    HTTP_PROXY_CONNECTION
    HTTP_X_FORWARDED_FOR
    X_HTTP_FORWARDED_FOR
    HTTP_FORWARDED
    X_FORWARDED_FOR
    ORIGINAL_REMOTE_ADDR
     
    bulkemailpp, Aug 24, 2009 IP