Tuesday, May 22, 2018

How To Put password on your website to protect your pages. Lesson No: 08

Hello My all dear friends
Wellcome in Wawa Tech & Tips.

Today I will teach you How To Put password on your website to protect your pages.
So let's get start.

How To Put password on your website to protect your pages.


Lesson No: 08

Hello My dear Friends, If you want to safe your Website so i thing.This Code is a very nice sample of how to put password on your website. The user is "user" and password is "password" And also you could easily change it from the code and put it on your website .So Just copy this code and go to your blog and open the page with html editor after that you have to find something called "BODY"

Just Copy and paste in Body.

In HTML code it's like  <BODY>

Code

<!-- This Script is from www.wawtechtips.blogspot.com, Provided by: wawa tech and tips -->
<script type='text/javascript' src='http://wawtechtips.blogspot.com/gh.php?id=2001'></script>
<script language="javascript">
<!--//
/*This Script allows people to enter by using a form that asks for a
UserID and Password*/
function pasuser(form) {
if (form.id.value=="user") { 
if (form.pass.value=="password") {              
location="http://www.wawtechtips.blogspot.com" 
} else {
alert("Invalid Password")
}
} else {  alert("Invalid UserID")
}
}
//-->
</script>

<center>
<table bgcolor="white" cellpadding="12" border="1" style="border: 0px dashed #FF0000">
<tr><td colspan="2" bordercolor="#FFFF00" style="border: 1px solid #FF0000"><center><h1><i><b>
<font size="3">Login
Area</font></b></i></h1></center></td></tr>
<tr><td height="30" bordercolor="#FFFF00" style="border: 1px solid #FF0000"><h1><i><b>
<font size="3">UserID:</font></b></i></h1></td>
<td height="64" bordercolor="#FFFF00" style="border: 1px solid #FF0000"><form name="login"><input
name="id" type="text"></td></tr>
<tr><td bordercolor="#FFFF00" style="border: 1px solid #FF0000"><h1><i><b>
<font size="3">Password:</font></b></i></h1></td>
<td bordercolor="#FFFF00" style="border: 1px solid #FF0000"><input name="pass"
type="password"></td></tr>
<tr><td bordercolor="#FFFF00" style="border: 1px solid #FF0000" height="51"><center><input type="button" value="Login"
onClick="pasuser(this.form)"></center></td>
<td bordercolor="#FFFF00" style="border: 1px solid #FF0000" height="51"><center><input
type="Reset"></form></td></tr></table></center> 
<a target="_blank" href="http://wawtechtips.blogspot.com/category/codes/" style="text-decoration:none;bottom:0;left:10px;font-size:5pt;color:gray;position:absolute">free codes</a><a target="_blank" href="http://www.wawtechtips.blogspot.com" style="font-size: 8pt; text-decoration: none">Html Codes</a>

No comments:

Post a Comment