I've been messing around with methods posted here and made a double meta refresh and .htaccess combination cloaking method.
Create page1.php that contains the following code:
Create page2.php that contains the following code:HTML Code:<html> <head> <?php echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.yourdomain.com/page2.php\">"; ?> </head> <body> </body> </html>
Create page3.php that contains the following code:HTML Code:<html> <head> <?php $referer = $_SERVER['HTTP_REFERER']; if($referer == "") { echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.yourdomain.com/page3.php\">"; } ?> </head> <body> </body> </html>
Finally create a .htaccess file that contains the following:HTML Code:<html> <head> <?php $referer = $_SERVER['HTTP_REFERER']; if($referer == "") { echo "<meta http-equiv=\"refresh\" content=\"0;url=http://www.youraffiliatedomain.com?querystring=whatever\">"; } ?> </head> <body> </body> </html>
You need a web host that supports .htaccess and PHP for this to work so 000webh0st this will work great. When you send the user to page1.php either directly or from a hyperlink on another domain, the code above will blank the referrer and also make it so the user cannot see your affiliate link in the address bar of the web browser. In the case that the .htaccess file fails, the user will still be redirected to the affiliate link but it will be visible in the address bar. Please let me know if you see any issues with this or if you think this can be improved further.Code:Redirect 301 /page3.php http://www.youraffiliatedomain.com?querystring=whatever





LinkBack URL
About LinkBacks



Reply With Quote


load it via iframe execute it as code 1 pixelx1pixel..





Bookmarks