如何在使用PHP重定向到实际商店URL之前隐藏联属网址?

时间:2016-07-19 12:41:39

标签: php .htaccess

Connection:Upgrade

联属网址或我的联盟用户代码或跟踪代码不安全,因为任何人都可以轻松查看。我想在重定向到商店网站之前隐藏跟踪网址。

例如,假设我有<html> <head> <title>YOUR PAGE TITLE</title> <meta http-equiv=”refresh” content=”0;url=http://YOUR AFFILIATE URL”> </head> <body> <p>Redirecting, please wait. If you’re not redirected within a couple of seconds, click here:<br /> <a href=”http://tracking.vcommission.com/aff_c?offer_id=2371&url=http%3A%2F%2Fwww.naturesbasket.co.in%2FOnline-grocery-shopping%2FFruits-Vegetables%2FFruits%2F32_0_0%3Futm_source%3Dvcomm%26utm_medium%3Dcps%26utm_campaign%3Dvcommron”>PRODUCT NAME</a> </p> </body> </html>

之类的会员链接

我想隐藏vcommission网址并直接打开商店网站

1 个答案:

答案 0 :(得分:1)

你应该尝试隐藏跟踪网址并在php中重定向:

<?php 
    ob_start();
?>
<html>
<head>
<title>YOUR PAGE TITLE</title>

<meta http-equiv=”refresh” content=”0;url=http://YOUR AFFILIATE URL”>
</head>
<body>
<p>Redirecting, please wait. If you’re not redirected within a couple of seconds, click here:<br />
<a href=”http://tracking.vcommission.com/aff_c?offer_id=2371&url=http%3A%2F%2Fwww.naturesbasket.co.in%2FOnline-grocery-shopping%2FFruits-Vegetables%2FFruits%2F32_0_0%3Futm_source%3Dvcomm%26utm_medium%3Dcps%26utm_campaign%3Dvcommron”>PRODUCT NAME</a>


<?php
header( "refresh:5;url=http://tracking.vcommission.com/aff_c?offer_id=2371&url=http%3A%2F%2Fwww.naturesbasket.co.in%2FOnline-grocery-shopping%2FFruits-Vegetables%2FFruits%2F32_0_0%3Futm_source%3Dvcomm%26utm_medium%3Dcps%26utm_campaign%3Dvcommron" );
?>
</p>
</body>
</html>

在“刷新:{put count off seconds)”中,现在在5秒后重定向