![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
|
How do you send traffic through a redirect URL and change the referrer?
Basically I am trying to find a way to send traffic through a URL and have the referrer shown at that URL. So let's say I have links on:
site1.com site2.com site3.com And the links point to othersite.com/link1, which redirects to finalsite.com. I need finalsite.com's referrer stats to say that all the traffic came from othersite.com/link1 and not a bunch of traffic sources. Usually when you send traffic through a redirect like that the referrers will show up as the original sources. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
58008 53773
Industry Role:
Join Date: Jul 2005
Location: Australia
Posts: 9,864
|
Pretty sure it isn't possible unless you pipe everything through othersite.com/link1 and even then the url from before can be passed on.
Trying to pull a dodgy? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
PornSiteDomains.com
Industry Role:
Join Date: Oct 2002
Location: US
Posts: 1,265
|
Only way I know of is if the page on othersite.com/link1 has a meta refresh tag like
<meta http-equiv="refresh" content="0;url=http://finalsite.com/" /> but that has its own issues. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | ||
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
|
Quote:
Not trying to pull anything slick at all, I just want to make sure my statistics are laid out very simple and not showing referrers from all over the place. Quote:
Another example would be if you wanted to skim traffic coming to your site from your trade1 to your trade2 (not what I'm trying to do), the referrer for trade2's stats will usually show as trade1 and not YOUR domain, so you are losing credit for sending trade2 traffic. Is it an on-page time problem? The redirect needs to happen slower in order to plant the correct referrer URL? Or is it a problem where the surfer needs to click something in order for the referrer to come from that URL? Maybe I'll just have to run some tests. |
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Dec 2005
Location: Arizona/Indiana
Posts: 366
|
How do you send traffic through a redirect URL and change the referrer?
It's called hypertext preprocessor. ~ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
PornSiteDomains.com
Industry Role:
Join Date: Oct 2002
Location: US
Posts: 1,265
|
The referer will be correct every time. The 0 or any other number before the URL inserts the delay before the automatic redirect so with a 0 there is very little if any delay. The acccuracy of the redirect is the same with any delay. The surfer does not need to click anything. One of the issues is the browser back button is not as functional with a short or no delay.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
PornSiteDomains.com
Industry Role:
Join Date: Oct 2002
Location: US
Posts: 1,265
|
php sends the original page as the referer so does not help but could be used to dynamically insert the final destination domain in the meta refrsh tag.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Dec 2005
Location: Arizona/Indiana
Posts: 366
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
|
Quote:
![]() As far as I've seen, a PHP redirect does show the original source as referrer. Which is why I'm looking for an alternate solution that will show the redirect as the referrer. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
PornSiteDomains.com
Industry Role:
Join Date: Oct 2002
Location: US
Posts: 1,265
|
There is a back but it goes to the redirecting URL if only clicked once and thus you get a loop. This should accomplish what you want however so give it a try. I don't know what books glowlite is reading but all the ones I have read indicate that redirection does not work in the way you are trying to get it to.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Too lazy to set a custom title
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
|
Use the meta refresh... Helps to filter out some bots as well..
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Sep 2010
Posts: 649
|
PHP Code:
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Feb 2008
Posts: 1,430
|
will php redirect work ?? i never tried it before
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
►SouthOfHeaven
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
|
javascript
__________________
hatisblack at yahoo.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Feb 2007
Location: Sweden
Posts: 5,650
|
Double META-refresh will clean the referer. I think you have to set the META-redirect to 5 seconds to make the new page the referer.
__________________
Free 🅑🅘🅣🅒🅞🅘🅝🅢 Every Hour (Yes, really. Free ₿itCoins.) (Signup with ONLY your Email and Password. You can also refer people and get even more.) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Too lazy to set a custom title
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
|
Code:
<?php $url = urldecode($_REQUEST[url]);?> <html><head></head><body onload='top.location="<?=$url;?>"></body></html>
__________________
![]() ![]() ![]() It's all disambiguation ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: oddfuturewolfgangkillthemall!!!!!!!
Posts: 5,656
|
Tried this. In Firefox and IE the referrer is left blank on the final page, Chrome is the only one that actually shows a referrer and it shows it correctly as the redirect URL. In Firefox and Chrome the back button on 1 click goes to the original source, IE goes to the redirect page.
Nice, this code works. Tried a double meta refresh and it didn't work, might not have done it correctly though. Quote:
Final code I'm going with for the redirect page: PHP Code:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Too lazy to set a custom title
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
|
Quote:
![]() Not that it makes any difference really, but if you're going to hard code the url in the php, you might as well take all of the php out and put the url in the location directly. Either way works though. ![]()
__________________
![]() ![]() ![]() It's all disambiguation ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |