io uso una cosa tipo
codice:
<script type="text/javascript">
	if (top.location != self.location) {
	  top.location = self.location
	}
</script>