How to cloak and rediretc a web address

2 replies
  • WEB DESIGN
  • |
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
#address #cloak #rediretc #web
  • 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 }}

Trending Topics