How can I replace referer ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Kari
Forum Newbie
Posts: 3
Joined: Thu Apr 24, 2003 9:01 am

How can I replace referer ?

Post by Kari »

Hi
This is my problem. I have script at domain
traffic.com/out.php
and I am sending to it from domains
mydomain1.com,
mydomain2.com,
mydomain3.com
etc...
Now hits from traffic.com/out.php are sent to
target1.com,
target2.com
etc...
How can I replace referer at traffic.com so that
it shows what I want ( traffic.com ) instead of
mydomain1.com
etc...?
Is it possible at all?

Thanks,
Kari
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

send $_SERVER['HTTP_REFERER'] as a POST or GET variable. :wink:


heh, it is only theory.

Not tested. And there is a good chance it won't work.



(I have seen it work before)
Post Reply