How Easy It Is to Iframe
To begin my test, all I did was go to my cyborgism.com blog and open up a new post.
I put in the following line into the HTML Source Code:
<iframe src=”https://www.dragonblogger.com” width=”100%” height=”800px”></iframe>
Then when I publish the article I can see that dragonblogger.com is displayed inside the post of a cyborgism.com article via iframe.
Preventing iFraming with WP No Frames
Installing WP No Frames on DragonBlogger.com, I then decided to see if it would prevent that iFrame post on cyborgism.com from working properly.
WP No Frames can’t actually prevent the iframe from occuring, but what it does do is force a reload of the page doing the iframe so that the framed page is the target source of the reload. What this means is that now when I hit http://www.cyborgism.com/testing-an-iframe/ instead of seeing dragonblogger.com being iframed inside of the WordPress blog post, I instead now hit the site, then it does an immediate redirect to display dragonblogger.com
The cool thing is even when hitting the homepage of cyborgism.com with the iframe post showing on the homepage, force redirects the user to dragonblogger.com the moment the iframe attempts to load.
This in my opinion is an exceptional method for discouraging any other site from iframing your WordPress blog, as the moment they do, they would be just redirecting the readers to your site anyway.
I tested WP No Frames on DragonBlogger.com and found no conflicts with any other plugins or issues with the site rendering, so I am leaving it on to protect my WordPress blog from being iFramed and recommend it to all other WordPress bloggers.
See WP No Frames in Action on What it Looks Like:
Get WP No Frames now from the WordPress plugin depot for free.