Restrict Access Using Htaccess on Windows
Filed in: Web Development — February 1st, 2005I wrote a simple web application for stock management to be used inside the company(by only a staff). I got a request to implement password protection to the system.
I do not want to modify database and modify the codes(and I am lazy
). So, the fastest way is to use .htaccess file to restrict access to the web directory.
However, Microsoft Windows does not support filename starts with a ‘dot’. How do we implement the .htaccess?!
I found a very good tutorial(with DETAILS explaination) for Apache .htaccess Authentication.
After reading the tutorial, the web system implemented password protection in just 5 minutes!
Thought:
Though Apache web server configuration file is plain text file, but it is VERY powerful if you dig it down.
Like this post? Please share:
Follow @liewcf on Twitter; Join Facebook page; Subscribe to free newsletter for updates like this article..





Pingback: Sniptools