Jump to content

http referer and header location problem

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
eurusd

eurusd

    Newbie

  • Members
  • Pip
  • 9 posts
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
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?

Edited by Jaan, 19 December 2008 - 01:53 PM.
Please use code tags when you're posting your codes!


#2
Guest_Jaan_*

Guest_Jaan_*
  • Guests
unset($_SERVER['HTTP_REFERER']);

I don't know if it works but you can try it :)

#3
eurusd

eurusd

    Newbie

  • Members
  • Pip
  • 9 posts
hmm, did you try it?

#4
eurusd

eurusd

    Newbie

  • Members
  • Pip
  • 9 posts
nope does not work

#5
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
I think that the referrer is sent by the browser to the server in the request
something like:

GET /index.php

REFERRER dom2.com/index.php

The server itself would never know on which page the browser just left.