• 0

HTML Code needed


Question

Alright need a little help.....

I need an HTML code or something of that nature to password protect a website for my girlfriend. If anybody by any chance knows it, or otherwise knows where to find it, id appreciate the help! :cool:

Thnx everyone, and dont mind me in certain things........as you all know, Im crazy! :woot:

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0
www.brainjar.com

http://www.brainjar.com/js/validation/

maybe this will help you in the right direction...

Hmm, I didn't understand alot from that site but im pretty sure its not what im looking for. What im looking for is a code of some sort to put into the Geocities website editing program in order to make a website private or only accessible from people who know the password. If anyone understands what im trying to say just let me know and if ya know what that code is or where to get it that would be even better! :blink:

By the way Tikimotel, Thnx for the help dude :)

Link to comment
Share on other sites

  • 0

A server side language like ASP or PHP is the best way to go here, if you use Javascript the user can just turn off Javascript and get inside.

Link to comment
Share on other sites

  • 0

ok heres a little script in java whicj will do wot you want

just paste it just below the in head in your page.(the page you want to lock)

where it says password here in the script change it to what ever you want.

and where it say enter web address here of page to return to if they give wrong passwordchange to wot ever you want.......

<script language="JavaScript">

<!--hide

var password;

var pass1="password here";

password=prompt('Please enter your password to view this page!',' ');

if (password==pass1)

alert('Password Correct! Click OK to enter!');

else

{

window.location="enter web address here of page to return to if they give wrong password";

}

//-->

</SCRIPT>

Link to comment
Share on other sites

  • 0

no ive treid doin that it makes a popup box and you cant get to view source - but yes PHP and other serverside is more secure than that - basicly dont use it on sensitive data

Link to comment
Share on other sites

  • 0
no ive treid doin that it makes a popup box and you cant get to view source - but yes PHP and other serverside is more secure than that - basicly dont use it on sensitive data

Turn off Javascript.

Go to page.

View source.

Voila.

As for using PHP/CGI/etc, he's on Geocities. THat ain't happenin.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.