How to cloak a link

by 6 replies
7
Hi guys,

I'm wondering if anyone can be a help to my problem.
I want to cloak a link so my visitor will not see the actual url :
example :

www.play.com to www.home/ebook

so my visitor will see www.home/ebook in their browser.

Many thanks for your help.
#programming #cloak #link
  • Code:
    <a href="http://plus.google.com/">http://www.facebook.com/<a>
    • [ 1 ] Thanks
  • There are some software solutions that do this. I use wordpress and use redirection plugins to achieve that exact thing you are trying to do.
    • [1] reply
    • Thank you guys for your time and answer.
      Really appreciate it
  • Own URL shortening system with custom URL's ... working on that (maybe a howto).

    Not only for WordPress, for every site.
  • Here's how I do it.
    I first create a folder like "recommend" or something to your liking
    In that folder I put php stuff like this:
    <?php
    header('Location: http://www.YourAffiliateLink.com/');
    ?>
    Let's assume this code is in a file called MyProductLink.php (No doubt you can come up with a better, more suitable, name).

    On the page I use a link to this file, which redirects to the real stuff.

    Just my $0.02, HTH
    • [ 1 ] Thanks
    • [1] reply

Next Topics on Trending Feed