Dax

Wordpress Frame Buster

May 24th, 2006 · No Comments

cowboy-kid.jpgI set up a frame buster on this site (just for fun) only to find that I could no longer edit my posts!

The Wordpress built-in auto-preview on the edit post page kept redirecting me back to the main site — hoisting me on my own pitard so to speak.

If you want a frame buster on your Wordpress 2.X site and are still interested in editing your articles, use the following code:

<script>
if (parent.frames.length > 0 && document.referrer.indexOf("post.php?action=edit") == -1)
top.location.replace(document.location);
</script>

Giggidy Goo.

Tags: Work The Jerk

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment