Frame Buster Buster ... buster code needed
- by Jeff Atwood
Let's say you don't want other sites to "frame" your site in an <iframe>:
<iframe src="http://yourwebsite.com"></iframe>
So you insert anti-framing, frame busting JavaScript into all your pages:
/* break us out of any containing iframes */
if (top != self) { top.location.replace(self.location.href); }
Excellent! Now you…