Guys, be careful with Google. Do not risk your account under any circumstance.
If you want to hide your links, do as follows:
- Create a new folder on your PC. You can name it anything you want. I suggest you to keep it short, because you are going to upload it to you server later and will have access to it through your browser.
I'll call it ads for this example.
- Open Notepad, copy this code and update it with your affiliate link.
Code:
<?php
header('location:http://put.your.affiliate.link.here')
?>
- Save the file inside the folder you just created. Give the file a convenient name for you to recognize it, something like myfavoriteaffiliate.php , just make sure that the file extension is .php . Repeat these steps for as many affiliate you want to hide. Make one .php file per affiliate.
- Upload the folder (with the php files) to your server.
- In your website, change all the affiliate links to point to their respective .php file inside the folder you just uploaded.
- Your affiliate links will look like this
Code:
http://www.your.web.site.name.com/ads/myfavoriteaffiliate.php
- Disallow the ads folder in your robot.txt file. (I hope you know what the disallow does
). For this example we named the folder ads , so you will add this line to your robot.txt
- Test your links.
There are ways to combine all the .php files in one file, but I won't mention them here, so you don't get confused. I'll leave that one for some other time
Jordi