不用禁止iframe,把这段代码加到文件中即可.
<script>
if( top.window.location.href != window.location.href )
{
top.window.location.href = window.location.href
}</script>
<script>
if( top.window.location.href != window.location.href )
{
top.window.location.href = window.location.href
}</script>
if (top.location != self.location)top.location=self.location;
// --></SCRIPT>
if (top!= self)top.location=self.location;
</script>