How to cloak and rediretc a web address

by Chrissy Allen 2 replies
Hey TEAM,

I need to cloak a web address and could do with a hand if possible.

I basically want to send people to a web address which when inputted redirects to the actual one that i want to hide.

Any help is really appreciated

Warm regards

Chunkynuts
#website design #address #cloak #rediretc #web
Avatar of Unregistered
  • Profile picture of the author RaulK
    If I understood you correctly you need to do a mod_rewrite in your .htaccess file. I needed to solve similar problem recently and this page helped me a lot: mod_rewrite, a beginner's guide (with examples)
    {{ DiscussionBoard.errors[2932369].message }}
  • Profile picture of the author h0ms
    Make a link using the following structure
    http://yourdomain/subdir/cloak

    Create a directory called 'subdir' and place an htaccess file in it which contains the following:

    RewriteEngine on
    RewriteRule ^cloak$ http://affiliate.link [L,R=301]

    In addition you could also block bots from entering this subdir and discover your affiliate links by putting lines like these:

    BrowserMatchNoCase Googlebot/2.1 bot1
    Order Deny,Allow
    Deny from env=bot1

    BrowserMatchNoCase Yahoo! Slurp bot2
    Order Deny,Allow
    Deny from env=bot2

    Etc..

    Also edit your robots.txt file and add the following:

    User-agent: *
    Disallow:/subdir/


    -replace 'subdir' with the name of your actual subdir.
    -replace 'cloak' with any word that suits you best.
    -replace 'http://affiliate.link' with your affiliate link.
    {{ DiscussionBoard.errors[3896865].message }}
Avatar of Unregistered

Trending Topics

  • 5 {{ upvoteCount | shortNum }}

    How to Market a book?

    Hi guys. I need help marketing a book. Any suggestions? thanks

  • 4 {{ upvoteCount | shortNum }}

    How to make money online as an 18 year-old?

    I have a real job already, but i also want to have a steady passive income from the internet...any suggestions how ?

  • 55 {{ upvoteCount | shortNum }}

    " Great Post, Thanks " Arrrggghhhh

    discrat in Off Topic

    Sorry just felt compelled to write this as I was scouring the Main Forum here today. I see some members ( mostly new but a few old) who felt the ... [read more]

  • 218 {{ upvoteCount | shortNum }}

    What is the main reason for the 95% failure rate in internet marketing?

    Here is my take on the matter: Look, a lot of people get into the internet marketing business only because of its huge money-making potential without having a love for ... [read more]

  • 40 {{ upvoteCount | shortNum }}

    How to get free content for my newly created blog?

    Hello Friends, Recently I have setup a blog. And just copied 50-60 articles from different sites. Now, I want to get quality content for my blog to increase organic traffic. ... [read more]