Home arrow Apache arrow Securing Directories With htaccess
APACHE

Securing Directories With htaccess


If you have a web site that contains sensitive documents such as test results, scripts, or an administration section, then you need directory security to stop unauthorized people from accessing certain parts of your site. In this article, Hassan will show you how to setup htaccess security for folders on your Apache web server.

Author Info:
By: Hassan Syed
Rating: 4 stars4 stars4 stars4 stars4 stars / 5
December 03, 2001
TABLE OF CONTENTS:
  1. · Securing Directories With htaccess
  2. · The .htaccess file explained
  3. · The .htpasswd file explained
  4. · Conclusion

print this article
SEARCH DEVARTICLES

Securing Directories With htaccess
(Page 1 of 4 )

If you have a web site that contains sensitive documents such as test results, scripts, or an administration section, then you need directory security to stop unauthorized people from accessing certain parts of your site. If an ISP is hosting your site, then there’s a very good chance that the server is running Apache. Apache is a free web server application (available for both Unix and Windows) that can handle all HTTP (web page) requests, and is fully customizable. You can download Apache at http://apache.org.

One of the quickest ways to secure a directory on an Apache web server is to implement web based user authentication. Htaccess access is the most popular way, and it will be discussed throughout this article.

Before we continue, you should be able to:

  • Connect to your web server using telnet and FTP
  • Use basic Unix commands to navigate your web servers’ directory structure
  • Specify the virtual path to your web servers root directory, such as /www/htdocs/

blog comments powered by Disqus
APACHE ARTICLES

- Programmatically Manipulating Microsoft Exce...
- Installing PHP under Windows
- Compressing Web Content with mod_gzip and mo...
- Compressing Web Output Using mod_deflate and...
- Setting Up Apache 2.0.45 to Parse PHP Pages
- Custom Error 404 Documents with PHP
- Using Apache and PHP on Mac OS X
- ASP: Active Sessions, Active Logins and Tota...
- Working With Oracle on Windows: Part 1
- The Quick-n-Dirty Guide to Setting Up Apache...
- Installing Apache With SSL: The Complete Gui...
- 7 Powerful .htaccess Customization Tips
- Trap And Get Notified: A Practical Solution ...
- One Way To Use Server Side Includes
- Using ForceType For Nicer Page URLs

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials