Frame Buster Buster ... buster code needed Frame Buster Buster ... buster code needed javascript javascript

Frame Buster Buster ... buster code needed


I'm not sure if this is viable or not - but if you can't break the frame, why not just display a warning. For example, If your page isn't the "top page" create a setInterval method that tries to break the frame. If after 3 or 4 tries your page still isn't the top page - create a div element that covers the whole page (modal box) with a message and a link like...

You are viewing this page in a unauthorized frame window - (Blah blah... potential security issue)

click this link to fix this problem

Not the best, but I don't see any way they could script their way out of that.


We have used the following approach in one of our websites from http://seclab.stanford.edu/websec/framebusting/framebust.pdf

<style> body {  display : none   }</style><script>if(self == top) {document.getElementsByTagName("body")[0].style.display = 'block';}else{top.location = self.location;}</script>