Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Anyway of doing a php redirect and not have it pass the referral url? (http://www.greenguysboard.com/board/showthread.php?t=63858)

Cleo 2012-04-25 03:54 PM

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.
Code:


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 09:44 PM

Hows about something like:

HTML Code:

<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

Cleo 2012-04-26 11:02 AM

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 09:09 AM

This may help by spoofing the referrer!!!

PHP Code:

<?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!!!

Cleo 2012-04-27 09:55 AM

Quote:

Originally Posted by tickler (Post 515695)
This may help by spoofing the referrer!!!

PHP Code:

<?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

Cleo 2012-04-27 10:23 AM

This work although it is kind of a brute force approach and involves a third party website.
Code:


www.cleogoodstuff.com





.

Simon 2012-04-27 04: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.


.

Cleo 2012-04-27 04:29 PM

Quote:

Originally Posted by Simon (Post 515707)
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 07: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 07: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


.

Cleo 2012-04-27 07:53 PM

Quote:

Originally Posted by Simon (Post 515710)
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.

cd34 2012-04-28 12:07 PM

Code:




Redirecting...





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.

Cleo 2012-04-28 12:42 PM

That's how I did it before I learned about using php redirects.

Guess I was making things too complicated.

tickler 2012-04-29 09:15 AM

Quote:

Originally Posted by Cleo (Post 515718)
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 !


All times are GMT -4. The time now is 10:17 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc