User Tools

Site Tools


security

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
security [2019/11/11 15:19] – created k2patelsecurity [2020/08/10 02:35] (current) – external edit 127.0.0.1
Line 12: Line 12:
         RewriteRule .*$ - [F,L]         RewriteRule .*$ - [F,L]
      </Directory>      </Directory>
 +</code>
 +
 +==== cgi-bin precaution ====
 +Make sure none of the configuration files get printed as pain text.
 +<code bash>
 +  <FilesMatch ".+(\.pm|\.conf|\.htaccess|\.gitignore|config)$">
 +    Require all denied
 +  </FilesMatch>
 +</code>
 +
 +==== Anything start with .(dot) ====
 +Disable all files and folder start with .dot
 +<code bash>
 +  <DirectoryMatch "^\.|\/\.">
 +    Require all denied
 +  </DirectoryMatch>
 +
 +  <LocationMatch "\/\.">
 +    Require all denied
 +  </LocationMatch>
 </code> </code>
security.1573485542.txt.gz · Last modified: 2020/08/10 02:29 (external edit)