PDA

View Full Version : stop peope using i frames!


pukey
11-22-2002, 11:06 PM
is there a code i can use to stop people displaying my page in i frames???

is there away of checking IP addresses using javascripts!

unfortunatly where my page is hosted i cant use PHP, which is a shame.

Thanks,

joh6nn
11-23-2002, 02:29 AM
<head>
<script>
if ( top != self ) { top.location = "http://www.yourSite.com/"; }
</script>
</head>

pukey
11-24-2002, 04:08 PM
thats really great! thanks so much.

:thumbsup: :thumbsup: :thumbsup: