Advertisement
Guest User

Initializr htaccess

a guest
Mar 14th, 2018
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. # Taken from http://www.initializr.com/
  2. # Block access to files that can expose sensitive information.
  3. #
  4. # By default, block access to backup and source files that may be
  5. # left by some text editors and can pose a security risk when anyone
  6. # has access to them.
  7. #
  8. # http://feross.org/cmsploit/
  9. #
  10. # (!) Update the `<FilesMatch>` regular expression from below to
  11. # include any files that might end up on your production server and
  12. # can expose sensitive information about your website. These files may
  13. # include: configuration files, files that contain metadata about the
  14. # project (e.g.: project dependencies), build scripts, etc..
  15.  
  16. <FilesMatch "(^#.*#|\.(bak|conf|dist|fla|in[ci]|log|psd|sh|sql|sw[op])|~)$">
  17.  
  18. # Apache < 2.3
  19. <IfModule !mod_authz_core.c>
  20. Order allow,deny
  21. Deny from all
  22. Satisfy All
  23. </IfModule>
  24.  
  25. # Apache ≥ 2.3
  26. <IfModule mod_authz_core.c>
  27. Require all denied
  28. </IfModule>
  29.  
  30. </FilesMatch>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement