View Full Version : Anyway of doing a php redirect and not have it pass the referral url?
I have the domain www.cleogoodstuff.com that send all my exit site traffic to.
I've put a php redirect there so that it loads my mainstream blog.
<?php header ("location: http://floridaoutdooradventures.info/") ?>
The trouble is that it shows the referral url which ends up showing adult links to my mainstream blog. Anyway of making it so that cleogoodstuff.com comes up as the referral url?
flowersgone
2012-04-25, 10:44 PM
Hows about something like:
<html>
<head>
<title>Gateway to Florida Outdoor Adventures</title>
<meta http-equiv="refresh" content="1; url=http://url.anonfiles.org/4q">
</head>
<body>
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
window.location = 'http://floridaoutdooradventures.info';
/*]]>*/
</script>
<p>redirecting</p>
</body>
</html>
If JavaScript is enabled the window.location redirect takes over and the referrer should be the page with the JavaScript. If there is no JavaScript the code does a meta redirect using an anonymously shortened URL that should take you to the same place but hide the referrer. I haven't tested completely but as best I could.
fg
I thought about doing a JavaScript timed redirect. Also thought about doing a page with an RSS feed like I had before with my old blogs.
But actually it looks like my fear was unfounded anyway as it looks like the adult referrals only show up in my server stats and are not listed as links in Google.
tickler
2012-04-27, 10:09 AM
This may help by spoofing the referrer!!!
<?php
header("Referer: http://www.google.com\n");
header("Location: http://floridaoutdooradventures.info/")
?>
I think the script has to be on "floridaoutdooradventures.info" for security access reasons!!!
This may help by spoofing the referrer!!!
<?php
header("Referer: http://www.google.com\n");
header("Location: http://floridaoutdooradventures.info/")
?>
I think the script has to be on "floridaoutdooradventures.info" for security access reasons!!!
Doesn't work
http://floridaoutdooradventures.info/test.php
This work although it is kind of a brute force approach and involves a third party website.
<?php header ("location: http://nullrefer.com/?http://floridaoutdooradventures.info/") ?>
www.cleogoodstuff.com
.
Simon
2012-04-27, 05:19 PM
One thing to consider is setting up an https site just to use for all your redirect links. Since browsers aren't allowed to pass a referring URL from an HTTPS server to an HTTP server that should take care of the problem.
.
One thing to consider is setting up an https site just to use for all your redirect links. Since browsers aren't allowed to pass a referring URL from an HTTPS server to an HTTP server that should take care of the problem.
Now that is an interesting solution.
I see one needs to buy a SSL certificate. Not sure I want to spend $70 a year on one.
Simon
2012-04-27, 08:24 PM
I was thinking you could use a self-signed certificate since the domain would only be used by you and only for redirecting clicks. You won't have ecommerce transactions occurring on that domain.
But I'm not sure, now that I think about it, that a surfer's browser might not pop a warning message about it not being a signed Certificate Authority certificate.
If someone has a testing server and some free time, this could be worth knowing for sure. But until then I'm not suggesting it's a workable solution since there might be device/system/browser combinations where it won't do what you want.
:)
Simon
2012-04-27, 08:39 PM
Also, I don't know who you use for domain registrations, but NameCheap has some reasonably-priced ($10/year) SSL certificates. Comodo, GeoTrust and Thawte are available...
http://www.namecheap.com/ssl-certificates/comodo.aspx
.
Also, I don't know who you use for domain registrations, but NameCheap has some reasonably-priced ($10/year) SSL certificates. Comodo, GeoTrust and Thawte are available...
http://www.namecheap.com/ssl-certificates/comodo.aspx
Yeah after I posted that I looked at NameCheap and saw that they had stuff for much less than GoDaddy.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Redirecting...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta http-equiv="refresh" content="0; URL=http://floridaoutdooradventures.info/"/>
</head>
<body></body>
</html>
This is what you need - and is approximately what nullrefer.com was doing - though they were loading a statcounter. Javascript's top.location can optionally pass the referrer, but, the meta refresh will work across all browsers and won't send a referrer.
That's how I did it before I learned about using php redirects.
Guess I was making things too complicated.
tickler
2012-04-29, 10:15 AM
That's how I did it before I learned about using php redirects.
Well you could still use PHP to control the meta-refresh redirect !
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.