Total Pageviews

Monday, 5 December 2011

Hide your Sourcecode & prevent copying From your website

No one (that is using internet Explore) will be able to copy text or vieuw the source and stuff.
Just add this code to your HTML code.
Code:
<SCRIPT language=JavaScript1.1>
// Wrote by Wynand
// Wynand's helpdesk.. for all your computer problems. www.wynand.be/forum (see english section)
<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("You don't have premissoin to copy things From this page!");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
// End -->
</SCRIPT>

No comments:

Post a Comment