Hi, I Need to change the referer to a custom, so site.com will see just the custom referer i want. then if I type the url directly I go to disney.com How can I do to spoof it for this php ? <?php if ($_SERVER['HTTP_REFERER'] != "") { header("Location: http://www.site.com"); } else { header("Location: http://www.disney.com"); } ?><html><head><title>redirect</title><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"></head><body></body></html> thx
This won't work. The referer is set by the browser (and is a header sent.) If you want to spoof headers with PHP, you'll have to rely on cURL or similar. Dan
Ask melol2, i've seen some of his code. He used curl in it. PM him. He's online right now, doing some quick coding for me.