How to prevent the web Demo from being stolen by those accounts

Source: Internet
Author: User

Generally, if we receive a ticket, we must first design the Demo for the customer. The customer will not pay for the Demo before seeing it. At this time, we are most worried that the Demo will be directly used by the customer, but the money is not paid, the loss is our own.


So how can we prevent the web Demo from being stolen by those accounts?

Many may think about encrypting the source code of the webpage. But is it useful? The customer only needs to save the file, and the webpage will be connected to your SayGoodBye. The client can download the file directly. Even if flash is available, you can also download the file together with the encrypted source code on the whole webzip site, this method still does not work.

Some people may think that right-clicking is prohibited to prevent images from being saved, some menu functions are disabled, screenshots are disabled on the keyboard, or images are added with watermarks, can this prevent the design Demo from being stolen? Haha, although the idea is good, it is very troublesome to implement and it is still not safe. Even if you cannot use the right-click button and stop the mouse over the image for a while, the save button will appear locally.

Here I will give you a reference on my daily summary and collection of solutions, hoping to help you. Unless the customer takes a photo of the computer, the Demo will never be used.

1. Right-click disabled. Set all Demo images as the background of the table. The size of the table is the same as that of the image. This looks the same, mainly to prevent the mouse from passing through the image with a different button. The code for disabling right-clicking is simple:

<Script LANGUAGE = "JavaScript">
Function click () {if (event. button = 2)
{Alert ('Ha, sorry, you 'd like to right-click to download the image :) ') ;}} document. onmousedown = click
</Script>



2. Add the following code to the Head part of the webpage. The main function of this code is to shield the PrintScreen Key and continuously clear the clipboard to prevent the image from being saved as a file and saved as a menu.

<Script language = "javascript">
<! --
Function testclip (){
Try {
If (clipboardData. getData ("Text") | clipboardData. getData ("HTML") |

ClipboardData. getData ("URL "))
   {
Null;
   }
  }
Catch (e ){
ClipboardData. setData ("Text ","")
  }
SetTimeout ("testclip ()", 500)
}
Testclip ();
// -->
</Script>


3. Encrypt the webpage code. There are many encryption methods. You can find an irreversible encryption method. You 'd better save an unencrypted source code, just in case.

After the above three steps, I believe there is no way to crack the source file of the web page except taking photos with the computer. You can give it a try.



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.