I cross-posted this elsewhere. I'm trying to implement a very basic "intranet" onto my company's current website. I am trying to put in place a very basic level of authentication (one username and password that everyone can use). I have found the code to actually restrict access to each individual page. The problem I am having now is restricting access to not only web pages, but any word document, pdf files, etc,. Obviously I'm going to have to restrict access to the directory itself, but I'm not sure how to do this. Any help (and code samples!) would be greatly appreciated! Thanks.
Use .HTACCESS protection if you are using Apache server. http://bignosebird.com/apache/a10.shtml http://www.cs.dal.ca/studentservices/faq/tutorials/web_sites/htaccess.shtml http://www.webmastersguide.com/htaccess-cgi/htaccess.htm There is a commercial software called IISPassword that implements similiar functionality for IIS servers. http://www.troxo.com/products/iispassword/ Thomas