As you learn about blogging and managing websites you will soon discover that there are a lot of sites out there that show your site within what is called a frame.

Some news sites do that. If you see a tool bar at the top of the page over your site, it is probably inside a frame.

Sometimes this could just be stumbleupon or digg or a link shortening service. Sometimes someone could be in a sense “stealing” your content and getting their own page rankings up and showing their own ads! All this they do while using your content!

I found a plugin that claimed to fix the problem: http://wordpress.org/extend/plugins/no-frames/

I found that the plugin worked with Internet Explorer, but did not work with Firefox.

Then I tried adding the following code just after the <body> tag on the themes header file and it worked just fine!

<body onLoad="if (self != top) top.location = self.location">

I got this tip here: http://www.web-source.net/javascript_framed.htm

There’s a ton of ads on that page but I just wanted to give credit to who helped me!

Hope that helps you as well!

:-)

Tags: , , ,

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>