Anti iFrame Breaker Script - Anyone?

mystery

Regular Member
Joined
Apr 10, 2007
Messages
335
Reaction score
26
Hey,

does anyone know of a good anti-iframe breaker script?
 
Yes, I know.

Ok, let me rephrase the question...

may someone NAME a good anti-iframe breaker script, so that we know where and how to get it?
 
I am looking for this from so much time... but nothing found yet, please if you have news let me know
 
PHP:
var prevent_bust = 0;

 // Event handler to catch execution of the busting script.
 window.onbeforeunload = function() { prevent_bust++ };

 // Continuously monitor whether busting script has fired.
 setInterval(function() {
   if (prevent_bust > 0) {  // Yes: it has fired. 
     prevent_bust -= 2;     // Avoid further action.
     // Get a 'No Content' status which keeps us on the same page.
     window.top.location = 'http://server-which-responds-with-204.example.com';
   }
 }, 1);
 
PHP:
var prevent_bust = 0;

 // Event handler to catch execution of the busting script.
 window.onbeforeunload = function() { prevent_bust++ };

 // Continuously monitor whether busting script has fired.
 setInterval(function() {
   if (prevent_bust > 0) {  // Yes: it has fired. 
     prevent_bust -= 2;     // Avoid further action.
     // Get a 'No Content' status which keeps us on the same page.
     window.top.location = 'http://server-which-responds-with-204.example.com';
   }
 }, 1);


Thanks man. Gonna try this one out...

I came across something similar, but I think I didn't full get the "http://server-which-responds-with-204.example.com" part.

I created an empty page that only has this code and used its url:

HTTP/1.1 204 No Content
Content-Type: text/plain

Any inputs?
 
You're supposed to replace http://server-which-responds-with-204.example.com with an actual server which responds with 204 no content.

BTW the advertisers/CPA networks can easily detect if you are iframing offers.

Apologies but I'm a noob when it comes to this... may you show me how to do that? the actual server which responds with 204 no content?

The network I'm targeting doesn't care a lot. I know that. So no worries.
 
Back
Top