Have a video game portal and you’re tired of folks iframing their own ads around your games? Want to break the google image iframe when it reaches your site? Easy, just copy and paste this code at the top of your file and it’ll break you out of any iframe. For large sites it’s best to put it in an external .js file and just use an include call at the top of each page:
<script type="text/javascript">
<!--
if (top.location!= self.location) {
top.location = self.location.href
}
//-->
</script>
Enjoy