/
Secure Admin URL

Secure Admin URL

Block Unwanted Visitors with .htaccess


Example .htaccess

order deny,allow
deny from all
allow from 10.231.
allow from 10.139.
allow from 1.11.22.
allow from 1.11.1.1
  • 10.231. - This is subnet 10.231.0.0/255.255.0.0
  • 1.11.22. - This is subnet 10.231.22.0/255.255.255.0
  • 1.11.1.1 - unique IP Address

Block Unwanted Visitors with .htaccess using password


Example .htaccess

AuthUserFile /path/to/htpasswd/file/.htpasswd
AuthGroupFile /dev/null
AuthName "Name of Area"
AuthType Basic
require valid-user
  • /path/to/htpasswd/file/ has to be a valid path to your .htpasswd file. Use a password encryption program to create your passwords. Paste the lines into your .htpasswd file and save the file. You will have one line for every username that requires access.
  • Change "Name of Area" to the name of the site section being protected.

Related content

Template 2019 update
Template 2019 update
Read with this
How to IP-limit admin-area access
How to IP-limit admin-area access
More like this
Templates: Integrating templates - tips and tricks
Templates: Integrating templates - tips and tricks
Read with this
Allowed IPs
Allowed IPs
More like this
Client IP Whitelist Management plugin
Client IP Whitelist Management plugin
More like this
Additional security steps
Additional security steps
More like this