Web Development

General discussion


HTML Access

By Odd Job ·
Is it possible to limit/grant access to html files (and their individual directories) from within the html file itself using Win32 and Apache 1.3.27.
For instance granting access to the Cousins page where members of that group might be in a file called Cousins, ie:
bill smith
bob smith
And if their name does not appear on the list they would not be granted access to the html page or the directory that contains the files (text to read and/or download), but instead would get a blurb like: "No Access" etc.

Thanks in advance

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

RE HTML Access

by CJ27 In reply to HTML Access


Is creating an .htaccess file an option for you?
This is a feature of Apache in which you can set directory level access control to files. The example you described could easily be achieved using .htaccess. I have only used this on Apache Servers on Unix / Linux boxes, but I am sure it should work on Windows. I suggest doing a Google search for htaccess on Windows Apache. Reply to this post if you need any more information


Related Discussions

Related Forums