Snippet Name: Prevent framing a page
Description: Stops people from "framing" your pages and presenting them as their own.
Comment: (none)
Language: JAVASCRIPT
Highlight Mode: JAVASCRIPT
Last Modified: February 27th, 2009
|
<script type="text/javascript">
FUNCTION breakout(){
IF (top.location != location) {
top.location.href = document.location.href ;
}
}
</script>
<body onload="breakout()"> |