dannyhw
Senior Member
- Jul 16, 2008
- 979
- 476
Just decided maybe I should start using these 
PHP:
<?php
/*
Name this dmr.php
Use: dmr.php?url=http://www.ebay.com/i-am-a-nice-affiliate
*/
dmr();
function dmr() {
$url = $_GET['url'];
// Where you will send them if it fails
$crap = 'http://your-best-viagra-rimjobs.com/vicodin-sluts';
if ( $_SERVER['HTTP_REFERER'] == "" ) {
// If it's blank, who the hell cares?
refresh($url);
die();
} else if ( $_GET['tried'] == '1' ) {
// Already tried it, fuck it. Zango city.
refresh($crap);
} else {
// Let's try this one more time
refresh( "dmr.php?url=" . urlencode($url) .
"&tried=1" ); // I mean it, one more try
}
}
function refresh($url) {
echo "<meta http-equiv='refresh' content='0; url=$url'>";
}
?>