Http Referer Spoof Script Urg 21.05.08
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 http://www.northwindtraders.com/dologin.asp
——CODE————–
$ua = LWP::UserAgent->new();
$req = POST ‘http://www.northwindtraders.com/dologin.asp’,
[ Username => 'mike',
Password => 'mypa$w0rd',
];
$req->header(Referer => ‘http://www.northwindtraders.com/login.html’);
$res = $ua->request($req);



