View Full Version : hey could please help me to put a password in my site?


ruri-ramen
11-12-2006, 03:16 PM
hey i wanna a make page where someone has to type the password before they enter my site..but umm...how do i do that?!? this is the html code for my site:(its only the body,it wouldnt fit lolz)
<body><div class="hope_Map">
<img src="http://i97.photobucket.com/albums/l237/ruri-ramen/new.jpg" alt="" usemap="#hope_Map" border="0" height="390" width="750">
<map name="hope_Map"><area shape="rect" alt="" coords="656,267,747,278" href="http://www.myspace.com/Blaqheartedstar"></map></div>

<div style="top: 400px; height: 478px; left: 267px; width: 440px;" class="info">
<span style="font-family: verdana; color: rgb(255, 255, 255);" class="header">sorry guys no picture</span>
<table><tbody><tr><td>
<img src="http://i97.photobucket.com/albums/l237/ruri-ramen/5.gif"></td><td>
<b>Name:</b>Ruri<br>
<b>Age:</b> 13<br>
<b>Location:</b> (coordinates)56north,54west,100south,477east<br>
<b>Fav Color:</b> green and black!<br>
<b>Music:</b> i dunno..i dont listen to music much...<br>
<b>Movies:</b> anime?!?<br>hmmmm...i like annoying people<br>
</td></tr></tbody></table><br>

<center><u><br>
</u><s></s></center>
<span class="subheader">blah..........</span>hello i just made this site out of boringness lolz......<br><br>

</div>


<div style="left: 40px; width: 179px; height: 225px; top: 401px;" class="nav">&nbsp;
<span class="header"></span><a href="http://www.freewebs.com/ruri-ramen/index.html"title="this is the home page where all the boring stuff would be...." class="leaf">home</a> <a href="http://www.freewebs.com/ruri-ramen/images%20and%20videos%202.htm" title="you need a password to go to this page"class="leaf">images and videos</a> <a href="http://www.freewebs.com/ruri-ramen/my%20creations.htm" title="all my nice and old weird drawings are in here lolzclass="leaf">my creations</a> <a href="http://www.freewebs.com/ruri-ramen/end%20of%20the%20vorld.htm" class="leaf">end of the vorld</a><br>&nbsp;

<span style="color: rgb(0, 0, 0); font-family: century gothic;" class="subheader">Stupid Stuff</span><a href="http://www.freewebs.com/ruri-ramen/ruri%2Dramen%20club.htm" class="leaf">Ruri-Ramen Club</a> <a href="http://www.freewebs.com/ruri-ramen/contests.htm" class="leaf">Contests</a> <a href="http://www.URLHERE.com" class="leaf">Freaky pictures</a> <br>&nbsp;

<span class="subheader"></span><a href="http://www.freewebs.com/ruri-ramen/freaky%20pictures.htm" class="leaf"></a><br>

<span style="color: rgb(0, 0, 0); font-family:century gothic;" class="subheader">credits</span> <span style="text-decoration: underline;"><span style="font-weight: bold;"></span></span><span style="font-weight: bold;">Roxanne<br>
Daania<br>
Nour<br>
&amp; my other friends<br>
<br>
</span>
</div>
<!-- end code provided by createblog.com -->
</body>

pb&j
11-12-2006, 04:48 PM
you can use javascript, but that is a very low security version.

you can use htaccess, but you have to make sure your host allows that type of file to be used.

you can use an online service like ... http://www.bravenet.com

onesidered1
11-26-2006, 05:20 AM
<!-- 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 -->



ITS A GOOD SCRIPT MAKE A NEW PAGE THOUGH

pb&j
11-26-2006, 09:31 AM
anyone viewing the source code of the page will easily be able to view the "secure" pages with that javascript method. very low security.

onesidered1
12-13-2006, 02:06 AM
i don't even remember poasting that i use a better one

i think that was my crazy cousion who got my password tryin to mess around