Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 15th, 2005, 2:44 PM   #1
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 572
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
Exclamation How Can I Password protect my website?

Could someone give me the basic code for password protecting a web page?
crawforddavid2006 is offline   Reply With Quote
Old Jun 15th, 2005, 4:06 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
In HTML? Not likely. You'll need to use a server-side scripting language such as PHP to achieve a secure password protection system.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 16th, 2005, 7:10 AM   #3
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
not completely true Ooble.
look up the use of .htaccess files in google, I'll start you off with a link
in order to write a complete login/logoff access system, yes, you'll need PHP, but this way you can secure directories, and i believe even certain files.
-Dizz
__________________
naked pictures of you | PFO F@H stats
Dizzutch is offline   Reply With Quote
Old Jun 16th, 2005, 11:35 AM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Good point - forgot about those. It's still a good idea to use a server-side language, anyway.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 23rd, 2005, 6:44 PM   #5
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
in order to write a complete login/logoff access system, yes, you'll need PHP
No you won't.
Cerulean is offline   Reply With Quote
Old Jun 24th, 2005, 12:14 AM   #6
BlazingWolf
Hobbyist Programmer
 
Join Date: Sep 2004
Posts: 207
Rep Power: 4 BlazingWolf is on a distinguished road
You could do it with Javascript and cookies. Not the most reliable though.

Well...depending on what your definition of "complete" is.
__________________
_______________________________
BlazingWolf
BlazingWolf is offline   Reply With Quote
Old Jun 24th, 2005, 3:31 AM   #7
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
Originally Posted by BlazingWolf
You could do it with Javascript and cookies. Not the most reliable though.

Well...depending on what your definition of "complete" is.
That wasn't what I was implying. JavaScript password methods are broking because the only semi-decent way to use a password in JavaScript is a single-shot deal, via something like
var passw = prompt("What is the password?", "");
window.location = passw + ".htm";
This is all stored in your history, etc, so that is a big no no.

Break out of the "server-side-scripting == PHP" mentality
Cerulean is offline   Reply With Quote
Old Jun 24th, 2005, 4:57 PM   #8
BlazingWolf
Hobbyist Programmer
 
Join Date: Sep 2004
Posts: 207
Rep Power: 4 BlazingWolf is on a distinguished road
I like that mentality tho :p.
__________________
_______________________________
BlazingWolf
BlazingWolf is offline   Reply With Quote
Old Jun 28th, 2005, 11:57 AM   #9
Truly-Canadian
Newbie
 
Join Date: Jun 2005
Posts: 6
Rep Power: 0 Truly-Canadian is on a distinguished road
yeh htaccess would work. if you have access to the cpanel then you can easily restrict access to directoris with very little knowledge. if you don't have access you might want to try and ask who ever is in charge of the server.
Truly-Canadian is offline   Reply With Quote
Old Aug 2nd, 2005, 11:24 PM   #10
coldblue
Newbie
 
Join Date: May 2005
Posts: 20
Rep Power: 0 coldblue is on a distinguished road
go on Dynamicdrive.com and at the site click on .htaccess password and you can make the page protected by a nice login box abit like msn login
coldblue is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:14 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC