Undo-DiggBar and others…

Nathan Smith over at Sonspring just reminded me of a great script to keep your site out of iframes and other mechanisms some sites use to pawn your content off as their own.

<script type="text/javascript">
/* <![CDATA[ */
if (window.location !== window.top.location) {
window.top.location = window.location;
}
/* ]]> */
</script>

Throw this inside your head tags and you should be pretty secure from having your content reused as someone else’s…etc. Thanks Nathan, for the reminder!

This entry was posted in Code, JavaScript, Web Development. Bookmark the permalink.

Leave a Reply

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

*

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