I have been looking for a simple way to have a frameset (actually a framebreaker) which only allows a given host or IP to be able to use the frameset.
I have tried this method.
but I am getting an error on Internet explorer.
Please help
I have tried this method.
Code:
<script language="javascript" type="text/javascript">
<!--
if (top.frames.length > 0 )
if (top.location.host != top.location.hostname)
top.location=self.document.location
//-->
</script>
Please help