Re: File Access...
| From: | Marek Kilimajer | Date: | Thu, 19 Sep 2002 16:26:07 +0000 |
| Subject: | Re: File Access... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116903@lists.php.net to get a copy of this message | ||
put this to the begining of your some.php
if (eregi("some.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
Brian McGarvie wrote:
How could you redirect somone from directly accessing a file... Meaning... if an engine spiders www.domain.com/some.php How could you make some.php redirect to index.php However... the site is framed, and the menu uses content.php to display the selected content. Any ideas?