Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2012-04-25, 03:54 PM   #1
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Question 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:
<?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?
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2012-04-25, 09:44 PM   #2
flowersgone
Are you sure you're an accredited and honored pornographer?
 
Join Date: Sep 2008
Posts: 67
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
__________________
Thank you for checking out my:
Portfolio and Tech Services
flowersgone is offline   Reply With Quote
Old 2012-04-26, 11:02 AM   #3
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2012-04-27, 09:09 AM   #4
tickler
If there is nobody out there, that's a lot of real estate going to waste!
 
tickler's Avatar
 
Join Date: Dec 2003
Posts: 2,177
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!!!
__________________
Latina Twins, Solo, NN, Hardcore
Latin Teen Cash
tickler is offline   Reply With Quote
Old 2012-04-27, 09:55 AM   #5
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Quote:
Originally Posted by tickler View Post
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
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2012-04-27, 10:23 AM   #6
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
This work although it is kind of a brute force approach and involves a third party website.
Code:
<?php header ("location: http://nullrefer.com/?http://floridaoutdooradventures.info/") ?>
www.cleogoodstuff.com





.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2012-04-27, 04:19 PM   #7
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
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.


.
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2012-04-27, 04:29 PM   #8
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Quote:
Originally Posted by Simon View Post
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.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2012-04-27, 07:24 PM   #9
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
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.

__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2012-04-27, 07:39 PM   #10
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
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


.
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2012-04-27, 07:53 PM   #11
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Quote:
Originally Posted by Simon View Post
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.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2012-04-28, 12:07 PM   #12
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
Code:
<!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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2012-04-28, 12:42 PM   #13
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
That's how I did it before I learned about using php redirects.

Guess I was making things too complicated.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2012-04-29, 09:15 AM   #14
tickler
If there is nobody out there, that's a lot of real estate going to waste!
 
tickler's Avatar
 
Join Date: Dec 2003
Posts: 2,177
Quote:
Originally Posted by Cleo View Post
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 !
__________________
Latina Twins, Solo, NN, Hardcore
Latin Teen Cash
tickler is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:14 PM.


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