Redirect script + setting referrer manually?

Discussion in 'Programming' started by michael11, Jan 13, 2007.

  1. #1
    Hi,

    example I'd like to have is considering following scenario:

    Visitor ---> mydomainA.com/redirect.php --> mydomainB.com

    Can I set any referrer manually in the redirect.php script? I.e. when visitor gets redirected to Site B, the Site B sees only mydomainA.com as the referrer and not the full long URL of mydomainA.com/redirect.php ?

    How would I accomplish that?

    Would be grateful for any ideas!

    Thanks
    Michael
     
    michael11, Jan 13, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    The referer is sent by the browser and can't be modified by a script like you want.
     
    nico_swd, Jan 13, 2007 IP
  3. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #3
    ccoonen, Jan 13, 2007 IP
  4. michael11

    michael11 Peon

    Messages:
    234
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, now if someone can write me such a working "spoof" script embedded in a redirect I'll be willing to pay a small "donation". Those who know who can do that can PM me.
     
    michael11, Jan 14, 2007 IP