As with any business, it takes work to operate a successful website and producing frequent, quality content can be a time consuming task, especially if you care what you write about. About 2 months ago on another site of mine, I started to find an excessive amount of requests coming from one particular IP so I dug in a bit deeper to get to the bottom of it. The requests led me to find a site that was taking website content and framing it (putting it inside an iframe) on their page, so basically it was my site within a page on their site, with their address in the url and a header at the top with their ads on it.
While this is not a new practice, it was the first time it had happened to me. At first I had mixed feelings on it as it was a source of exposure for me, it got my content to a new group of readers but there was one major downside to this practice that makes it totally unacceptable to me. When search engines traverse the web looking for new content, they find it and index it, during this process they sometimes find duplicate content and will penalize a site for having copied/stolen content on its pages because plagiarism is a bad thing and nobody likes it, well guess what? When a site uses an iframe to post your content with their url in the address bar that creates duplicate content on the web and often times, the site doing the copying may have a higher pagerank or more “street cred” with the search engines therefor getting your site, even though it was your content originally, flagged as the one doing the stealing and in the end getting you penalized and your rankings damaged.
There is a simple fix that will prevent a good portion of this, its basically a small snippet of code that will tell your site to check to make sure its not inside an iframe, and if it is to break free from the iframe and return itself to full page view. It works on every site I have used it on, but of course your mileage may vary so please test it for conflicts etc on your applications as with any code changes.
To add this code to your site, simply paste the following code somewhere after the <head> tag and before the </head> tag of your site, in WordPress this will be in your header.php file
if (window!= top) top.location.href = location.href;
I hope you find this useful and please feel free to share your comments on the topic :-)