General discussion

Locked

HTML Access

By Odd Job ·
Hello,
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:
COUSINS:
-------
bill smith
bob smith
etc:
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.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

RE HTML Access

by CJ27 In reply to HTML Access

Hi,

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

Regards,
-CJ

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums