I've tried endless tutorials and pored over the Apache docs and have still not found a workable solution to my problem, so let me ask you good folks for an opinion.
I have a 'secure' area (htaccess/htpasswd). I want folks entering it from a certain domain to completely bypass the standard login prompt, so in effect, you have two classes of visitor - the ones who don't need to enter a user/pass combo, and everyone else. This is the code I'm using, but it doesn't work, in that folks coming from "domain.com" are still hit with the login box, despite the "allow from" and "satisfy any" lines.
Sure, I'm uploading in ASCII and all that - this isn't the first time I've used .htaccess - just the first time I couldn't get it to work...
Any ideas?
AuthUserFile /usr/home/docs/.htpasswd
AuthGroupFile /dev/null
AuthName "Restricted"
AuthType Basic
order deny,allow
deny from all
allow from .domain.com
require valid-user
satisfy any
Thanks!
I have a 'secure' area (htaccess/htpasswd). I want folks entering it from a certain domain to completely bypass the standard login prompt, so in effect, you have two classes of visitor - the ones who don't need to enter a user/pass combo, and everyone else. This is the code I'm using, but it doesn't work, in that folks coming from "domain.com" are still hit with the login box, despite the "allow from" and "satisfy any" lines.
Sure, I'm uploading in ASCII and all that - this isn't the first time I've used .htaccess - just the first time I couldn't get it to work...
Any ideas?
AuthUserFile /usr/home/docs/.htpasswd
AuthGroupFile /dev/null
AuthName "Restricted"
AuthType Basic
order deny,allow
deny from all
allow from .domain.com
require valid-user
satisfy any
Thanks!


Comment