Passwords and Web Pages

How can I password-protect half my Web site?
Who is Participating?
aioudineConnect With a Mentor Commented:
AFAIK you can't protect particular files
only directory
for more information see TFM
and "How do I set up passwords for my web pages?" at 

Generaly speaking, you may protect dirs by editing access.cfg or access.conf
(general webserver access control file)

and by placing  ACL file in directory_to_be_protected
This ACL file usially named access.www or  .htaccess
(depend on webserver)

Some Webserver, like Novell Webserv allow you to set restriction based on NDS rules

Best way is to place the half that needs to be protected into a subdirectory and password protect that subdirectory.

You didn't mention the web server but usually, you just need to do what I mentioned above.

Let me know if you need more details.
wdw1971Author Commented:
I have tried to the files that need to be password protected, but it dosen't work. I really need more information on how to do this.

I need more information to help you. What's your web server?
yes, you can protect individual files, at least on Microsoft IIS...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.