2
   

How can I get password protected webpages?

 
 
renew
 
Reply Mon 29 Sep, 2003 09:12 am
Can anybody give me the HTML code or show me how to create password protected pages? or how to do login pages?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 2 • Views: 1,645 • Replies: 8
No top replies

 
Craven de Kere
 
  1  
Reply Mon 29 Sep, 2003 09:46 am
There are many ways.

If it is done in the HTML the password protection would take me less than 3 seconds to crack.

If you want a real solution you will need much more than HTML.

What kind of server will it be on?
0 Replies
 
renew
 
  1  
Reply Thu 2 Oct, 2003 09:47 am
hi Craven de Kere,
what do you mean the server?
can you give me some examples?
i just do it in HTML.
0 Replies
 
BobbyDouglas
 
  1  
Reply Thu 2 Oct, 2003 12:55 pm
Server is like asking if you are on a windows machine, unix/linux machine.

Who is your host? It should tell you on their what server you have... You cant do it in just html, you can however use javascript.

Read this post for information about how to do it: http://www.able2know.com/forums/viewtopic.php?t=11793
0 Replies
 
renew
 
  1  
Reply Fri 3 Oct, 2003 09:24 am
BobbyDouglas, your posts really help, thanks.
0 Replies
 
Craven de Kere
 
  1  
Reply Fri 3 Oct, 2003 09:38 am
renew,

What I meant is that a password in the html can be seen by anyone who wants to see it. HTML is a client-side language which means all the html is passed on to the user's computer and executed there. Javascript is also client-side.

So if you use a client-side method to password protect a page it would take me less than 3 seconds to circumvent it.

I can give you some scripts for this but cracking your password protection as easy as turning off javascript or looking at the source.

For a more secure method you need to use a server-side authentication and you can integrate it with a clien-side language like with the script I posted to B.D. on his thread.
0 Replies
 
renew
 
  1  
Reply Fri 3 Oct, 2003 10:04 am
i will look through the thread, thanks.
0 Replies
 
Craven de Kere
 
  1  
Reply Fri 3 Oct, 2003 10:40 am
Remember taht the tread talks aboutr how to integrate .htaccess passwords into webpages. The actual password protection is server side and is not discussed there.
0 Replies
 
Glorius
 
  1  
Reply Wed 14 Jan, 2004 05:42 am
For protection of the web pages you need a script using any server-side language.
If you are familar with web progamming, you can create it by yourself. When i worked as a web-designer i used this algorithm:
1) Validation user input of password and username. We just compare what is in the db. If everything is OK, we go to stage 2, otherwise - access denied.
2) We generate random id (random value) and save this id both at db and at the client side (in cookie or session varaible).
3) When user try to access to authorized pages, we check the id. If client id (cookie or session varaible) = server id (from database), we let the user to access, otherwise we redirect to the error page.
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » How can I get password protected webpages?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/25/2024 at 10:47:37