21 lines
349 B
ApacheConf
21 lines
349 B
ApacheConf
# Disable Directory Listing
|
|
Options -Indexes
|
|
|
|
# Protect sensitive files
|
|
<FilesMatch "^\.">
|
|
Order allow,deny
|
|
Deny from all
|
|
</FilesMatch>
|
|
|
|
# Protect config files
|
|
<FilesMatch "(db|config)\.php">
|
|
Order allow,deny
|
|
Deny from all
|
|
</FilesMatch>
|
|
|
|
# Protect SQL files
|
|
<FilesMatch "\.sql$">
|
|
Order allow,deny
|
|
Deny from all
|
|
</FilesMatch>
|