SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to find HTTP REFERER or my images

    hi..

    how can I find from where my images are linked ? and fetched..

    I tried with server http['referer'] but that does not work, does it have to do womething with enviremental variables ?

    any code or suggestions to find the http referer of images being used by other people ?

    thanks

  2. #2
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    PHP has nothing to do with it, I'm afraid, unless the images are dynamically generated.
    Saul

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes - the images are dynamically generated from a php file, like

    http://mydomain.com/phpfile/image.jpg

    now I get all other variables like user agent, file souce location etc, but I dont get the referer..

  4. #4
    SitePoint Zealot
    Join Date
    Mar 2007
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have to use the following:
    PHP Code:
    $_SERVER['HTTP_REFERER']; 
    Kayzio - We don't hesitate, we accelerate.

  5. #5
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, I tried using this already, but ths does not work..
    thanks anyways..

  6. #6
    SitePoint Zealot
    Join Date
    Mar 2007
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not really sure of a solution then, sorry.
    Kayzio - We don't hesitate, we accelerate.


Bookmarks

Posting Permissions

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