Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Taken from http://www.initializr.com/
- # Block access to files that can expose sensitive information.
- #
- # By default, block access to backup and source files that may be
- # left by some text editors and can pose a security risk when anyone
- # has access to them.
- #
- # http://feross.org/cmsploit/
- #
- # (!) Update the `<FilesMatch>` regular expression from below to
- # include any files that might end up on your production server and
- # can expose sensitive information about your website. These files may
- # include: configuration files, files that contain metadata about the
- # project (e.g.: project dependencies), build scripts, etc..
- <FilesMatch "(^#.*#|\.(bak|conf|dist|fla|in[ci]|log|psd|sh|sql|sw[op])|~)$">
- # Apache < 2.3
- <IfModule !mod_authz_core.c>
- Order allow,deny
- Deny from all
- Satisfy All
- </IfModule>
- # Apache ≥ 2.3
- <IfModule mod_authz_core.c>
- Require all denied
- </IfModule>
- </FilesMatch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement