I need a php script that will spoof the HTTP referer information when going to another web page. Here is the scenario I want:
The user accesses site A. When they click on a link to Site B, I want Site B to see the referrer as Site C. I must be able to change Site C variable on the fly.
The requirement is also to show on Site B logs the original IP address of the visitor. I have a solution in CURL, but it shows the server IP in the logs.
If you can do this in Perl, that would be awesome. Here is a script that I found but I cant get it to work. If you do, we can deal. This script is supposed to spoof the referer when going to the site [url removed, login to view]
$ua = LWP::UserAgent->new();
$req = POST '[url removed, login to view]',
[ Username => 'mike',
Password => 'mypa$w0rd',
$req->header(Referer => '[url removed, login to view]');
$res = $ua->request($req);