Protect Your WordPress Blog from Being Framed

We are influencers and brand affiliates.  This post contains affiliate links, most which go to Amazon and are Geo-Affiliate links to nearest Amazon store.

After reading about @ileane having her blog iframed by other blogs which can lead to not only your content being read and used on another site, but your Google banner ads displayed on another site and a violation of AdSense ToS which does not allow AdSense ads to be displayed via an iFrame.  This could risk in an account ban.

So I decided to test out the WP No Frames plugin after I saw it was mentioned by Ahmad from Freakify.com in one of her threads on her Facebook group.

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.

image

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.

-Justin Germino

We are influencers and brand affiliates.  This post contains affiliate links, most which go to Amazon and are Geo-Affiliate links to nearest Amazon store.