Y T Nuke  
Results 1 to 1 of 1
Here is a little test script I just wrote and should work to cloak links ...
  1. #1
    b4br 514h's Avatar
    b4br 514h is offline Newbies
    Join Date
    Dec 2011
    Location
    Planet Earth
    Posts
    35
    Reputation
    15
    Thanks
    19
    Thanked 9 Times in 8 Posts

    Post Client-side link cloaking script (newbies)

    Here is a little test script I just wrote and should work to cloak links client-side, i wanted to share with you guys, specially newbies

    This shows a normal link (internal link) to the user when hovering, but when he clicks it takes them to other link (internal or external, aff. link for example)

    Note: I haven't tested it very much, but should work in all major browsers
    Note also: you should also cloak server-side since google Will see this and f*** you

    Code:
    <html>
    <head><title>Cloak test</title>
    
    <script type="text/javascript">
    
    var CLOAKED_LINK = "your-evil-script.html"; //change this value to your link
    
    function cloakIt(event) {
       event.returnValue = false;
       if(event.preventDefault) event.preventDefault();
       window.location.href = CLOAKED_LINK;
       return false;
    }
    </script>
    
    </head>
    <body>
    
    <a href="./friendly.html" onclick="cloakIt(event)" >Soccer</a>
    
    </body>
    </html>

  2. The Following User Says Thank You to b4br 514h For This Useful Post:

    YoutubeSlanger (01-04-2012)

Similar Threads

  1. Server Side Cloaking & Redirecting
    By The Scarlet Pimp in forum Cloaking and Content Generators
    Replies: 0
    Last Post: 06-03-2008, 10:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75