1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to disable right click?

Discussion in 'Blogging' started by dotcomking, Feb 17, 2010.

  1. dotcomking

    dotcomking Newbie

    Joined:
    Jan 30, 2010
    Messages:
    18
    Likes Received:
    1
    Hey guys,

    I have noticed my content on other websites and want to be able to stop people from doing that. What is the best way?

    Thanks!
     
  2. Adimof

    Adimof Junior Member

    Joined:
    Feb 13, 2009
    Messages:
    165
    Likes Received:
    11
    put this before </head>

    Code:
    <script language=JavaScript>
    
    var message="Right-Click Disabled!";
    
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }
    
    function clickNS4(e){
    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=clickNS4;
    }
    else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
    }
    
    document.oncontextmenu=new Function("alert(message);return false")
    
    // --> 
    </script>
     
  3. macyzbor

    macyzbor Junior Member

    Joined:
    Jul 23, 2009
    Messages:
    147
    Likes Received:
    12
    Location:
    On the Sun
    I hate this scripts, also are you sure that people copy your site manually? You should check your traffic sources
     
  4. c0ntenth|ef

    c0ntenth|ef Power Member

    Joined:
    May 20, 2009
    Messages:
    788
    Likes Received:
    118
    Location:
    california
    if someone wants they can read your source anyways doesn't matter if you disable 'rightclick ' or not
     
  5. sidnettwo

    sidnettwo Junior Member

    Joined:
    Jun 5, 2009
    Messages:
    135
    Likes Received:
    60
    +1 Anyone that you can stop from taking your content by disabling right-click is probably not a problem to you anyway.
     
  6. topsytips

    topsytips Regular Member

    Joined:
    Aug 11, 2008
    Messages:
    334
    Likes Received:
    234
    Occupation:
    Self Employed
    Location:
    UK
    Agreed...if they know what they're doing and are not noobs.

    One other "trick" I've seen recommended is to have a complete page of empty rows before your source. It doesn't affect how your website looks but does give the impression that your source code is blank...well, at least to those who don't have the sense to scroll down!!

    You could also try adding a copyscape banner to your site to see if that makes any difference...look here...

    Code:
    http://www.copyscape.com/banners.php?o=f
    Ultimately, if they want your content then there's nothing to stop them reading and then re-typing it...if they're so inclined. All you can do is put obstacles in their way so that it's not worth their while and they move on to another site!!
     
  7. macyzbor

    macyzbor Junior Member

    Joined:
    Jul 23, 2009
    Messages:
    147
    Likes Received:
    12
    Location:
    On the Sun
    The only way to stop someone from taking your content is to don't publish, the only thing you do is to slow down the person trying to take your content, or you can make a blog with as little useful content as possible that way no one will find your site easily
     
  8. xbuzz

    xbuzz Newbie

    Joined:
    Dec 16, 2009
    Messages:
    22
    Likes Received:
    0
    To stop someone else copying your blog content you need to create your blog using flash media or as an image.
     
    Last edited: Feb 21, 2010
  9. BigHustlah

    BigHustlah Power Member

    Joined:
    Mar 29, 2009
    Messages:
    675
    Likes Received:
    717
    Location:
    in your inbox
    If it's an image, you are screwed anyways, they can just print screen and jack you without clicking anything. Only other workaround I can think is to put big ugly watermarks on your images, so they are not worth taking.
     
  10. SpiderWebMaster

    SpiderWebMaster Power Member

    Joined:
    Jan 24, 2009
    Messages:
    617
    Likes Received:
    519
    Occupation:
    I don't have a job...
    Location:
    /dev/null
    use ioncube html encoder, it's free, no right click allowed and no source code to look into.

    Code:
    http://www.ioncube.com/html_encoder.php
     
  11. superslikuzi

    superslikuzi Junior Member

    Joined:
    Feb 21, 2010
    Messages:
    124
    Likes Received:
    32
    Dang, I was really hoping there was a better way than that javascript code
     
  12. topsytips

    topsytips Regular Member

    Joined:
    Aug 11, 2008
    Messages:
    334
    Likes Received:
    234
    Occupation:
    Self Employed
    Location:
    UK
    Appreciate that the OP has asked for a solution to prevent plagiarism, but wouldn't this suggestion mess up your SEO? I didn't think Google interpreted this code?
     
  13. lazlow

    lazlow Regular Member

    Joined:
    Mar 22, 2009
    Messages:
    434
    Likes Received:
    965
    Occupation:
    Webmaster
    Location:
    This Place
    Add this line in body tag, so it looks like this:
    <body oncontextmenu="return false">
     
  14. SpiderWebMaster

    SpiderWebMaster Power Member

    Joined:
    Jan 24, 2009
    Messages:
    617
    Likes Received:
    519
    Occupation:
    I don't have a job...
    Location:
    /dev/null
    i use it and the text inside the pages get indexed the same way... i think google can read javascript far better than any human. if your browser can understand it why wouldn't the googlebot?

    in fact, after taking a closer look, it indexes very well the pages and reads the content very well also. it even caches one un-encoded version of your page, so for an extra layer of security i would tell you to use Google Webmaster Tools, add your site there, if you didn't already, and tell big G not to cache your pages :D
     
    • Thanks Thanks x 1
    Last edited: Feb 22, 2010
  15. surferket

    surferket Junior Member

    Joined:
    Dec 5, 2008
    Messages:
    179
    Likes Received:
    116
    Try this one for WP:

    Code:
    http://www.thechetan.com/wp-copyprotect/
    Many bloggers are facing the problem of content theft. Content theft is a really serious problem, and it must be dealt with. We bloggers write our posts using much effort, and "Copy Cats" simply copy our content without our permission, and without attribution.

    That's why I developed a simple, but powerful, plug-in which will protect your digitally-written work on your blogs. This plug-in is based on the technique of "Disabling right-click" and "No text selection" scripts.
    This plug-in will

    * Disable right click on your blog.
    * Disable Text selection too.
     
  16. SpiderWebMaster

    SpiderWebMaster Power Member

    Joined:
    Jan 24, 2009
    Messages:
    617
    Likes Received:
    519
    Occupation:
    I don't have a job...
    Location:
    /dev/null
    it's a good sales pitch but like somebody said above the persons who you will stop by disabling right click or disabling text selection are most likely not your problem, because the one's who steal your content will know how to see your source code without needing the context menu.