Archive for April 7th, 2009
Undo-DiggBar and others…
Posted by Terry Apodaca in Code, JavaScript, Web Development on April 7, 2009
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!
