How To Stop Sites From Opening Your Blog In A Frame

OK this is another post that comes from a readers question.They said "I use Networked Blogs to auto share my posts on Facebook but whe...

OK this is another post that comes from a readers question.They said "I use Networked Blogs to auto share my posts on Facebook but when you click the link on Facebook it shows the page with a bar at the top and a different URL".

This is in fact called a frame and some websites display pages from other sites within a frame, Stumble Upon would be a good example as indeed is Networked Blogs.While I feel Stumble Upon has a reason for this many websites do it to keep people on their site, some even take credit for your content.

Example

In the first image you see how the blog usually looks :


Here we see the blog within the Networked Blogs frame.In the address bar you can see the URL is Networked Blogs (In Green) and a bar runs across the top of the page (In Red) :


We can fix this and add a line of script to your template that detects when your blog is being placed in a frame and overrides the frame.This tutorial is for Blogger Blogs but the code will work on any site.

Stop Your Blog Opening In A Frame
Click Here To View Full Post >>

Hot in Week

Popular

Archive

item