1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Tutorial] How To Cloak Affiliate Links?

Discussion in 'Black Hat SEO' started by nahidlancer, Jan 27, 2014.

  1. nahidlancer

    nahidlancer Regular Member

    Joined:
    May 27, 2013
    Messages:
    234
    Likes Received:
    40
    Gender:
    Male
    Home Page:
    Every day I browse the web and find sites with affiliate links that are uncloaked. It puzzles me quite a bit. Usually I move on, chuckle to myself, and continue to be meticulous about my affiliate link handling and onsite usage. But today is different, today I?m going to give back to all my fellow affiliates and SEOs with an easy to follow tutorial on how to cloak affiliate links right in your WordPress admin. A method so easy that there is absolutely no excuse for having an uncloaked link much less a raw affiliate link anywhere on a site you?re trying to rank.
    If you have raw links, I beg you, after reading this please go cloak them immediately.

    My method is simple and easy to execute. It can very easily be used to train a VA so they can go monetize sites for you. Which is a nice bonus.
    Without attempting to go into the theory behind affiliate link cloaking, SEO, and what Google can and can not see, I have concluded that this is the best method out there for getting it done in a manner that should be an industry standard.
    There are two pieces to the affiliate link cloaking puzzle and all are handled via plugin in WordPress.

    Let?s Cloak Some Affiliate Links

    There are three main elements to proper affiliate link implementation.
    1. Modify our robots.txt file to disallow a specific subfolder where our affiliate links will reside.
    2. Use WordPress redirection plugin to create 302 redirects.
    3. Parse links with a rel=?nofollow? tag.

    Part 1. Hopefully you know your way around FTP, you will be modifying your existing or creating a new robots.txt with the following line.
    User-agent: *
    Disallow: /subfolder/
    Just simply type in whatever folder name you choose in place of ?/subfolder/? and Google will now be dissuaded from crawling or indexing that folder.
    If you don?t like FTP, then there is a plugin that will save you.

    The plugin will create a robots.txt file for you if you do not already have one. If you do have one already and are using SEO Yoast for example, then you can modify the file within the yoast admin. It?s under the ?edit files? tab.


    [​IMG]


    Here are some suggested directory names brainstormed via Twitter.
    /go/ /jump/ /download/ /likes/ /loves/ /recommends/ /r/ /visit/ /out/ /p/ /dl/ /refer/ /partner/ /ext/
    Then from the smart asses.
    /billstopay/ /pleaseconvert/ /makemerich/ /bob/ /mattcutts/ /showmethemoney/ /cashcashcashfuckyeah/ /pleasedontcrawltheselinks/ /plzbuy/ /ineednewshoes/ /hurryupandbuyalready/
    Part 2. Now that the important part is out of the way it?s redirect time.
    Start by installing WordPress Redirection Plugin. This is what we will be using to handle the redirects.
    Chances are you have used redirection plugin before, but you probably haven?t set 302 redirects.
    First create the redirect using the folder we just disallowed and whatever you?d like to name the link.
    /subfolder/ProductName


    [​IMG]
    Easy right? Now after you make the redirect, click the drop down and change the HTTP code from the default ?301″ to a ?302″.
    [​IMG]


    If you?d like to take a look at the HTTP status code definitions then go here.

    Why 302? Because we don?t want to give Google?s dumbass any chance to pass authority through that affiliate link.
    News flash, Google doesn?t like affiliates, especially affiliates who spam rankings. So get your game tight and cloak those damn links, don?t give them any easy wins.
    And if you were wondering about 302 vs 307 redirects for affiliate links, I might I have this one figured out (this puzzled me). So here is the first sentence of the definition from W3.org.
    302: The requested resource resides temporarily under a different URI
    307: The requested resource resides temporarily under a different URI
    Yeah, hrmmm. The only difference I can see is a 302 redirect is HTTP 1.0 compatible and 307s are only HTTP 1.1 compatible. Yup, I?m just as lost as you are. Well Yoast says go with 302 so that?s what we?ll do.
     
    • Thanks Thanks x 2
  2. abhi007

    abhi007 Jr. VIP Jr. VIP

    Joined:
    Aug 31, 2010
    Messages:
    5,303
    Likes Received:
    3,741
    Location:
    snip.li/TubH
    Nahid on a sharing spree today :)
     
  3. divok

    divok Senior Member

    Joined:
    Jul 21, 2010
    Messages:
    1,015
    Likes Received:
    634
    Location:
    http://twitter.com/divok
    Instead of plugin , i suggest using YOURLS .
     
  4. ZeroDouble

    ZeroDouble Newbie

    Joined:
    Sep 17, 2013
    Messages:
    49
    Likes Received:
    11
    Nice copy and paste from Jacob King's Blog!
     
    • Thanks Thanks x 1
  5. abhi007

    abhi007 Jr. VIP Jr. VIP

    Joined:
    Aug 31, 2010
    Messages:
    5,303
    Likes Received:
    3,741
    Location:
    snip.li/TubH
    if thats true then OP is a prick!
     
  6. Snckr

    Snckr BANNED BANNED

    Joined:
    Dec 27, 2013
    Messages:
    582
    Likes Received:
    381
    "Nahid on a sharing spree today :)"
     
  7. SaulGoodman

    SaulGoodman Registered Member

    Joined:
    Oct 8, 2013
    Messages:
    64
    Likes Received:
    38
    Location:
    BHW
    Well, I don't care wether OP is a copycat or not,

    I am rather surprised that he thought this would be helpful or new to many of us :D

    From my perspective, cloaking links and setting up redirects is the most basic thing ever and you also recommend using a plugin.. serious ?!!

    Using your .htaccess file is much faster and won't slow down your site by using php memory for another useless plugin !
     
    • Thanks Thanks x 1
  8. ilovestocks

    ilovestocks Junior Member

    Joined:
    Dec 13, 2012
    Messages:
    155
    Likes Received:
    129
    Occupation:
    Stay at home mom
    Location:
    United States
    I once cloaked my links for a few months and later chickened out lol..I'm an Amazon Affiliate and they will ban you, so I was kind of scared to keep doing it. Does anyone else cloak Amazon links? If so, are you worried about a ban?

    Posted via Topify using iPhone/iPad