Apache Cheatsheet

Apache Cheatsheet

Prevent access to all files starting with . (dot). This will help us protect files like .htaccess, .env and folders like .git, .svn, .trash, etc.

<FilesMatch "^\.">
    Order allow,deny
    Deny from all
</FilesMatch>

Original:  Updated: