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

[TUT] Full Guide and best practice for Hiding your Affiliate link / ID

Discussion in 'Making Money' started by timmylang, May 30, 2012.

  1. timmylang

    timmylang Junior Member

    Joined:
    Mar 3, 2011
    Messages:
    172
    Likes Received:
    49
    Location:
    BotLand
    Hello. I had an issue where I wanted to hide my affiliate ID to the furthest extent.


    It's impossible to hide it all the way.. But the best practice to hide it as much as possible from the less tech savvy is as follows:


    1) Register a domain name: Singlespeoplez.com (for example). This will be the domain you send people to who you want to go to your affiliate link.


    2) I would then suggest registering a different domain where you host your link cloaker (or you can use +1nee url or something else). Lets say this url is linkcloaker.com. You can add wordpress to this domain if you like and install prettylink lite (free). When you create your cloaked link using pretty link, you would normally put it in an index.html file as follows... your affiliate link would turn into: linkcloaker.com/link1.




    3) Now, what your iframed page index.html code would normally look like is:


    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="EN">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Put Your Title Here</title>
    <style type="text/css">
    html {overflow: auto;}
    html, body, div, iframe {margin: 0px; padding: 0px; height: 100%; border: none;}
    iframe {display: block; width: 100%; border: none; overflow-y: auto; overflow-x: hidden;}
    </style>
    </head>
    <body>
    <iframe id="tree" name="tree" src="http://linkcloaker.com/link1" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"></iframe>
    </body>
    </html>
    



    Now, when someone goes to Singlespeoplez.com, your affiliate link would be opened in a full page iframe, with Singlespeoplez.com in the address bar, even though they are on Singlesnet.com/myaffiliateID, for example. Most CPA marketers would leave it at that.. Since now, no one can see your affiliate ID in the address bar once they land on the destination page.


    The problem here is, when someone goes to Singlespeoplez.com, they can hit "view source" in their browser, and see linkcloaker.com/link1 in the source. Then, they can manually go to "linkcloaker.com/link1", and it will take them to your affiliate link, with your affiliate ID on the end.


    So, using the iframe, is sort of like putting tape on your front door to lock it. Not as good as it can be.


    Lets go to the next level of protection:


    4) So, the next step you can do, is scramble the source code of Singlespeoplez.com, so no one can see your affiliate link (linkcloaker.com/link1).


    To do this, you can use a free tool called html encrypter:


    http://www.iwebtool.com/html_encrypter




    This is what you need to do: Start with the template below (put this code in an index.txt file... this index.txt would later be changed to index.html when you upload it to your site):



    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="EN">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Put Your Title Here</title>
    <style type="text/css">
    </style>
    </head>
    <body>
    </body>
    </html>
    <script type="text/javascript">
    document.getElementsByTagName("style")[0].innerHTML = unescape('your css goes in here');
    document.getElementsByTagName("body")[0].innerHTML = unescape('your html goes in here');
    </script>
    



    5) Go back to the code from step 3, and grab the data between the <style type="text/css"> </style> tags:



    Code:
    html {overflow: auto;}
    html, body, div, iframe {margin: 0px; padding: 0px; height: 100%; border: none;}
    iframe {display: block; width: 100%; border: none; overflow-y: auto; overflow-x: hidden;}
    


    6) Put this data inside the encryter website, and hit encrypt.


    7) Take the new javascript code from the encrypter website, the part where it says unscape:


    Code:
    '%68%74%6D%6C%20%7B%6F%76%65%72%66%6C%6F%77%3A%20%61%75%74%6F%3B%7D%0A%68%74%6D%6C%2C%20%62%6F%64%79%2C%20%64%69%76%2C%20%69%66%72%61%6D%65%20%7B%6D%61%72%67%69%6E%3A%20%30%70%78%3B%20%70%61%64%64%69%6E%67%3A%20%30%70%78%3B%20%68%65%69%67%68%74%3A%20%31%30%30%25%3B%20%62%6F%72%64%65%72%3A%20%6E%6F%6E%65%3B%7D%0A%69%66%72%61%6D%65%20%7B%64%69%73%70%6C%61%79%3A%20%62%6C%6F%63%6B%3B%20%77%69%64%74%68%3A%20%31%30%30%25%3B%20%62%6F%72%64%65%72%3A%20%6E%6F%6E%65%3B%20%6F%76%65%72%66%6C%6F%77%2D%79%3A%20%61%75%74%6F%3B%20%6F%76%65%72%66%6C%6F%77%2D%78%3A%20%68%69%64%64%65%6E%3B%7D'
    


    Take this code, and paste it into your index.txt file, where it says: 'your css goes in here'


    When you copy the text from the encrypter website, make sure to only grab ' ' and all code in between. You then replace 'your css goes in here' with this. Make sure to include the ' ' on the final code.



    8) Now, you want to go back to the original html code in step 3 again, and get the code between the <body> </body> tags:



    Code:
    <iframe id="tree" name="tree" src="http://linkcloaker.com/link1" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"></iframe>
    


    9) Copy and paste this into the encryper website, hit encrypt, and grab the new code below:


    Code:
    '%3C%69%66%72%61%6D%65%20%69%64%3D%22%74%72%65%65%22%20%6E%61%6D%65%3D%22%74%72%65%65%22%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%6C%69%6E%6B%63%6C%6F%61%6B%65%72%2E%63%6F%6D%2F%6C%69%6E%6B%31%22%20%66%72%61%6D%65%62%6F%72%64%65%72%3D%22%30%22%20%6D%61%72%67%69%6E%68%65%69%67%68%74%3D%22%30%22%20%6D%61%72%67%69%6E%77%69%64%74%68%3D%22%30%22%20%77%69%64%74%68%3D%22%31%30%30%25%22%20%68%65%69%67%68%74%3D%22%31%30%30%25%22%20%73%63%72%6F%6C%6C%69%6E%67%3D%22%61%75%74%6F%22%3E%3C%2F%69%66%72%61%6D%65%3E'
    


    Again, remember to only grab the ' ' and all code in between.



    10) You want to paste the code from step 9, into the template from step 4, where it says 'your html goes in here'



    11) Now, you should have the final document... With regular html code replaced with javascript... You can replace 'Put Your Title Here' with anything you want... Now... Save this index.txt file as an index.html file.



    Upload this new index.html file to Singlespeoplez.com.



    12) Now, when someone goes Singlespeoplez.com, they will see the javascript below, and wont be able to find: "linkcloaker.com/link1" :




    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="EN">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Hello World</title>
    <style type="text/css">
    </style>
    </head>
    <body>
    </body>
    </html>
    <script type="text/javascript">
    document.getElementsByTagName("style")[0].innerHTML = unescape('%68%74%6D%6C%20%7B%6F%76%65%72%66%6C%6F%77%3A%20%61%75%74%6F%3B%7D%0A%68%74%6D%6C%2C%20%62%6F%64%79%2C%20%64%69%76%2C%20%69%66%72%61%6D%65%20%7B%6D%61%72%67%69%6E%3A%20%30%70%78%3B%20%70%61%64%64%69%6E%67%3A%20%30%70%78%3B%20%68%65%69%67%68%74%3A%20%31%30%30%25%3B%20%62%6F%72%64%65%72%3A%20%6E%6F%6E%65%3B%7D%0A%69%66%72%61%6D%65%20%7B%64%69%73%70%6C%61%79%3A%20%62%6C%6F%63%6B%3B%20%77%69%64%74%68%3A%20%31%30%30%25%3B%20%62%6F%72%64%65%72%3A%20%6E%6F%6E%65%3B%20%6F%76%65%72%66%6C%6F%77%2D%79%3A%20%61%75%74%6F%3B%20%6F%76%65%72%66%6C%6F%77%2D%78%3A%20%68%69%64%64%65%6E%3B%7D');
    document.getElementsByTagName("body")[0].innerHTML = unescape('%3C%69%66%72%61%6D%65%20%69%64%3D%22%74%72%65%65%22%20%6E%61%6D%65%3D%22%74%72%65%65%22%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%6C%69%6E%6B%63%6C%6F%61%6B%65%72%2E%63%6F%6D%2F%6C%69%6E%6B%31%22%20%66%72%61%6D%65%62%6F%72%64%65%72%3D%22%30%22%20%6D%61%72%67%69%6E%68%65%69%67%68%74%3D%22%30%22%20%6D%61%72%67%69%6E%77%69%64%74%68%3D%22%30%22%20%77%69%64%74%68%3D%22%31%30%30%25%22%20%68%65%69%67%68%74%3D%22%31%30%30%25%22%20%73%63%72%6F%6C%6C%69%6E%67%3D%22%61%75%74%6F%22%3E%3C%2F%69%66%72%61%6D%65%3E');
    </script>
    



    Now your affiliate link / ID are hidden to the best of your ability.


    Keep in mind, any web programmer who knows javascript can come and unscramble this code and get to your affiliate link. So, another trick you could use (if you wanted), would be to make a few strings of iframed pages:


    Have Singlespeoplez.com >> roadblock1java.com >> roadblock2java.com >> linkcloaker.com/link1



    This way, instead of just unscrambling Singlespeoplez.com.. They have to unscramble roadblock1 an roadblock2 also, before finally getting to linkcloaker.com/link1. They may give up at roadblocks 1 or 2... as they may think your loop goes on forever.




    All that said, at the end of the day, your http traffic can still be easily tracked down by someone by using a program. So, while theirs no way to hide it 1000%, this is the best practice. The roadblock pages are just in case the person trying to get your affiliate link may not know how to sniff your traffic (which is probably unlikely if they knew how to unscramble the first page, but it doesnt hurt to use for the ultra parenoid).



    I hear something similar to this can also be accomplished with Samuri stealth cloaker and other tools, in a possibly simpler fashion. But I decided to post this tuturial because I wasn't able to get my hands on stealth cloaker, and I'm sure this will assist someone out there.



    P.S. To hide referer, you could simply add your http://referer.us/? to the beginning of your links (or whatever referer hiding script you use).. Either in the iframe itself, or in Pretty Link when you create your cloaked links. You can test if your referer is being shown using whatismyreferer.com. Test using these 2 as your iframed link:


    http://whatismyreferer.com (referer should be shown as Singlespeoplez.com)
    http://referer.us/?http://whatismyreferer.com (referer should say 'no referer / hidden)



    I've attached all codes and this full document in a zip file, if it'd help you to get the code or better understand the steps. Virustotal scan below.

    Code:
    https://www.virustotal.com/file/6a68b6164417f805262cf3364aa5780ebbf735b5a646458e77c1a5d43974bbd9/analysis/1338396861/


    File name: hide affiliate link - timmy lang tutorial.zip
    Detection ratio: 0 / 42
    Analysis date: 2012-05-30 16:54:21 UTC ( 2 minutes ago )

    Hope this helps
     

    Attached Files:

    • Thanks Thanks x 6
    Last edited: May 30, 2012
  2. dr.Hus

    dr.Hus Regular Member

    Joined:
    Oct 24, 2011
    Messages:
    265
    Likes Received:
    140
    Occupation:
    web design
    Location:
    www
    Thanks for time and effort on this guide :) FYI as i type this im laready printing whole thread
    +rep given