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)
Main Page main.htm
Junk file: x.asp,xx.asp


<script language=javascript src= "x.asp" ></SCRIPT>
Here, put in an IFRAME.
Src= "Xx.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
If session ("show") =true Then
Session ("Show") =false
Response.Redirect "page to display"

Response.Write "Welcome"
End If


The improper place is laughed at.

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: 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.