<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 21 Oct 2009 15:50:36 +0100
From   : mike@... (Michael Howard)
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.
>
>   
Yep, a simple '-Indexes' added to the Options line in each Directory 
stanza does it for Apache.

-- 
Michael Howard        mike at dewberryfields dot co dot uk
Lancashire
England
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>