Security

Configure security rules and access control

Directory Access

Options -Indexes
DirectoryIndex index.php index.html

IP Blocking

Order Allow,Deny
Deny from 192.168.1.1
Allow from all

Password Protection

AuthType Basic
AuthName "Restricted Area"
AuthUserFile /path/to/.htpasswd
Require valid-user

Prevent Hotlinking

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

Generated .htaccess

Loading...