|
You could add the following to your .htaccess file in your document root.
# Set the default handler.
DirectoryIndex index.php
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# Protect files from prying eyes.
<FilesMatch "(\.inc|\.sh|.*sql|config\.php)$">
Order allow,deny
</FilesMatch>
ErrorDocument 403 /index.php
ErrorDocument 404 /index.php
You could put a .htaccess file in the directory that contains config.php that says "deny all". Provided that it is not in your document root directory.
The above only works for http traffic and not shell access or ftp
If they are accessing from someplace else - shell access or ftp, the server is not secure and you might want to get another shared hosting company.
Last edited by noobster; 03-01-2009 at 01:35 AM..
|