HOW TO DISABLE RIGHT CLICK IN WEB PAGE WITHOUT JAVASCRIPT ?

Hey friends, Today am here with a cool trick that is disabling mouse right click in web page.You may thinking of  "What is cool about this ? This can be done using javascript easily".
But the cool part is we are doing this without using javascript.Extra javascript can increase load time of your blog/site.

Why do we need to disable right click in a webpage or web blog?
The answer is simple to protect your content not to be copied by some visitor. Its doesn't mean using this trick nobody can copy your site content but disabling right click can prevent most visitor to copy the content (but advance visitors can do this using some another trick). I will post that trick later.

Here is way:

  1. Login to your blog Dashboard.
  2. Select Template tab.
  3. Click on Edit HTML > Proceed.
  4. Now find <body  from the html Using CTRL+F. <body  is just after the <Head> Tag.
  5. Add this code with a space just after <body ,the code is in bold so you can easily copy it.
oncontextmenu="return false;"

 
That's it. If you like this post please share the link.

1 COMMENT