Heres A Working Anti-Iframe Breaker

R G B

Newbie
Oct 28, 2008
17
2
I posted this as an answer to another thread and I kept seeing people post about having problems with iframe breakers so I'm just making this topic about it. I was looking for an anti-iframe breaker and found this solution on a site (NOT CODED BY ME).

Site was:
Code:
http://www.steadyhealth.com/Web_Hosting_Anti_Frame_Breaker_solution_t53346.html

Put this function between the head tags.
Code:
<script>
function StopLoading()
{
if (!document.all)
{
window.stop();
}
else
{
window.document.execCommand('Stop');
}
}
</script>

Then when you want to make an iframe include the function in it.
Code:
<iframe onload="StopLoading()" src="http://www.site.com">

Tell me if you have any problems with it, I tested it and it works for me on shareapic. Hopefully it works for all/most other sites.
 
I'll pay up to $2k for really good working Anti Iframe Breaker script in IE and FireFox.
 
Please correct me if I'm wrong but my understand is that with modern day browsers this is impossible?

Javascript security has been carefully look at, onLoad="" will work only if it's your website that's being loaded (same domain) otherwise if you're showing a third party website this will not trigger any events.

This is the same for quite a few other functions.
 
Please correct me if I'm wrong but my understand is that with modern day browsers this is impossible?

Javascript security has been carefully look at, onLoad="" will work only if it's your website that's being loaded (same domain) otherwise if you're showing a third party website this will not trigger any events.

This is the same for quite a few other functions.

pretty much right on... if you ever find an anti-iframe breaker that works then it's a temporary exploit that WILL be fixed in the next iteration of that browser..
 
I have created an anti iframe breaker for some websites.

Twitter doesn't work very well on it, but I've tested it with own site with an iframe breaker installed.
 
make a php crawl a page and filter iframe breaker code is not a good way, what I want to do is make an anti-iframe-breaker in javascript from the window.top not a php script to crawl that page.
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock