+ Reply to Thread
Results 1 to 5 of 5

Thread: http referer and header location problem

  1. #1
    Newbie eurusd is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    8

    http referer and header location problem

    On site site1.com and many others people use ip showing gif
    <img src=site2.com/yourip.gif>

    I want to redirect from site2.com to site3.com
    Code:
    Header("Location: site3.com/newip.php"); 
    But how to change or blank $REFERER, so site3.com sees as referrer site2.com or blank?
    Any Ideas? Is there any trick to that?
    Last edited by Jaan; 12-19-2008 at 04:53 PM. Reason: Please use code tags when you're posting your codes!

  2. #2
    Moderator Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan is a splendid one to behold Jaan's Avatar
    Join Date
    Dec 2006
    Location
    Estonia
    Age
    18
    Posts
    2,030
    Blog Entries
    8

    Re: http referer and header location problem

    Code:
    unset($_SERVER['HTTP_REFERER']); 
    I don't know if it works but you can try it

  3. #3
    Newbie eurusd is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    8

    Re: http referer and header location problem

    hmm, did you try it?

  4. #4
    Newbie eurusd is an unknown quantity at this point
    Join Date
    Dec 2008
    Posts
    8

    Re: http referer and header location problem

    nope does not work

  5. #5
    Moderator Orjan is a glorious beacon of light Orjan is a glorious beacon of light Orjan is a glorious beacon of light Orjan is a glorious beacon of light Orjan is a glorious beacon of light Orjan's Avatar
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Age
    34
    Posts
    2,605
    Blog Entries
    7

    Re: http referer and header location problem

    I think that the referrer is sent by the browser to the server in the request
    something like:
    Code:
    GET /index.php
    REFERRER dom2.com/index.php
    The server itself would never know on which page the browser just left.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

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