Welcome Guest ( Log In | Register )



 
Closed TopicStart new topic
> password protection thing
suicide
post Sep 7 2004, 03:05 PM
Post #1


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 55
Joined: 7-September 04
Member No.: 351



Hi

Can anybody help me with this little problem i have?

Its just a sort of password protectd html page.

new to scripting,so give me a chance.

Basically i have a enter username/password page.

if you dont enter a name or a password it takes you to a please try again page, the same if you get both fields wrong, but if you get it right it also takes you to the try again page.

username and password refer to a seperate html page of both names with an _ inbetween. i.e myname_mypassword.html would be correct.

the code.

<script LANGUAGE="JavaScript">

function checkuser()

{
var user = document.login.user.value
var password = document.login.password.value

if (user == "" || password == "")
{
var doc = "no.html"
this.location.href = doc
}
if (doc !== user + "_" + password + ".html")
{
var doc = "no.html"
this.location.href = doc
}
else
{
var doc = user + "_" + password + ".html"
this.location.href = doc
}

}

</SCRIPT>

function called up with a submit button.

Thanks for any help upfront.
Go to the top of the page
 
+Quote Post
Tobias
post Apr 11 2005, 02:51 AM
Post #2


Advanced Member
Group Icon

Group: Members
Posts: 101
Joined: 11-April 05
Member No.: 3,843



It looks to me as thought you have both if statments linked to the same page...maybe that's the problem.
Go to the top of the page
 
+Quote Post
warbird
post May 26 2005, 02:58 PM
Post #3


Little MechBirdie
Group Icon

Group: Members
Posts: 299
Joined: 23-March 05
From: Down here in Holland
Member No.: 3,178



I tried that also with JavaScript. Problem 1: I still didn't figured out why, but it just didn't work cool.gif , problem 2: if people look at the source-code they can see the passwords, unless you put it in another js file but even then people can find it.
I did some googling for you and this was what I found maybe you should try it:
http://www.bravenet.com/webtools/passwd/index.php
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Forgot My Cpanel Password(7)
  2. Broadband Connection Monitoring(3)
  3. Weirdest Thing In Internet(38)
  4. How To Reset A Nt Password Using Knoppix-std(3)
  5. Restore Windows File And Folder Protection(4)
  6. Is The Processor Everything / Good For Gaming ?(14)
  7. [PHP + MySQL] Encrypting Data(11)
  8. Which Virus-protection Program Is The Best?(18)
  9. Internet Access On Airplanes.(28)
  10. I'm A Little Lost: MapleStory Or RuneScape ?(40)
  11. GENX GDV 720: Ever Seen Anything Like This?(7)
  12. Win Rar Password Problem(7)
  13. Cracking Wireless Access Point Password?(22)
  14. Choosing An Extremely Secure Password - Examples(16)
  15. Password Protect A Folder(6)
  1. Access(17)
  2. Supercooling(11)
  3. What Is The Coolest Thing You Can Do In Linux You Cant In Windows Or Mac?(8)
  4. Password Recovery Script(6)
  5. "hacking" The Bios Password(10)
  6. Sandisk Memory Card Write Protection(12)
  7. Nt Passworder 1.2(0)
  8. Updating Only One Thing In A Page?(3)
  9. 3d Game Creating Thing(1)
  10. Opensuse: Stop Asking Root Password(5)
  11. How To Erase Dell Inspiron Hard-drive Password(1)
  12. Password Protection(5)
  13. Enter Your Password To Perform Administrative Tasks(3)


 



- Lo-Fi Version Time is now: 8th October 2008 - 12:12 AM