Affliate Link Cloaking Tutorial

Status
Not open for further replies.
do you ever see that when you do redirects that you have a much lower epc? (the links might not be tracking right). I was using a 301 redirect for cloaking links and it definately wasnt tracking right for me. I switched to a php redirect and it seems alot better, but my epc is still higher on pages where i dont do a redirect. Maybe its just me. Good post though

You used a 301 and switched to php redirect huh? You did the 301 with .htaccess?
There is no difference between redirects done in php or .htaccess! The 301 is a http status response code you can send. 302 is the default code for redirects, so if you didnt specify anything in php you send a 302 redirect instead of a 301 in .htaccess or whatever you did. 302 is default in .htaccess/apache too. But you probably did

Code:
Redirect 301 url1 url2

You could do
Code:
Redirect 302 url1 url2
or
Redirect url1 url2

too, to get same results as you did in php.

Makes any sense? :1orglaugh:
 


I like that PHP redirect, it seems like a safe and very good alternative to using any type of JS or meta refresh. Then again, you can always use those flash redirects that those asshole phishing kids were using on myspace. Sure they were using them for fucked up things, but the redirection code/file itself was fuckin awesome. See, sometimes you can get something good out of something bad.


very true.... i remember when the flash popup started. i used that alot on myspace back it the day, but now popup blockers are so common place its pretty much useless (p.s. i wasn't ever a phishing kid)
 
I have just started playing with Kflemmings PHP redirect script and set it up as described

I created the links as link.php?monkfish

And here is the corosponding link.php entry:

if ($offer == "monkfish")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70800";}

when I click on the link i get :

Not Found

The requested URL /&sub= was not found on this server.

Any ideas?

Thanks
 
umm.... when I enter the URL that you want it to redirect to, it says 'not a valid relationship.' So maybe you should have checked to see if the aff link is valid to make sure that it is or isn't something wrong with the script itself.
 
Sorry i put the wrong URL :

Shopping site for all your Sea Fish and Shellfish deliveries.


<?
$offer = $_GET['offer'];
$type = $_GET['type'];

if ($offer == "monkfish")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "salmon")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "haddock")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "prawns")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "swordfish")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "seabass")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "cod")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "mackerel")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "plaice")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "redsnapper")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "solesdover")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "squid")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "tuna")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "whitebait")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "lobster")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}

if ($offer == "fullstock")
{$jumplink= "http://www.awin1.com/awclick.php?mid=268&id=70100";}


header("Location: ".$jumplink."&sub=".$type."");
?>
 
Link Redirects

Hello Everyone,My first post here at wicked... very nice website... I have learned a lot and I hope to contribute what ive learned as well...I think some are missing the point as far as link redirects go... In my niche it is very important to redirect links and I would suggest it for any other niche that uses Google Search PPC. It is a fact that google frowns upon affiliate links. That is the nature of the beast, they want to increase the quality of the users experience... whatever that means. Like they know what the user is actually looking for, that is another tangent.. but, having loads of affiliate links or just a main focus on an affiliate link can cause you problems. So if you set up a site and add a few sub pages, and use a link redirect to mask the affiliate URL you should be fine. But, make sure you put the script in a sub directoy and use the robots.txt file to disallow the directory. An added bonus to redirects is if you get the right script.. there are literally hundreds of them, that can actually count your clicks. So you can see based on the amount of traffic sent to your page via ppc how many people actually clicked the ad... then you can see if maybe you presented the page wrong.Anyhow thats just my spin on it... Besides, why re-invent the wheel? There are already scripts out there that will do exactly what you need... why mess it up if you dont have to?Good Luck.
 


KFlem's script is missing some .htaccess translation. The php file he provides is expecting an url like:

Shopping site for all your Sea Fish and Shellfish deliveries.

....where you're providing him with........

http://www.freshseafood.org.uk/link.php?plaice



So, rewrite your links to match the 1st example, or hit up a short course on using .htaccess to rewrite your requests.
 
What about using (especially for banners) a simple flash banner? (of course if you don't have to create 2000 websites a day...)
 
2. Advanced PHP Link Cloaking

Above I mentioned how I like using the PHP method because of the flexibility. Well now I’m going to show you how to build a more advanced link redirect system that you can use with multiple links. This is a perfect solution for affiliate marketing and PPC links.


First you will need to create a new PHP file…in this case i named it link.php.
Then as you can see below you need to include this simple script in which each if statement is a different page you want to redirect. This method is widely used in affiliate marketing because you can mask all your affiliate links using this one file and your URLS will then look like this…http://www.yoursite.com/link.php?dating - which would redirect to the dating url.

example1.gif


You can download the php file here

Hey, i was curious if you could help me with this, I tried this php method you listed but its linked through a joomla based page. (i linked a line of text with http://www.domain.com/link.php?name) but i keep getting :

The page you are trying to access does not exist.
Please select a page from the main menu.

could it be some sort of conflict, i cant seem to figure it out at all

*edit, realized its not a conflict but i still cant seem to get it to work =\
 
i tried the advanced php with the "offer=" added to it
and it doesnt work for me at all, do i have to ad anything to the .htaccess file? it keeps giving me page does not exist, even though i tried a clickbank affiliate hop link, as well as a normal url, and on 2 different domains (but same server)
 
i tried the advanced php with the "offer=" added to it
and it doesnt work for me at all, do i have to ad anything to the .htaccess file? it keeps giving me page does not exist, even though i tried a clickbank affiliate hop link, as well as a normal url, and on 2 different domains (but same server)

taking a quick random guess, i would think that one cause of this would be not having the php file in the proper directory. if you are linking to it like so: "http://mysite.com/link.php?offer=ringtones" then you would need the file "link.php" in your root directory. make sure it isn't in a subdirectory or named something slightly different like "link.php.txt" which can happen when you upload it.

hope this helps.
 
For those that are having the problems with the PHP script, I assume it is some problem on your hosts side. I used a similar php redirect script for quite some time, And it only works on certain hosting packages of mine. The ones it doesn't work on just redirect to my main website (I have a part that says if they don't type the correct offer code, That they will be redirected to a URL of my choice). Not 100% sure what the hosting requirements are, Only that some work and others don't. If you have multiple hosting packages you may want to try it on another one and see if it works.
 
Status
Not open for further replies.