Log in

View Full Version : html password



marvinmxli
10-02-2006, 11:11 PM
hi there... some time ago i use an easy script from here but i lose it... its simple a form ask for a usename & password and goes a bubch of "if ' s" commmand in the fom like this
if username==this and. password== that go thispage.htm
if username==this and. password== that go thatpage.htm
if username==this and. password== that go anotherpage.htm
if username==this and. password== that go morepages.htm

i know the code its so simple but i just forget how the code was... can somebody give a help here... pls??

tnx in advance
Jorge

xeno
10-03-2006, 03:38 AM
Do you want to use cgi, PHP, or what? HTML cant do this without help I'm pretty sure.

marvinmxli
10-04-2006, 01:26 AM
well yes but i look some easy way the web site im planing its simple..

marvinmxli
10-04-2006, 09:00 PM
i found it!!!... well if someone interest in some easy and low level of security here is... remembre combine this script with the "no right click button" to prevent no ine can see the script...


<!-- TWO STEPS TO INSTALL MULTIPLE USERS:

1. Copy the first code into the HEAD of your HTML document
2. Put the last coding into the BODY of your HTML document -->

<!-- STEP ONE: Copy this code into the HEAD of your login HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username=="member1" && password=="password1") { window.location="page1.html"; done=1; }
if (username=="member2" && password=="password2") { window.location="page2.html"; done=1; }
if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; }
if (done==0) { alert("Invalid login!"); }
}
// End -->
</SCRIPT>

<!-- STEP TWO: Paste this code into the BODY of your HTML document -->

<BODY>

<center>
<form name=login>
<table width=225 border=1 cellpadding=3>
<tr><td colspan=2><center><font size="+2"><b>Members-Only Area!</b></font></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=text name=password></td></tr>
<tr><td colspan=2 align=center><input type=button value="Login!" onClick="Login()"></td></tr>
</table>
</form>
</center>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 1.60 KB -->

BLiZZaRD
10-04-2006, 10:24 PM
Just use .htaccess... so much easier, more secure and faster...

mburt
10-05-2006, 08:36 PM
Or PHP

djr33
10-06-2006, 01:34 AM
And, the no right click button is really funny.
View>Source.
That's it. I rarely right click anyway. Heh.

Not secure, for people who want to get around it.... and the other people won't be trying to, so why use any security if you don't care if it's not secure?

blm126
10-06-2006, 01:42 AM
And, the no right click button is really funny.
View>Source.
That's it. I rarely right click anyway. Heh.

Not secure, for people who want to get around it.... and the other people won't be trying to, so why use any security if you don't care if it's not secure?
Easier than that. Tools->Quick Preferences->Uncheck Enable JavaScript(in OPera 9)

djr33
10-06-2006, 01:59 AM
That, plus right clicking and clicking view source is easier than:
view>source?????

etgsgroup
10-06-2006, 06:47 AM
Some server can not use .htaccess

BLiZZaRD
10-06-2006, 08:07 AM
Some server can not use .htaccess


Then you should find a new server. :cool:

djr33
10-06-2006, 08:44 AM
Some servers place large banners on your site.
That's icky.

BLiZZaRD
10-06-2006, 08:48 AM
I think the pop ups are worse than banners, personally.

For free hosting, I like the way Yahoo/Geocities has done thier ads, in that slide away side bar, that makes it a bit better that I can close the ad pages if/when needed.

djr33
10-06-2006, 08:56 AM
right. But either way,it's a bad host ;)

Well, yeah, for ads, geocities is fine, considering there are some, obviously not better than a host without. geocities SUCKS for webhosting though, for many reasons. For one, bandwidth. And there are plenty others.

BLiZZaRD
10-06-2006, 08:59 AM
no php, could go on and on, I agree... you get what you pay for though.

But bad hosting wasn't what this was about, LOL, I have a mile long list of bad hosts. Powweb is at the very top of that one, even above geocities. gag.

djr33
10-06-2006, 09:01 AM
powweb? cheap, and lots of features/bandwidth/space. I've heard good stuff. why's it bad?


I think the topic is over, so i'm not too worried about being off it.
however, if someone wants to bring it back, please, ignore this, and continue.

BLiZZaRD
10-06-2006, 09:12 AM
I had them for almost a year. On the surface they are a good host, yes tons of features, and autoinstallers, etc etc. Support is worse than a worn out bra.

When there is a problem and you report it, they ask for your domain and other info, you wait about 20 minutes, and they come back and say "It works for me"

No other explaination.

Also the down time. They get hit with bandwidth abusers and DDOS attacks about 3 times a week. Too many sites on one cluster, no RAID. In the 8 months I was with them I averaged about 39% downtime.

True to their promise I got free time added to my account, but I left anyway, why get more months of downtime?

When I signed up it all looked good, but once you are in its over. Their daily back ups are sporattic at best, I got them done about twice a week. Tech Admins are off site, so when there is a server problem you have to wait over 2 hours just for techs to get there to begin diagnosis. (based in California, closest tech lived in Arizona!)

The forum is a joke. If you post there for help you get a hundred replies. 99 of them are other members saying "I am having the same problem" the other 1 post is a tech support guy saying 1 of 3 things:

It works for me,

Ask your question to Google, or

You should know how to do that.

(the last one got me irritated the most, as that was the one I recieved when asking about .htaccess MOD ReWrites... grrrr)

Like they think everyone was born knowing everything about web design and maintenance.

There are many many other reasons, but most of it is the general over all atmosphere and attitude once you have given them your money.

I have sine moved my sites to site5 hosting, and I love it. Sure there are problems, just like any machine will have. I have yet to wait longer than 20 minutes for a reply to a trouble ticket, or an hour for resolution.

I even once made a mistake in my coding, thought it was the server, and their admins asked permission, and fixed the code for me. How cool was that?

djr33
10-11-2006, 04:44 AM
The downtime sucks.
My host goes down once in a while for a short time.. real pain when it does. But it isn't too often... once a month, if that, usually. Generally late at night too... i'm up, but few others are. ;)

As for the support, my host is awful with that too... friendly people from Texas answering the call, then looking through the host's website to see if they happen upon an answer. I have had the impulse to help them navigate their own site, but I realize that would be a waste of time :p

Smice
10-19-2006, 10:28 PM
Just use .htaccess... so much easier, more secure and faster...

How? I have no idea how to learn this...

tech_support
10-20-2006, 08:07 AM
http://tools.dynamicdrive.com/password/