How to protect your site from frame

I found some sites framed my Blog, and keep popping some bad windows.
I do a google, and found this script works to prevent from it.
Just copy the following code in to you pages. Now any site want to frame your page will automatically jump your site out.
<SCRIPT LANGUAGE=JAVASCRIPT><!–
if (top.location != self.location)top.location=self.location;
// –></SCRIPT>


<SCRIPT LANGUAGE=JAVASCRIPT><!--
 if (top.location != self.location)top.location=self.location;
 // --></SCRIPT>

David Yin

David is a blogger, geek, and web developer — founder of FreeInOutBoard.com. If you like his post, you can say thank you here

Leave a Reply

Your email address will not be published. Required fields are marked *