Protection of the website content from copying Prohibition of copying text. Ctrl+A, Ctrl+U Ctrl+C and the refusal of the right mouse button

The security script, content protection from 95% copywriters (lazy users who do not know how to write texts for websites) Script (Javascript) - protection of the content;

<script type="text/javascript"> document.ondragstart = test; document.onselectstart = test; document.oncontextmenu = test; function test() { return false; } document.oncontextmenu; function catchControlKeys(event){ var code=event.keyCode ? event.keyCode : event.which ? event.which : null; if (event.ctrlKey){ // Ctrl+U if (code == 117) return false; if (code == 85) return false; // Ctrl+C if (code == 99) return false; if (code == 67) return false; // Ctrl+A if (code == 97) return false; if (code == 65) return false; } } </script>

Better write a script separately, but can be in a block of the <head> </head>.

+ change the template <body> <body onkeypress="return catchControlKeys(event)"> Download the script protection of the website content from direct copying

Promotion of services