Tag: framebusting

Frame Buster Buster … buster code needed

Let’s say you don’t want other sites to “frame” your site in an <iframe>: <iframe src=”http://example.org”></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 “bust” or break out of any containing iframe automatically. […]

Most current framebusting javascript?

I need to add a javascript-based framebuster for my web application that helps prevent clickjacking (or Cross Frame Scripting) attacks for legacy browsers that don’t support X-FRAME-OPTIONS. After searching the internet, I found that currently there seems to be two approaches, shown below. Being a complete newbie at javascript, I prefer approach 1 for its […]

Frame Busting buster not completely working for IE

I’ve been working on a Frame busting buster (what’s in a name, hehe), which kept my users on my page and open a new window with the target URL. I’m using a Lightbox script to display iframes, this is what I’m doing: 1) Added an event for all .lightbox clicks, f.e: $(‘.lightbox’).live(“click”, function(e) { e.preventDefault(); […]

Frame Buster Buster … buster code needed

Let’s say you don’t want other sites to “frame” your site in an <iframe>: <iframe src=”http://example.org”></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 “bust” or break out of any containing iframe automatically. […]