Solved

Dynamic .htaccess Directory Protection

Posted on 2006-06-18
2
172 Views
Last Modified: 2013-12-12
Hi guys,

I wanted to know how I would go about making a dynamic .htaccess file for Directory Protection. I know how to manually edit the file to protect my Directory, but I now want to make use of the large collection of Usernames/Passwords which I have in a MySQL Database, to use as logins for my Directory.

Any ideas?

If you didn't quite understand what I was trying to say, please let me know, and I'll try re-word myself a bit better.

Cheers!
0
Comment
Question by:Cyber-Drugs
2 Comments
 
LVL 10

Accepted Solution

by:
Khanh Doan earned 500 total points
ID: 16929281
If you didn't encrypt ur user's password, you can export it to .htpasswd file
and edit your htaccess like this

    AuthUserFile /home/USERNAME/.htpasswd
    AuthName "restricted access"
    AuthType Basic
    <Limit GET>
    require valid-user
    </Limit>
if you encrypt ur user's password, I don't have any idea :D
Bonmat86.
0
 
LVL 4

Author Comment

by:Cyber-Drugs
ID: 16929299
Perfecto!

Cheers! :)
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now