A method of implementing hidden Web page code by ASP

Source: Internet
Author: User
Web page

Ideas:

<script src= "js.asp" in html.asp to display content, In the html.asp code, set a session, in js.asp to judge, if the value is set to display the normal content, if not, hide or display other content, at the end of the js.asp to change the session value, in html.asp and js.asp all add a code, make the browser not slow Save the page can only be simple to hide, the use of tool software can see the source file, sample code:

Html.asp Program code:

<%
Response.Expires = 0
Response.ExpiresAbsolute = Now ()-1
Response.AddHeader "Pragma", "No-cache"
Response.AddHeader "Cache-control", "private"
Response.CacheControl = "No-cache"
%>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312"
<title> View Code-WWW.51WINDOWS.NET</TITLE>
<style>
<!--
td {Font-family:tahoma; FONT-SIZE:8PT color: #000080; line-height:150%;
Border:1 solid #666666; Padding:4}
;
</style>
<body>
<%
Session ("Haiwa") = "HW"
%>
<div align= "center"
<center>
<table border= "0" cellpadding= "0" cellspacing= "0" width= "480"
<tr>
<td id= "tmp" ><script language= "JavaScript" src= "js.asp" id= "JS" ></SCRIPT> </td>
</tr>
</table>
</center>
</div>
</body>

Js.asp Program code:

<%
Response.Expires = 0
Response.ExpiresAbsolute = Now ()-1
Response.AddHeader "Pragma", "No-cache"
Response.AddHeader "Cache-control", "private"
Response.CacheControl = "No-cache"
If session ("Haiwa") <> "HW" Then
Response.Write "//Welcome to view Source file"
Response.End
End If
%>
High, you can see it all. I don't have a trick. Ha ha
document.write ("First think, think after doing, side want to do, just want to do, do not want to do, do not want to do." ------The world is almost all covered by these six kinds of people, if as individuals can clearly analyze and see what kind of people you belong to, at least prove yourself a smart person. ")
<%
Session ("Haiwa") = ""
%>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.