How to mask/hide affiliate links.

aajoakim

Affiliate Guard Dog Member
Joined
Aug 7, 2012
Messages
12
Reaction score
0
I know this have been asked before but I don't find any answers that suits me.

I need a program or code to hide my affiliate links. I want it hidden from google. I'm a newbie when it comes to coding and that shit. just want something simple and easy to learn.

Looking for methods to make links like mysite.com/go/casino.html and it will then redirect to casino site with my aff link.
 

roey

From Pandora.
Joined
Feb 22, 2012
Messages
234
Reaction score
19
It wont be easy anyway you do it.
 

mattsgame

Affiliate Guard Dog Member
Joined
Sep 27, 2010
Messages
166
Reaction score
5
Are you using Wordpress? many plugins will help you out there (pretty links). If your not using Wordpress then you can do this as easy as a php script.

A few examples of this below:

PHP:
<?php
header( 'Location: http://www.omnicasino.com/affid=billybob' ) ;
?>

Now you can save this as omnicasino.php or imthebestintheworld.php or whatever you like. Then its just a matter of linking to that .php file instead of your affiliate link. You can end up with a few php files this way though.

Another option is to do it like this:

PHP:
<?
$o = $_GET['o'];
if ($o == "z1") {$link = "http://www.32red.com";}
if ($o == "z2") {$link = "http://www.nordicbet.com";}
if ($o == "z3") {$link = "http://www.affiliateedge.com";}
if ($o == "z4") {$link = "https://www.affiliateguarddog.com";}

header("Location: $link");
exit();
?>

Save this as link.php. Then you simply link
PHP:
<a href="link.php?o=z1">z1 means it will link to 32Red</a>

You can also use a rewrite rule in your .htaccess file or via Javascript (I found Javascipt has only been working well in Explorer and these days most people are using Chrome or Firefox)
 
Top