Re: Prevent scripts
| From: | Brian Clark | Date: | Thu, 14 Dec 2000 09:31:53 +0000 |
| Subject: | Re: Prevent scripts | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30276@lists.php.net to get a copy of this message | ||
Hello Jan,
(JvS == "Jan van Schaijk") beethoven@hetnet.nl writes:
JvS> I do I prevent my scripts from being parsed in another page (e.g.
JvS> framed)? The scripts only may executed when the visitor is on my
JvS> domain.
You may have to use JavaScript to break out of their frame.
Something along the lines of this:
<script language="JavaScript" type="text/javascript">
<!--
if(parent.frames.length > 0) {
parent.location = self.document.location;
}
// -->
</script>
-Brian
--
An adequate bootstrap is a contradiction in terms.