restricting access to folders on server
In addition to Richard's suggestion, you can also place a
..htaccess file in each directory for which you don't want listing with
this:
Redirect Permanent index.php http://www.yourdomain.com/index.php
That will automatically forward them to your homepage. Otherwise,
you can turn off directory listing completely by ********ly stating it
in your .htaccess file in your web root. It will work recursively for
all directories in the web root.
<Limit GET POST PUT DELETE>
Order Deny,Allow
Deny From All Options -Indexes
</Limit>
In the future, though, please only post PHP-related questions to
this list. Apache has its own user lists where you can ask these questions. --
</Daniel P. Brown>
Forensic Services, Senior Unix Engineer
1+ (570-) 362-0283
|