Got Affiliate Links? Here’s How To “Hide” Them Using PHP – SUPER EASY!

Posted on | January 20, 2009 | 3 Comments

A little slow week for blog posts, so how about a super-simple way to hide affiliate links using PHP? I was at IDNChannel and Administrator mj made a post in July regarding hiding affilaite links using PHP. Ressurecting the thread to help some other members, I thought it might be useful for others who might not be hiding their affiliate links and this might be a quick-fix idea for people to make some more cash.

Code to input in your page (I’m assuming .html would NOT work with this… where you index/page should be .php):

<a href="l.php">Book a flight to Bangkok!</a>

What should be in the php page you call upon:

<?php

$url = "http://my-affiliate-link.com?a=XXX";

header("Location: $url");

?>

Here’s the July 22nd, 2008 thread that this was originally posted in.

Way to increase revenue? I definitely believe so!

More posts that you probably will enjoy

Comments

3 Responses to “Got Affiliate Links? Here’s How To “Hide” Them Using PHP – SUPER EASY!”

  1. Jeff
    January 20th, 2009 @ 7:58 pm

    Very handy tip – bookmarked!

  2. Dean Saliba
    January 21st, 2009 @ 5:52 am

    This is something I’ve been wondering, thank you. :)

  3. Trey Baird
    January 22nd, 2009 @ 1:43 am

    Maybe I don’t understand why you would want to hide your affiliate links? It sounds like a good thing to know, but why?

Leave a Reply