Bobby Gontarski wrote:
.htaccess will do all of this for you. Check out this link, I think it will give you what you're looking for:I need the following: Allow access from certain IPs to a certain directory and if the user does not come from that IP I need to authenticate him/her using the password file. I can do one or the other - either certain IPs are allowed and others are not or the access is controled based on password file regardless of IP.
http://www.javascriptkit.com/howto/htaccess.shtml --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx