Opengist Logo Gist@portalZINE

Explore

  • All gists
  • Topics
  • Users
Data Privacy
Give feedback on the new UI Powered by Opengist ⋅ 33ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

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

all:systemctl search all fields

Login
p

protection

Recently created Least recently created Recently updated Least recently updated
portalzine

portalzine / Protect access to log and sql files

Last active 3 months ago debug htaccess protection
0 0 1
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>