Provides a method of "indirectly preventing Save as"
Source: Internet
Author: User
Provides a method of "indirectly preventing Save as"
Characteristic: stupid, annoying
Because of the need to use 3 garbage files (but fortunately, add up to 10来 line of unfamiliar code)
Conditions: None (customers can guarantee their normal browsing on the line)
File:
Main Page main.htm
Junk file: x.asp,xx.asp
Main.htm
///////////////////
<HTML>
<HEAD>
<TITLE></TITLE>
<script language=javascript src= "x.asp" ></SCRIPT>
</HEAD>
<BODY>
Here, put in an IFRAME.
Src= "Xx.asp"
</BODY>
</HTML>
////////////////
X.asp
//////////
<%
Response.ContentType = "Application/x-javascript"
Response.Expires = 0
Response.ExpiresAbsolute = Now ()-1
Response.AddHeader "Pragma", "No-cache"
Response.AddHeader "Cache-control", "private"
Response.CacheControl = "No-cache"
Session ("Show") =true
%>
//////////////////
Xx.asp
////////////////
<%
If session ("show") =true Then
Session ("Show") =false
Response.Redirect "page to display"
Else
Response.Write "Welcome"
End If
%>
///////////////////////////
The improper place is laughed at.
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.