How to detect client use Sock or Proxy

Discussion in 'Programming' started by AppleH, May 30, 2011.

  1. #1
    Hi all,
    I have a question today: "How to detect client use Sock or Proxy via code PHP or Perl?"

    Note: I hope everyone serious discussion.
     
    AppleH, May 30, 2011 IP
  2. ker

    ker Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Hello!
    There could be one or more proxy servers between your computer and the web server. If the HTTP request includes the header "Via", or "X-Forwarded-For", then that's a strong indication that there is at least one proxy server somewhere along the line.

    If neither of those headers were present, that could mean that no proxy servers were involved, or it could mean that they just chose not to "reveal" themselves by adding those headers.
    ;)
     
    ker, May 31, 2011 IP