Skip to main content

Setup Basic Auth on httaccess with whitlisting specifc IP

Setup Basic Auth on httaccess with whitlisting specifc IP

 

AuthType Basic
AuthName "Name of Member’s Area"
AuthUserFile /home//private_html/.htpasswd
Require valid-user
Order deny,allow
Deny from all
Allow from 10.10.10.10
Allow from 20.20.20.20
Satisfy any
ErrorDocument 401 /error_pages/401.html
AddHandler server-parsed .ht

Tags