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)
-   -   (Biz Thread) Double Meta refresh to blank the referrer.... (https://gfy.com/showthread.php?t=895882)

Juicy D. Links 03-25-2009 11:06 AM

(Biz Thread) Double Meta refresh to blank the referrer....
 
twinks lmk if this is a good way


First make the file bla.php


Code:

<?php
echo "<meta http-equiv=\"refresh\" content=\"0;
url=http://www.cockmeat.com/bla2.php\">";
?>

Then bla2.php
Code:

<?php
$referer = $_SERVER['HTTP_REFERER'];
if($referer == "")
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://
www.affiliatelinkinhere.com/\">";

}
else
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://
www.cockmeat.com\">";
}
?>








--Im beautiful

Juicy D. Links 03-25-2009 11:07 AM

please no cockmeat jokes lmk if this is a good way

Juicy D. Links 03-25-2009 11:08 AM

whole lotta cockmeat in that code

Iron Fist 03-25-2009 11:10 AM

why not do this through .htaccess?

420 03-25-2009 01:49 PM

I will give you $2k for cockmeat.com.

borked 03-25-2009 02:02 PM

look, just cos the tool that wrote the referrer section for apache couldn't spel, and PHP followed his spelling mistake to make things consistent (eh, wtf???), doesn't mean you have to make your var named $referer and not $referrer

/rant

rowan 03-25-2009 02:14 PM

Some versions of IE (6 I think) ignore a meta refresh time of 0.

You can also use javascript to do the redirect.

If you need this to block the referer 100.0% of the time then I don't think it's going to work, sooner or later a browser is going to leak something... I've seen weird behaviour before where a hit goes through my system as noref, is 302'd to another of my sites, and there it suddenly presents a referer again...

Antonio 03-25-2009 02:44 PM

head over to bhw and grab a script from there

pornguy 03-25-2009 03:06 PM

I think the htaccess idea is better and a faster redirect.


All times are GMT -7. The time now is 03:42 PM.

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