Re: avoid server folder reading
| From: | Jochem Maas | Date: | Sat, 19 Jan 2008 20:08:37 +0000 |
| Subject: | Re: avoid server folder reading | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267673@lists.php.net to get a copy of this message | ||
Nathan Nobbe schreef:
On Jan 19, 2008 1:46 PM, Alain Roger <raf.news@gmail.com> wrote:or alternatively use that .htaccess to deny apache index listings. that said if your site is well setup everything in the document root should be neatly accessible and it shouldn't really matter how someone accesses it. all [php] files you include can live happily outside of the webroot,in cases where this is not feasable (e.g. hosts that use the homedir as the webroot) you can use a simple .htaccess containing 'Deny From All' in a directory that stores all your include files.Sorry if my post was not clear... in fact i would like to hide the contant of my webfolders and avoid user to see the index of "folders"... for sure users should be able to browse the website, but not to see its structure by browsing the index :-)then define an index.php file for each directory that routes the users appropriately.
-nathan