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

Like CodeBreaker, but cooler ;)

Discussion in 'Black Hat SEO Tools' started by howdoyou, Nov 16, 2009.

  1. howdoyou

    howdoyou Regular Member

    Joined:
    Nov 17, 2008
    Messages:
    284
    Likes Received:
    57
    Occupation:
    Programming
    Location:
    Kentucky
    I wrote a script that works like Black Hat Code Breaker, but not useing a js loading with links, it shows an Iframe, A good iframe code to use would be one generated by CakeSlice and modified a bit.

    I used some code threw out the site, so figured i would share it with all of you.

    The user goes to the webpage, its blocked by a "Enter your email address here" box, they enter there email address, you make money threw CPA, they can then view the website content.

    Some things can be added to make it better, like right click block, scroll block etc.

    Example: http://trueblackhat.com/a.htm
    click a link to make the iframe go away...


    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <meta http-equiv="Content-Script-Type" content="text/javascript">
    
    
    <script type="text/javascript">
    var stat;
    var delay=0;//delay in milliseconds
    function show(){
    var oIfr = document.getElementById('ifr');
    oIfr.style.display=(oIfr.style.display=='block')?'none':'block';
    }
    function hide(){
    stat = setTimeout('show()',delay)
    }
    onload=function(){
    var dIfr = document.getElementById('ifr').contentWindow.document.documentElement;
    dIfr.onmouseover = function(){parent.clearTimeout(parent.stat)}
    dIfr.onmouseout = function(){parent.hide()}
    }
    
    var k=1;
    function frame()
    {
    if(k>=1)
    hide();
    k=k+1;
    }
    
    </script>
    </head>
    <body>
    
    <br>
    
    <br>
    <br>
    <div style="position: absolute; left: 200px; top: 0px; height: 1000px; width: 1000px; padding: 1em;">
    <iframe onload="frame() " id="ifr" src="http://google.com" frameborder="0" scrolling="no" width="%50" height="%50" 
    
    name="noname"></iframe>
    </div> 
    Content Here
    </body>
    </html> 
    
     
    • Thanks Thanks x 2
    Last edited: Nov 16, 2009
  2. kasher9

    kasher9 Jr. VIP Jr. VIP

    Joined:
    May 12, 2009
    Messages:
    527
    Likes Received:
    340
    good idea, but this is gonna get you scrubbed like crazy, maybe 1 out of the 1000 you send they'll let you keep?
     
  3. oldenstylehats

    oldenstylehats Elite Member Premium Member

    Joined:
    Apr 10, 2008
    Messages:
    1,893
    Likes Received:
    1,196
    This is a very neat idea, but kasher9 is right. Because the code is made to remove the iframe as soon as the mouse leaves the iframe, there is no chance that they'll fill out any 2nd page offers and you'll get either scrubbed or blocked from the offer very quickly with most affiliate companies.
     
  4. howdoyou

    howdoyou Regular Member

    Joined:
    Nov 17, 2008
    Messages:
    284
    Likes Received:
    57
    Occupation:
    Programming
    Location:
    Kentucky
    change
    Code:
    if(k>=1)
    hide();
    k=k+1;
    
    to:
    Code:
    if(k>=2)
    hide();
    k=k+1;
    
    for 2 page offers. 3 page offers, change it to 3. etc..etc.. ;)
     
  5. oldenstylehats

    oldenstylehats Elite Member Premium Member

    Joined:
    Apr 10, 2008
    Messages:
    1,893
    Likes Received:
    1,196
    Correct me if I'm wrong, but it looks like this code assumes that the user's mouse leaves and enters the iframe each time and that the next offer pages will be able to be filled out from within the iframe, which is rarely (if ever) the case.

    Regardless, it is a very neat idea to get around the fact that you can't track browser behavior "through" an iframe that is hosted on a different domain. It may very well have other applications.
     
  6. howdoyou

    howdoyou Regular Member

    Joined:
    Nov 17, 2008
    Messages:
    284
    Likes Received:
    57
    Occupation:
    Programming
    Location:
    Kentucky
    no, it has nothing to do with the mouse, i just forgot to take those codes out. it hides the iframe after onload() has been accsessed X amount of times.

    so if you click a link, it goes away.

    check the example:
    Example: http://trueblackhat.com/a.htm

    click on Images or something. After the next page loads, the iframe hides.
    if you want it to go away after page 3 for example, you change it as follows in my above post.

    i forgot to take the mouseover crap out, that was for debug testing.


    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <meta http-equiv="Content-Script-Type" content="text/javascript">
    
    
    <script type="text/javascript">
    var stat;
    var delay=0;//delay in milliseconds
    function show(){
    var oIfr = document.getElementById('ifr');
    oIfr.style.display=(oIfr.style.display=='block')?'none':'block';
    }
    function hide(){
    stat = setTimeout('show()',delay)
    }
    onload=function(){
    var dIfr = document.getElementById('ifr').contentWindow.document.documentElement;
    }
    
    var k=1;
    function frame()
    {
    if(k>=1)
    hide();
    k=k+1;
    }
    
    </script>
    </head>
    <body>
    
    <br>
    
    <br>
    <br>
    <div style="position: absolute; left: 200px; top: 0px; height: 1000px; width: 1000px; padding: 1em;">
    <iframe onload="frame() " id="ifr" src="http://google.com" frameborder="0" scrolling="no" width="%50" height="%50" 
    
    name="noname"></iframe>
    </div> 
    Content Here
    </body>
    </html>


    <iframe onload="frame()

    ...

    function frame()
    {
    if(k>=1)
    hide();
    k=k+1;
    }

    by changing k>=1 to 2 or 3, thats how many page loads before the frame hides. unlocking the content.
     
    • Thanks Thanks x 2
    Last edited: Nov 16, 2009