Here's a custom made script that I use when direct linking to offers. Besides the cloaking, it also allows geotargetting.
For example... Say you install it on www.yourdomain.com and want to link to Google. You can make 1 link (www.yourdomain.com/google) that redirects to www.google.de for German visitors, www.google.ca for Canadian visitors and www.google.com for all the rest.
You can download the script here: http://www.mediafire.com/?dmgwo3vvmya
Requirements:
- PHP and MySQL
- GeoLite Country by MaxMind, a free geotargetting database
- A host that supports .htaccess and mod_rewrite (most do)
- A domain
Installation instructions:
- Download the .rar file and upload to your server.
- Make a /log folder on your server and chmod it to 777 so that log files can be written in that folder.
- Install GeoLite Country.
- Update index.php with your MySQL server info (search for 'mysql_connect').
Usage instructions:
- Open links.txt
- For every country and for every keyword, add a new line that looks like:
COUNTRYCODE;KEYWORD;LINK
To match all countries, use the '*' wildcard. Keep in mind that the script will stop when it finds a matching line, so wildcard should be added after all other rules.
- Save links.txt
The links.txt code for the example given earlier in this post looks like this:
If you have any questions or problems, please let me know. If you want a more user friendly admin panel, pm me and I can write one for you (but not for free
).
For example... Say you install it on www.yourdomain.com and want to link to Google. You can make 1 link (www.yourdomain.com/google) that redirects to www.google.de for German visitors, www.google.ca for Canadian visitors and www.google.com for all the rest.
You can download the script here: http://www.mediafire.com/?dmgwo3vvmya
Requirements:
- PHP and MySQL
- GeoLite Country by MaxMind, a free geotargetting database
- A host that supports .htaccess and mod_rewrite (most do)
- A domain
Installation instructions:
- Download the .rar file and upload to your server.
- Make a /log folder on your server and chmod it to 777 so that log files can be written in that folder.
- Install GeoLite Country.
- Update index.php with your MySQL server info (search for 'mysql_connect').
Usage instructions:
- Open links.txt
- For every country and for every keyword, add a new line that looks like:
COUNTRYCODE;KEYWORD;LINK
To match all countries, use the '*' wildcard. Keep in mind that the script will stop when it finds a matching line, so wildcard should be added after all other rules.
- Save links.txt
The links.txt code for the example given earlier in this post looks like this:
Code:
CA;google;[URL]http://www.google.ca[/URL]
DE;google;[URL]http://www.google.de[/URL]
*;google;[URL]http://www.google.com[/URL]
