|
|
|
||||
|
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 |
|
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
|
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\">"; ?> 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 |
|
|
|
|
|
#2 |
|
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
|
please no cockmeat jokes lmk if this is a good way
|
|
|
|
|
|
#3 |
|
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
|
whole lotta cockmeat in that code
|
|
|
|
|
|
#4 |
|
Too lazy to set a custom title
Join Date: Dec 2006
Posts: 23,400
|
why not do this through .htaccess?
__________________
i like waffles |
|
|
|
|
|
#5 |
|
cuck
Industry Role:
Join Date: Mar 2003
Posts: 11,571
|
I will give you $2k for cockmeat.com.
__________________
<!--BEGIN SIMUTRONICS PLAY BUTTON CODE --> <p align="center"> <a href="http://buddy.play.net/dr?TMOREAU1"> <img src="drplay.gif" width="128" height="64" alt="Play DragonRealms!"></a></p> <!--END SIMUTRONICS PLAY BUTTON CODE --> |
|
|
|
|
|
#6 |
|
Totally Borked
Industry Role:
Join Date: Feb 2005
Posts: 6,284
|
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
__________________
![]() For coding work - hit me up on andy // borkedcoder // com (consider figuring out the email as test #1) All models are wrong, but some are useful. George E.P. Box. p202 |
|
|
|
|
|
#7 |
|
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
|
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... |
|
|
|
|
|
#8 |
|
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
head over to bhw and grab a script from there
|
|
|
|
|
|
#9 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Mar 2003
Location: Homeless
Posts: 62,911
|
I think the htaccess idea is better and a faster redirect.
__________________
PornGuy skype me pornguy_epic AmateurDough The Hottes Shemales online! TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME! |
|
|
|