www.devguides.com | The developers choice   

 
Technologies available 
    Apache (1)
    ASP (0)
    ASP.NET (0)
    C&C++ (1)
    Google (1)
    HTML (1)
    Java (0)
    JavaScript (1)
    PERL (0)
    PHP (3)
    Unix (0)
    Visual Basic (0)
    XML (0)

Databases 
    MySQL (0)
    Oracle (0)
    PostgreSQL (0)
    SQL Server (1)

Security against 
    Backdoors (0)
    Malicious Mobile Code (0)
    Trojan Horses (0)
    Viruses (0)
    Vulnerabilities (0)

 
 You are currently reading

Password protecting your directories with Apache.
posted by Andres @ 16:45 PM | Sunday, June 06, 2004
Learn how to deny access for users requesting confidential information from your web page and only allowing certain users with users and passwords to access them.


 The article requested:
Introduction
You might have your web page hosted with the Apache web server, which is the most popular web server available in the market, but do you know what things can you do with Apache instead of only managing traffic and/or data transfers? Probably not and that is why we are going to make use of only one feature that Apache provides to us (Apache comes with a lot of features).

That is also why Apache is a whole category too. The feature that will be covered in this article is the method for password protecting your personal or classified documents. You can accomplish this task by using any web programming language such as PHP but you can do it pretty much faster and easier with this feature.

If you haven't understand what I'm trying to teach you in this article, then read carefully. You can have unlimited folders in your web page for instance: www.example.com/images, www.example.com/docs, but what if you have a personal directory for your clients? The solution for restricting this important folder to unauthorized users is to making use of apache. I assume that you have a clear understanding now, it's pretty much like a security clearance for your sections.

When activating this apache feature, once you browse the directory that makes use of this feature, you'll see this instead of the content:


Obviously if you don't have an user ID, you'll not have access. Don't be confused on the GUI (Graphical User Interface), I'm just using the application Safari which is the web browser developed by Apple Computer. It's only for Mac and if you browse with Internet Explorer then you'll get the same results.
[1][2][3][Getting started]


Copyright ©2004 Andrab, Inc. All rights reserved.