LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   "html" (not apache) password protected webpage??? (https://www.linuxquestions.org/questions/programming-9/html-not-apache-password-protected-webpage-405618/)

shengchieh 01-19-2006 10:02 PM

"html" (not apache) password protected webpage???
 
To All:

Is it possible to make webpages in a directory and all its
sub-directory password-protected in html (i.e., not using
apache or another language)? I want to put up webpages on
a free website or somewhere, and I can not assume apache
or something is already there.

Can someone points me to documentations? I can't find what
I want - I only found documentations for filling forms.

I want to

- popup a new window asking for password
- after password is entered that user has permission
to that directory and sub-directories.

Thanks in advance for your help.

Sheng-Chieh

gilead 01-19-2006 10:11 PM

Not as far as I know. Static HTML pages do not execute, they are parsed and displayed in your browser.

This means they can't take and verify input without help from something else (like the web server).

xhi 01-19-2006 10:36 PM

No, it can not be done in html alone..

Matir 01-19-2006 10:40 PM

You might be able to use javascript to do this, but it would be INCREDIBLY complex and would require writing cryptographic code in javascript.

shengchieh 01-19-2006 11:05 PM

Thanks for the quick replies.

So is apache the only way? What are the other ways?
Also, which way is the easiest (apache?)?

Sheng-Chieh

chrism01 01-19-2006 11:16 PM

HTML pages need some sort of webserver to deliver them. Apache is the most common (& free) on the net. Ask your hosting company what they use.

gilead 01-19-2006 11:16 PM

Could the javascript be bypassed by turning it off in the browser?


All times are GMT -5. The time now is 02:02 PM.