RewriteEngine on

RewriteRule "(^|/)\.(?!well-known\/)" 404 [L]
RewriteRule "^.htaccess" 404 [L]
RewriteRule "^.DS_Store" 404 [L]