Re: Stoping Frame Breakers

From: Date: Fri, 20 Jul 2001 14:26:38 +0000
Subject: Re: Stoping Frame Breakers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58905@lists.php.net to get a copy of this message
I would actually suggest JavaScript, rather than PHP here. Try putting something like <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> if (parent.location != "http://www.domain.com/frames.php") window.location = "http://www.domain.com/frames.php"; </SCRIPT> In the <Head> of your framed pages (not you frameset page) Note: If your Frameset page is a default page (You can get to it using either domain.com/frames.php or domain.com/) you need to change the script to <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> if (parent.location != "http://www.domain.com/frames.php" && parent.location != http://www.domain.com/") window.location = "http://www.domain.com/"; </SCRIPT> Let me know if that helps! Sheridan ----- Original Message ----- From: ReDucTor <sjdtmv@tpg.com.au> To: <php-general@lists.php.net> Sent: Thursday, July 19, 2001 10:21 PM Subject: [PHP] Stoping Frame Breakers hey, Does any one know how to stop people breaking frames?!? - James "ReDucTor" Mitchell

« previous php.general (#58905) next »