How to prevent Web demo from being embezzled by Dreamweaver customers

Source: Internet
Author: User
Tags dreamweaver

   Under normal circumstances, if we receive a single, we must first design demo to the customer to see, the customer has not seen the design demo, usually will not give money. At this time we are most worried that the demo will be directly used by customers, and money is not paid, the loss of our own. &NBSP


So how do you prevent Web demos from being embezzled by deadbeat customers?

Many people will want to encrypt the source code of the Web page. But, does it help? Customers as long as another save, the Web page and you Saygoodbye, the client can download things directly, even if there is flash, you can also use Webzip whole station together with the encryption of the source code are downloaded together, this method is not workable.

Some people would like to prohibit the right mouse button, so as not to save the picture is saved, prohibit certain functions of the menu, Ban screen of the keyboard, or to add a watermark to the picture, so whether you can prevent the design of the demo is stolen? Hehe, the idea is good, but the realization is very troublesome, and still not insurance. Even if you can't use the right button, stop the mouse in the picture for a while, there will be saved to the local save button, we can not take it.

Here I have my daily summary and collection of solutions for everyone to refer to, I hope that will help. The demo will never be used unless the client takes a picture of the computer.

1, prohibit the right mouse button, the demo of the pictures are all set to the background of the table, the size of the table and the size of the picture. This looks the same, primarily to prevent the mouse from passing through the picture when a saved button appears. The code that suppresses the right mouse button is simple:

<script language= "javascript" > 
Function click ()  { if   (event.button==2)  
{alert (' Oh, sorry, you don't want to use the right button to download the Picture:) ');  } } document.onmousedown= Click
</script>



2, add the following code to the head of the Web page, the main function of this code is to screen the Printscreen key, keep the clipboard empty, prevent the picture from being used-save as a menu.

<script language= "javascript"
<!--
Function&nbsP;testclip () {
 try {
  if (Clipboarddata.getdata ("Text") | | Clipboarddata.getdata ("HTML") | | Clipboarddata.getdata ("URL"))  
   {
   null;
   }
  }
 catch (e) {
  clipboarddata.setdata ("Text", "")
  }
 settimeout (" Testclip () ","
}
Testclip (),
//-->
</script>,


3, encrypting the Web page code. There are many ways to encrypt, we can find an irreversible encryption method, it is best to save an unencrypted source code, just in case.

After three steps above, I believe there is really no way to crack the Web page source file except to take a picture of the computer. We can 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.