Javascriptle

<script language='JavaScript' type='text/javascript'>if (top.location != self.location) top.location = self.location;</script>


veya PHP:
<?php
header("X-FRAME-OPTIONS: DENY");
?>


Bir diğer yöntem ise web server'la, onu anlatmaya gerek yok.