Using jquery, add this code (unless site is in dev mode)
<%if(!Util.ServerIsDev){%>
//prevent copy/paste
$('body').bind('copy', function (e) {
alert('Sorry, copy not allowed. Please note that Paste is allowed.')
e.preventDefault();
});
<%} %>
It's a fairly simple way to prevent people from grabbing content, but it works as a deterrent. You cant stop people doing screenshots or turning off js for example, then grabbing the content.
Leave a Comment
Comments