moneyslow.com

Affiliate php redirect script

php对输入的安全性处理函数trim、stripslashes、htmlspecialchars

php对输入的安全性处理函数trim、stripslashes、htmlspecialchars

If you use php to redirect you affiliate url ,use this script:

<?php
$links=array
(
'vultr'=>'https://www.vultr.com/?ref=123456',
'genesishosting'=>'https://billing.genesishosting.com/aff.php?aff=123'
// etc... last line without comma
);
if (array_key_exists($_GET[id],$links))
{
header("HTTP/1.1 301 Moved Permanently");
header("Location:" . $links[$_GET[id]]);
}
else {echo "bad url";}
exit(); ?>

This script can hide you real website such as http://moneyslow.com/aff?xxx url , so it's very graceful

Exit mobile version