FreeMoby

My miniature doors and other stuff.

Archive for March, 2005

Wordpress Plugin: Frame Buster

Posted by Moby on Thursday, March 31st, 2005 at 7:09 pm in WordPress Plugins | 8 Comments

I’ve written my first Wordpress plugin. It’s called Frame Buster. This technique is also called a frame breaker or frame busting. It places some JavaScript in the heading of all pages that will prevent the page from appearing in someone else’s frame. This happened to one of my sites a couple of years ago and it was done to steal the site’s content. I did not like it. It should be noted that it will only work if the client browser has JavaScript enabled.

Version History:

  • 0.20 Compatible with WP 2.0. It won’t bust out of the post preview frame. (2005-12-21)
  • 0.10 Initial version

This is the code that it uses:

<script type="text/JavaScript"><!--
if (parent.frames.length > 0) top.location.replace(document.location); //–->

Small Trap Doors

Posted by Moby on Thursday, March 10th, 2005 at 9:04 pm in Miniature Doors I Want | Comment

Here’s a cool set of small trap doors.