mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-08 11:34:04 -04:00
Improve .htaccess with some security rules (#120)
This commit is contained in:
1 parent
b27d3c04c9
commit
6ccfc8ba7d
1 file changed
+22
-1
@@ -8,4 +8,25 @@ RewriteEngine On
|
|||||||
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
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