View Full Version : securing html pages
10-07-2004, 04:38 PM
i have got some html pages and i want to secure that pages without using any server side scripting language.
plz help me.
thanks in advance.
10-07-2004, 04:43 PM
10-07-2004, 04:47 PM
What do you mean by securing?
10-07-2004, 06:55 PM
I mean to say that only authorized users can view those pages.
10-07-2004, 08:03 PM
10-08-2004, 03:35 PM
if you're hosting on an apache equipped server, the .htaccess method is easy.
AuthName "Name for your protected area"
stick that in an htaccess file
then visit http://www.euronet.nl/~arnow/htpasswd/ to generate username/passwords pairs, which you should then put in an .htpasswd file, one pair per line. It'll look something like this:
replace the AuthUserFile with the path to the htpasswd file you just created.
Using this method will protect a whole directory, but I'm sure someone will come along and help you adapt the code to protect individual files/
10-09-2004, 01:25 AM
Check out this thread:
That's a pretty nice and quick way to do this. And it's better (more secure) than a JS method. I keep that in the back of my mind as I'm thinking of creating space for my students to log on to my site and store papers. That quick PHP is easy to manage and easy to create.
10-09-2004, 11:22 AM
He said he didn't have any server-side language...
10-10-2004, 04:53 AM
<shamed and embarrassed>
Oops. Well, then... Uh... yeah.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.