File renamed without changes
portalzine / Protect access to log and sql files
Last active 3 months ago
portalzine
revised this gist 1 year ago
·
178b807
1 file changed
portalzine
revised this gist 1 year ago
·
eeedfc5
1 file changed
File renamed without changes
portalzine
revised this gist 1 year ago
·
18d42c3
1 file changed
File renamed without changes
portalzine
revised this gist 1 year ago
·
a4e11e5
1 file changed
File renamed without changes
portalzine
revised this gist 1 year ago
·
532f0d4
1 file changed
File renamed without changes
portalzine
revised this gist 1 year ago
·
bac38d3
1 file changed, 10 insertions
| @@ -0,0 +1,10 @@ | |||
| 1 | + | # protect access to log and sql files. | |
| 2 | + | <FilesMatch "\.(log|sql)(\.(t?gz|tar|gz|tar\.gz|7z|rar|bz2))?$"> | |
| 3 | + | <IfModule mod_authz_core.c> | |
| 4 | + | Require all denied | |
| 5 | + | </IfModule> | |
| 6 | + | <IfModule !mod_authz_core.c> | |
| 7 | + | Order deny,allow | |
| 8 | + | Deny from all | |
| 9 | + | </IfModule> | |
| 10 | + | </FilesMatch> | |