All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists matching topic htaccess

Recently created
Least recently created
Recently updated
Least recently updated
portalzine's Avatar

portalzine / Protect access to log and sql files

0 likes
0 forks
1 files
Last active 6 months ago
debug htaccess protection
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

Powered by Opengist ⋅ Load: 36ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文
⋅ Data Privacy