Posted: Wed Feb 13, 2008 10:18 pm
Damn you Cordel, got here before I could!
Posted results of my 'test' and it was a no go. However, I'm gonna try setting auth to allow my LAN subnet through but ask for credentials for everyone else. I'll bother you some more if I can't get it to work
edit: Cordel, your recommendation worked!
this is the code I used in a .htaccess file (learn apache if this is all nonsense to you)
This scenario wasn't mentioned specifically in the apache manual.
Taken from here.
-Beofres
Posted results of my 'test' and it was a no go. However, I'm gonna try setting auth to allow my LAN subnet through but ask for credentials for everyone else. I'll bother you some more if I can't get it to work
edit: Cordel, your recommendation worked!
this is the code I used in a .htaccess file (learn apache if this is all nonsense to you)
This scenario wasn't mentioned specifically in the apache manual.
Code: Select all
AuthType Basic #Specifies type of auth, in this case basic HTTP, duh
AuthName "Private" # Can be your own text, specifies the realm, for informing user i.e. "ZoneMinder console"
AuthUserFile <location of your authorized user file on your box>
Require valid-user # Tells us the user must be in the file above
Order Deny,Allow # Order of processing commands
Deny from all # Deny everything!
Allow from 172.16.37.0/255.255.0.0 # ....Unless it matches this range/subnet mask
Satisfy any # Act accordingly to any rule
-Beofres