mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-27 02:38:01 -05:00
Improve .htaccess with some security rules (#120)
This commit is contained in:
23
.htaccess
23
.htaccess
@@ -8,4 +8,25 @@ RewriteEngine On
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php?/$1 [L]
|
||||
RewriteRule ^(.*)$ index.php?/$1 [L]
|
||||
|
||||
# disable directory browsing
|
||||
# For security reasons, Option all cannot be overridden.
|
||||
#Options All -Indexes
|
||||
Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes
|
||||
|
||||
# prevent folder listing
|
||||
IndexIgnore *
|
||||
|
||||
# secure htaccess file
|
||||
<Files .htaccess>
|
||||
order allow,deny
|
||||
deny from all
|
||||
</Files>
|
||||
|
||||
# prevent access to PHP error log
|
||||
<Files error_log>
|
||||
order allow,deny
|
||||
deny from all
|
||||
satisfy All
|
||||
</Files>
|
||||
Reference in New Issue
Block a user