Dear experts,
I've come across a web page whereby you are not allowed to copy the text or image there. When you tried to do so, there will be a circle with a slash symbol appear and you can't do the copy and paste thing.
Hope someone out there can advise me how to do this kinda thing. thanks.
Page 1 of 1
how to make the text not copyable ?
#3
Posted 01 September 2010 - 02:42 PM
Put the following script in the head of your page:
<script language="Javascript1.2">
// Set the message for the alert box
am = "This function is disabled!";
// do not edit below this line
// ===========================
bV = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
function nrc(e) {
if (bNS && e.which > 1){
alert(am)
return false
} else if (bIE && (event.button >1)) {
alert(am)
return false;
}
}
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
</script>
#4
Posted 01 September 2010 - 02:47 PM
You can spend your time trying to make people's browsers not allow things, but it won't make a difference, Anyone with half a brain can bypass any prevention method you try.
Chances are it was a disable right click function. Which annoys people. They can still use the toolbar, take screenshots, view the source, use telnet cmd and a million and one other ways to get around it.
I wouldn't really waste any time trying to prevent people stealing it, they'll steal it anyway, and all you're going to do is annoy genuine users.
Just my $0.02
Chances are it was a disable right click function. Which annoys people. They can still use the toolbar, take screenshots, view the source, use telnet cmd and a million and one other ways to get around it.
I wouldn't really waste any time trying to prevent people stealing it, they'll steal it anyway, and all you're going to do is annoy genuine users.
Just my $0.02
Share this topic:
Page 1 of 1
Help

















