[POC] Java based frame delivery - Source

onegg

Junior Member
Joined
Dec 12, 2007
Messages
152
Reaction score
178
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
 
ok tested and works like a charm.

@onegg I've sent you a PM with one important question please reply
 
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."
 
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."

PM me for details.
 
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 :)
 
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.
 
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.
 
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...
 
Back
Top