Forum Moderators: coopster

Message Too Old, No Replies

referer header

         

scorpion

12:16 am on Feb 14, 2004 (gmt 0)

10+ Year Member



I wasn't too clear about how the referer header works if sent on a php page on domain Z. Does it mean that it will send to the destination server a referer specified in the header, even if it is not the actual referer of the site?

e.g.

header("Referer: [wanttosendthis.com");...]
header("Location: [anothersite.com");...]

With anothersite.com show in it's logs the referer as wanttosendthis.com?

jatar_k

7:33 pm on Feb 14, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I think you'd have to test it scorpion.

georgiecasey

9:28 pm on Feb 14, 2004 (gmt 0)

10+ Year Member



of course it will. the referer is simple to fake, along with user-agent, etc. everything is simple to fake apart from your IP

scorpion

10:14 pm on Feb 14, 2004 (gmt 0)

10+ Year Member



Unfortunately this is not true. I've discovered you need cURL for PHP. Just try it, the true referer always shows up if you use the php header construct...Unless you know another way to mask it?