Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

LH Framebreaker

This framebreaker will prevent your website being framed by another web site.

By installing this plugin you can prevent your website being framed by some other web site. This plugin is very simple but also standards compliant.

I wrote this plugin as other frame breaking solutions often have the following problems

  • They print their javascript inline, this break unobtrusive javascript and can be a problem in apps. This plugin adds an external file unobtrusively.
  • The try to break out of the wordpress customizer frame (rendering it useless). This plugins tests for that context and will not enqueue in that circumstance.
  • They enqueue the script on the backend, where it is not required. This plugins tests for that context and will not enqueue in that circumstance.
  • They enqueue it in the head of the html, thus slowing down page render on all pages. This plugin enqueues the file in the footer.
  • They break out of all frames (including ones from your own domain). This plugin tests if the plugin is same domain and if it is won't break out.
Author Peter Shaw
Contributors shawfactor
Tags disable iframe, frame, framebreaker, google image, iframe, javascript, no frames, unobtrusive, unobtrusive javavscript
  1. Upload lh-framebreaker folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. That is it

1.00 November 03, 2016
Initial release.

1.01 November 06, 2016
Additional documentation.

Can this plugin work without javascript?

No, it requires javascript to run

How is this better than the other no frames plugins?

It detects when your site is in customizer mode (which uses frames) so it won't break that functionality, it uses unobtrusive javascript, and it loads the required script in the footer (and much more).

Version 1.01

Requires WordPress version: 3.0 or higher

Compatible up to: 4.6.3

Last Updated 08 Nov 2016

Date Added: 08 Nov 2016

Plugin Homepage


0 stars
0 ratings


Not Enough Data

Works: 0
Broken: 0