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

[POC] Java based frame delivery - Source

Discussion in 'Making Money' started by onegg, Nov 25, 2009.

  1. onegg

    onegg Junior Member

    Joined:
    Dec 12, 2007
    Messages:
    147
    Likes Received:
    176
    Location:
    In your mind
    Its time to release some of my code snippets that will inspire any well trained mind that view this thread.

    Just think for a minute how and where you can put this code.
    This few lines of code could do wonders: increase impressions, views, PPC, CPA (with a little twist that maybe I could post later), and other things that I am not allowed to talk in this area of the forum.


    This is a Proof of Concept Java based-DOM iframe delivery:

    Code:
    <script type="text/javascript">
    window.onload = function()
    {
    	var hidframe = document.createElement('iframe');
    	hidframe.setAttribute('src','http://www.google.com');
    	hidframe.style.width = "0px"; 
    	hidframe.style.height = "0px";
    	hidframe.style.visibility = "hidden";
    	document.getElementById('hifbody').appendChild(hidframe);
    }
    </script>
    </head>
    
    <body>
    <div id="hifbody"></div>
    </body>
    </html>
    
    There are a lot of brilliant minds in this forum, so just think about mixing this with PHP referer checker, or with faking the referer (POST method), or with a flash swf file, and maybe for CS.....

    I am sure that you can see the differences between a normal iframe, and a java based-DOM delivered iframe.

    Code:
    http://en.wikipedia.org/wiki/Document_Object_Model
    
     
    • Thanks Thanks x 3
  2. lkphil

    lkphil Newbie

    Joined:
    Jan 31, 2009
    Messages:
    4
    Likes Received:
    0
    GREAT post thank you.:biggthump
    I love java.:D
     
  3. lkphil

    lkphil Newbie

    Joined:
    Jan 31, 2009
    Messages:
    4
    Likes Received:
    0
    ok tested and works like a charm.

    @onegg I've sent you a PM with one important question please reply
     
  4. onegg

    onegg Junior Member

    Joined:
    Dec 12, 2007
    Messages:
    147
    Likes Received:
    176
    Location:
    In your mind

    Check your PM inbox.
     
  5. Dev-Gank

    Dev-Gank Regular Member

    Joined:
    Jul 17, 2008
    Messages:
    216
    Likes Received:
    48
    Onegg - I played with this code and it is working for me, but can you elaborate on this statement?

    I understand web technologies for the most part, but these differences escape me.

    "I am sure that you can see the differences between a normal iframe, and a java based-DOM delivered iframe."
     
  6. blackmagicmaster

    blackmagicmaster BANNED BANNED

    Joined:
    Dec 11, 2008
    Messages:
    587
    Likes Received:
    932
    very cool i really like it putting in my php coding :D thx a lot for this !
     
  7. onegg

    onegg Junior Member

    Joined:
    Dec 12, 2007
    Messages:
    147
    Likes Received:
    176
    Location:
    In your mind
    PM me for details.
     
  8. SpazzyMcSpazz

    SpazzyMcSpazz Regular Member

    Joined:
    Apr 20, 2009
    Messages:
    261
    Likes Received:
    76
    I can't see the difference either. Tell me one thing that's different in this javascript created iframe than in a "normal" one.

    btw: java!=javascript, you just lost some credibility :)
     
  9. sikx

    sikx Registered Member

    Joined:
    Jan 4, 2009
    Messages:
    65
    Likes Received:
    166
    Location:
    Germany
    Home Page:
    No there is not a difference between a JavaScript created iframe and a HTML based iframe other than the HTML iframe being visible to obsolete scrapers. You can access iframes that are created with HTML just as much with DOM as one that you create with Javascript, same restrictions apply. Also, Java is about as much related to JavaScript as a Car is to Carpet.
     
  10. meannn

    meannn Supreme Member

    Joined:
    Apr 22, 2009
    Messages:
    1,461
    Likes Received:
    1,896
    Occupation:
    Unemployed Winner
    Location:
    TR
    What is the difference between simple html iframe and this ?
    If you say its anti anti-frame, tried and din't worked. This code snippet plays the same role with simple html iframe.
     
  11. freelapse

    freelapse Junior Member

    Joined:
    Dec 19, 2008
    Messages:
    107
    Likes Received:
    19
    Location:
    Seattle, WA, USA
    Creating iframes in Javascript (not Java...) will have no impact on any of the things you mentioned.

    If you want to create a hidden iframe dynamically and use it in conjunction with a PHP script, it's much simpler like this:

    Code:
    <?php
    
    //you're inside your page's body...
    
    $iframe = //go wild here - anything that you set $iframe to will open in a hidden...
    ?>
    
    <iframe src="<?php echo $iframe; ?>" width="0" height="0" style="visibility:hidden;display:none;" />
    
    
    Problem solved.

    Or, use PHP to loop and echo out your iframe if you want to have multiple iframes easily...