Alex Brooks
BANNED
- Mar 17, 2009
- 1,197
- 298
Index.php
Second.php
Links.txt
Do not include www or http:// in links.txt
Instead of most DMR methods, this is 100% safe (As far as I know) because of this:
For those of you who don't understand PHP, it basically says, if the referrer is blank, then redirect to a link in links.txt - But if it isn't blank, then go to google 
Code:
<?php
echo "<meta http-equiv=\"refresh\" content=\"0;url=second.php\">";
?>
Second.php
Code:
<?php
$sites = array_map("trim", file("links.txt"));
$redirect = $sites[array_rand($sites)];
$referer = $_SERVER['HTTP_REFERER']; if($referer == "")
echo "<meta http-equiv=\"refresh\"content=\"0;url=http://".$redirect."\">";
else
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.google.com\">";
}
?>
Links.txt
Code:
secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=affid
Instead of most DMR methods, this is 100% safe (As far as I know) because of this:
Code:
$referer = $_SERVER['HTTP_REFERER']; if($referer == "")
echo "<meta http-equiv=\"refresh\"content=\"0;url=http://".$redirect."\">";
else
{
echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.google.com\">";
}
?>