How to password protect an admin area/directory

#1

I have uploaded osCommerce to my server, and everything is set up. I just need to know how to password protect the admin area/directory. The docs with osCommerce say to use .htaccess or something. I don’t know how to do this.

Thanks :)

Felicia

#2

Usually in your hosting package there is a program like cPanel or something that’ll allow you to password protect a directory then when you try to access it it’ll ask you for your username and password using a browser prompt. Depending on how secure you want your directory to be and depending on if you have MySQL, you can use PHP and create scripts that’ll call to the database and check to see if the user is valid to enter the directory and the file in it. Your hosting company should have other programs and modules that’ll allow you to protect sensitive Intel.

#3

Also look into the .htaccess file.

http://httpd.apache.org/docs/1.3/howto/htaccess.html