I have a PHP page that checks the "$_SERVER['QUERY_STRING']" and if detects "http" in the URL string it forwards to that URL using a JS redirect..
so the referrer looks like "http://my-site.com/?http://stardrifter.org/cgi-bin/ref.cgi"
"http://stardrifter.org/cgi-bin/ref.cgi" is website that tells you yer referrer..
But on some browsers like "IE" this method doesn't keep the referrer and it shows up blank..
So i was wondering if there are any other ways to do a JS redirect that will keep or spoof the referrer for all browsers..??
This is my PHP-JS redirect code..
so the referrer looks like "http://my-site.com/?http://stardrifter.org/cgi-bin/ref.cgi"
"http://stardrifter.org/cgi-bin/ref.cgi" is website that tells you yer referrer..
But on some browsers like "IE" this method doesn't keep the referrer and it shows up blank..
So i was wondering if there are any other ways to do a JS redirect that will keep or spoof the referrer for all browsers..??
This is my PHP-JS redirect code..
Code:
<?php
if ($_SERVER['QUERY_STRING'] != ''){
If (stristr($_SERVER['QUERY_STRING'], "HTTP")){
$URL = $_SERVER['QUERY_STRING'];
Print "<html><body onLoad=\"java script: window.location='$URL';\"></body></html>";}
}
?>