Web
There is a real problem in maintaining the company's internal Web site--mis Supervisor requests that some technical documents be placed on the Web page, and can only be browsed by MIS employees. This involves the question of how to keep a Web page secret.
Originally, I designed a scheme with FrontPage and VBScript to link the MIS technology page (preset to tpwdrst.htm) before linking the actpwd.htm input name and password (where the name and password are preset to "mis"), and only after the correct input To link to actpwdrst.htm. The following are their code.
The actpwd.htm code is as follows:
< HTML >
< head >
< title > Password </title & Gt
< body >
< Form name= "Form1" >
& nbsp;< input type= "hidden"
name= "Vti-group" _ value= "0" >
< div align= "center" >< Center >< p >
name < input type = "text"
name= "T1" size=_ ">"
& nbsp; Password < input type = "Password"
name= "T2" _ size= ">
< input type=" Button "Value="
Confirmation "_ Name=" B1 ">
</></center ></div >
; </form >
< p >
< script language= "VBScript" >
<!-
sub B1_onclick ()
if form1.t1.value= "mis" and_ form1.t2.value= "Mis" then
& Nbsp; document.location=_ "ActpwdrsT.htm "
else
m1=msgbox (" Password error _
", 0+48," Warring ")
end If
end Sub
//-->
</script >
</P >
& nbsp; </body >
actpwdrst.htm code is as follows:
< htm L >
< head >
< title > Password </title >
< body >
< P align= "center" >
< font face= "standard italics" size= "7" Color= "0000FF" >
< strong >
you have successfully logged in!
</strong >
</font >
</p >
</ Body
Careful friends may have discovered the unreliability of this scenario--both input and judgment are done in actpwd.htm, regardless of whether the input name and password are correct, as long as you remember the URL where actpwdrst.htm is located, there is no need to pass actpwd.htm You can directly link actpwdrst.htm. So the secrecy coefficient of this scheme is not very good.
Here is a look at the use of ASP design scheme. Link the MIS technology page (preset to asppwdrst.asp here), first link asppwd.asp enter name and password (here name and password are preset to "mis"), only the correct input, can link to asppwdrst.asp. The following are their code.
The asppwd.asp code is as follows:
< HTML >
< body >
< Form Name= "Form1" action =
"asppwdrst.asp" Method_
= "POST" >
< input type= "hidden" name= br> "Vti-group" value=_ "0" >
< div align= "center" >< Center >< p >
&N bsp; name < input type= "text"
name= "T1" size= ">
Password < input type =
&nbs p; "Password" name= "T2" size=_ ">
< input type=" submit "value=
" Confirm "name= _ "B1" >
</P ></center ></div >
</form >
< ; /body >
asppwdrst.asp code is as follows:
< HTML >
; <% if RTrim (Request.Form ("t1") =
"Mis" and_ RTrim (Request.Form ("t2")) =
Mis "then% >
< Body >
< P align= "center" >< font face=
"superscript italics" size= "7" _ Color= "#0000ff" &G T
< strong > You have successfully logged in!
</strong ></font ></>
</body >
<% Else% >
< body >
< P align= "center" >< font face=
"superscript italics" si Ze= "7" _ Color= "#0000ff" >
< strong > Please enter the correct username and password
</strong >< ; /font >< p >
</body >
<% End If% >
In this scenario, asppwd.asp only provides the input function, while the name and password confirmation work is done by asppwdrst.asp. This way, even if you remember the URL where asppwdrst.asp is located, you don't see the specific content. Therefore, the use of this scheme to design the Web page confidentiality coefficient is very high.