🗂️ .htaccess Security Snippet Generator
Check the protections you want and copy the generated Apache
.htaccess
snippet.
Disable directory listing
Block access to dotfiles (.env, .git, .htaccess itself)
Hide server signature
Add basic security headers (X-Content-Type-Options, X-Frame-Options)
Force HTTPS redirect
Block image hotlinking