<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Tue, 20 Oct 2009 20:04:54 +0100
From   : acorn@... (Andy Ford)
Subject: Web site trickery (ot)

me@... wrote:
> On 20 Oct 2009, at 17:48, Rob wrote:
>
>   
>> Maybe, if your server supports it:
>> create  file called index.php containing:
>> <?php
>> header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
>> ?>
>>     
>
> Forgive me if I'm being stupid, but why not just turn off Directory  
> Browsing on your server? Most web servers can even do it on a per- 
> folder basis. This is far more preferable than index tricks.
>
>   
I have done that in the past ;)

However, for the few I want to deny listing I just find it simpler to 
upload an index.htm file rather than rely on (I'd guess) .htaccess rules 
to keep the listing off. :)

Not my area really :)


Andy.
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>