LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-19-2006, 10:02 PM   #1
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
Question "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
 
Old 01-19-2006, 10:11 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
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).

Last edited by gilead; 01-19-2006 at 10:12 PM.
 
Old 01-19-2006, 10:36 PM   #3
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
No, it can not be done in html alone..
 
Old 01-19-2006, 10:40 PM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
You might be able to use javascript to do this, but it would be INCREDIBLY complex and would require writing cryptographic code in javascript.
 
Old 01-19-2006, 11:05 PM   #5
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Original Poster
Rep: Reputation: 30
Question

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
 
Old 01-19-2006, 11:16 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Could the javascript be bypassed by turning it off in the browser?
 
Old 01-19-2006, 11:16 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,232

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using symlinks for /home/"username" and /var/www/html hamza11050 Linux - Networking 10 08-05-2005 10:36 PM
How to "Search & Replace" in html files using Perl? rebel Red Hat 8 04-09-2005 12:58 PM
"protected" packages in YaST? lnebrown Suse/Novell 1 02-21-2005 11:26 AM
Password protected Apache ne21 Linux - Software 5 07-30-2004 01:08 AM
Ripping "protected" CD's r_jensen11 Linux - Software 0 02-20-2004 08:15 PM


All times are GMT -5. The time now is 05:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration