(06-08-2010, 05:51 AM)Fallenour Wrote: ooo I like the look of this 8D. Does this stop them from even being able to contact the server though? Thats more along the lines of what Im aiming for, I dont even want them to be able to open a connection to it unless I want them to.
It will be similar to a 403, but it will give them the opportunity to authenticate their self, if wrong, they will get a 401 error, the same as 403 access denied, but meaning the reason why is because authentication is needed.
I use it on my WAMP server, that I use for small projects and sending files usually.
You'd have it like this in your htaccess
Code:
AuthUserFile "C:\WebServer\.htpasswd"
AuthName "name of choice"
AuthType Basic
Require valid-user
And in the .htpasswd, you'd have it in this format
Code:
username:password
username1:password
Username is case sensitive as well.