Last active 6 months ago

portalzine's Avatar portalzine revised this gist 6 months ago. Go to revision

1 file changed, 0 insertions, 0 deletions

debug_protect_htaccess.apache renamed to debug_protect_htaccess.sh

File renamed without changes

portalzine's Avatar portalzine revised this gist 6 months ago. Go to revision

1 file changed, 0 insertions, 0 deletions

debug_protect_htaccess.conf renamed to debug_protect_htaccess.apache

File renamed without changes

portalzine's Avatar portalzine revised this gist 6 months ago. Go to revision

1 file changed, 0 insertions, 0 deletions

debug_protect.htaccess renamed to debug_protect_htaccess.conf

File renamed without changes

portalzine's Avatar portalzine revised this gist 6 months ago. Go to revision

1 file changed, 0 insertions, 0 deletions

debug_protect_htaccess.sh renamed to debug_protect.htaccess

File renamed without changes

portalzine's Avatar portalzine revised this gist 6 months ago. Go to revision

1 file changed, 0 insertions, 0 deletions

debug_protect_htaccess.txt renamed to debug_protect_htaccess.sh

File renamed without changes

portalzine's Avatar portalzine revised this gist 6 months ago. Go to revision

1 file changed, 10 insertions

debug_protect_htaccess.txt(file created)

@@ -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>
Newer Older