GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php question: how to remove referer info with a header redirect? (https://gfy.com/showthread.php?t=510918)

mrthumbs 09-01-2005 04:19 AM

php question: how to remove referer info with a header redirect?
 
How do i remove the REFERER (http_referer) info when sending traffic through a Header("Location..) ?

As in:

USer clicks on a link on mypage.com -> lands on y.com/redirect.php

y.com redirects it to z.com .. i dont want z.com to know the click came from mypage.com..

Any ideas?

justfreemovies 09-01-2005 04:23 AM

i have had the same question for a while now

mrthumbs 09-01-2005 04:25 AM

Quote:

Originally Posted by justfreemovies
i have had the same question for a while now

header("Referer: http://www.site.com");

doesnt do it.. just in case someone dares to mention that ;)

justfreemovies 09-01-2005 04:27 AM

yeah cause one of my sites uses a randomizing script where it pulls the random url from the list of urls in a text file, and i use it to filter traffic, and i dont want people to know where my traffic comes from (trade secret)

mrthumbs 09-01-2005 04:30 AM

Quote:

Originally Posted by justfreemovies
yeah cause one of my sites uses a randomizing script where it pulls the random url from the list of urls in a text file, and i use it to filter traffic, and i dont want people to know where my traffic comes from (trade secret)

For me i just want to do referer tracking on the target domains.. and thats a bitch when hits are coming from a zillion domains. To be honest i havent seen anyone spoofing referers in my stats (except from browsers that support it) so im starting to think its not possible

u-Bob 09-01-2005 05:33 AM

referer is set clientside, no way to change it serverside.

(you could redirect to a page with a javascript redirect or metaredirect... that will work for most browsers)

AcidMax 09-01-2005 05:35 AM

Quote:

Originally Posted by mrthumbs
For me i just want to do referer tracking on the target domains.. and thats a bitch when hits are coming from a zillion domains. To be honest i havent seen anyone spoofing referers in my stats (except from browsers that support it) so im starting to think its not possible

Do you have control over the other script counting the referers? If so just make a new header and name it whatever you want so you can track the referring page. Or write a simple script to just log the counts to a db or file. Not that difficult.


All times are GMT -7. The time now is 06:18 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123