don't allow copying html js code example
Example 1: javascript disable copy paste
<body oncopy="return false" oncut="return false" onpaste="return false">
Example 2: how to disable copying in HTML
<div oncopy="alert('Copying forbidden!');return false">
Dear user,
The copying is forbidden for you.
If you know JS or HTML, then you can get everything from the page source though.
</div>