Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

Apache Authorization: Require password if IP not white-listed

I have a list of IP addresses for people who should be granted access to the website.

Everybody else should be required to enter a password.

My code does not work.

Order deny, allow 
Deny from all 
AuthName "Authorization Required" 
AuthUserFile "/home/html/.htpasswd" 
AuthType Basic 
Require valid-user 
Allow from 11.22.33 
Allow from 22.22.33.44 
Allow from 55.44.33.22 
Satisfy Any

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial