standard post format icon

No Right Click

I would like to thank all of you who commented on my previous post about my plagiarized poem.

Although we really can’t stop people from copying our own articles, I thought of making it more difficult for them. Again, it won’t prevent theft, but it will definitely make it harder for them to copy & paste my poems. That’s why I am using the no right click and disable select script again.

Few years ago, I used the no right click and disable text select script I got from Dynamic Drive. That script prevents the user from right clicking and from selecting text in my site. But when I migrated to WordPress two years ago, I didn’t include it in my header files. When I was still using that Javascript file, I didn’t see any copy of my poems, not unless Google wasn’t able to detect it using my “search queries”.

And now that there are more than 10 direct copies of my poems, I realized I should be using that Javascript again.

Though I’ve seen several sites that uses the no right click function, people can still easily copy the content of the site by pressing Ctrl+C. But with the disable text selection script, you can not select any text from a page and you can’t even use Ctrl+A or select all. If you can’t select a text, obviously you can’t copy the text directly. The only thing you can do to copy the text is by saving the entire page in your computer or by viewing the source code.

Here’s the Javascript code for image and text protection with a pop up message I found from BluePark Solutions.

<SCRIPT language="JavaScript">
<!--
var message="Copyright ©2008 Your Company Ltd. All Rights Reserved.";
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {
if (e.target.type == "text") { return true; }
if (e.target.type == "textarea") { return true; }
if (e.target.type == "submit") { return true; }
if (e.target.type == "checkbox") { return true; }
if (e.target.type == "radio") { return true; }
if(document.layers||(document.getElementById&&!document.all)){
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

function noclic(clic) {
var msg="Copyright ©2008 Your Company Ltd. All Rights Reserved.";
if (navigator.appName == 'Netscape' && clic.which==3) {
alert(msg);
return false;}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
return true;
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = noclic;
// -->
</SCRIPT>

<SCRIPT language="JavaScript">
function disableselect(e){
    if (e.target.type == "text") { return true; }
    if (e.target.type == "textarea") { return true; }
    if (e.target.type == "submit") { return true; }
    if (e.target.type == "checkbox") { return true; }
    if (e.target.type == "radio") { return true; }
    if (e.target.type == "password") { return true; }
    return false;
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>

If you are annoyed with the pop up message and don’t want to use it, there’s another script for that in the link above.

You can put this code right before the </head> tag of your header file. I saved mine in one file and just used <script type=”text/javascript” src=”path/to/file/noright.js”></script> right before the </head> in header.php.

If you want to see it working, you can visit My Destiny poem or any of my poems and the submitted poems.

37 thoughts on “No Right Click

    • Yes, indeed. But then again, my point is, even if they want to copy at least you’re making it hard for them. May extra effort pa rin sila bago maka kopya. Pero kung may right click, madali lang mag save ng image. Kung walang right click, mag screen capture pa sila at mag e-edit. Kung regular user yun, baka tamarin yun mangopya at humanap na lang ng iba. Pero kung tulad sa ibang advanced eh syempre madali lang naman mag edit, parang ikaw haha!

  1. The funny thing about this thing is, it works only for amateurs. You can always work around if you’re dying to copy it!

    And with your posts, you cannot be powerful and have a voice to say.. hey! This is my work! if you’re the only who knows this.

    I read once upon a time ( Noong Unang Panahon ) somewhere down the road ( hehe ) that there are some sites who empower poet, artists’ work by registering your copyright to sites like this… http://myfreecopyright.com/ / http://www.copyrightwitness.com/

    I hope that it’ll help you… Ang damot naman daw kasi eh hehehe joke..

    Camper´s last blog post..PHP Tutorial – If-Else Statement

    • Like what I said in my post, it won’t stop theft naman especially if someone really wants to copy it. But same with my reply to Nilo, at least may extra effort hindi lang basta copy and paste diba.

    • Okay lang, thanks for the info Camper. San mo nakita mga yan, hehe. Dati I used copyscape, pero may limit ang search, kailangan mag premium member. I am using Google lang talaga.

      I just tried copyrightspot pero mas maraming nakikita sa google. Sa copyrightspot kasi isa lang yung search result para sa Saying Goodbye copies, sa Google 9 different websites ang result.

    • Exactly my point, at least mag eeffort pa talaga sya. Kung sya naman yung tipong nagre-rely lang sa copy-paste, baka tamarin na yan kung magta-type o magsi-save pa at hindi ka na kopyahin… much better, hehe.

      Amor´s last blog post..No Right Click

    • Nakita ko nga rin sa site mo friend. Maganda rin or mas maganda na may kasamang disable select para di pwedeng mag highlight ng text, at mag Ctrl+c.

      Amor´s last blog post..No Right Click

    • hindi ba? hahaha! bakit sa akin, naka disabled na, hindi makapag highlight ng text. Sa poems mo ba tiningnan?

      Oo nga binanggit ko yung pag view ng source code para maka kopya, pero mag i-edit pa rin sya kasi may mga kasamang html tags na buburahin nya pa.

      Amor´s last blog post..No Right Click

    • Kung ikaw naman eh, okay lang sa akin, basta pakopya din ako ng recipes mo ha. 🙂

      Amor´s last blog post..No Right Click

      • Hi Amor hindi pwedeng kopyahin ang mga recipes ko lol… May sekret ingredients yon bweheheh kaya masarap! Nga pala taga makati ka lang ba? O may access ka sa makati? Let me know ASAP! Dahil ikaw ang bagong kampeon!

        YoungCan´s last blog post..I eat with my emotions?