Results 1 to 2 of 2

Thread: Http_x_forwarded_for

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    10

    Http_x_forwarded_for

    hi i was writing a php script and wanted to find the complete(proxy+actual) ip address of a user.
    i was trying to use HTTP_X_FORWARDED_FOR to do that..
    however it always returns empty..
    Is this variable still available in php

    coz all the phpinfos i have seen nobody documents
    HTTP_VIA
    and HTTP_X_FORWARDED_FOR

  2. #2
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    Are these headers send at all? Not all proxies do..
    Is this variable still available in php
    RTFM? http://www.php.net/getenv

    Oh.. And don't rely to much on those headers.. I can put whatever I want in them
    Oliver's Law:
    Experience is something you don't get until just after you need it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •