How to Disable Right Click on the Website

Hello reader today i wanna share to you about something that related with “how to disabled right click on website“. As a blogger of course there are several way to attract our visitor on our website take more time to stay on our site. With more time take of reader use on visiting our website automatically it could increase bounced to our site. With so much bounce happens on our site usually it could increase our page rank on Alexa and also on google.
I have seen several website that use feature of disable right click on mouse. I don’t know what reason of this blog owner using this. They should aware about what effect if the blog owner using it. They don’t realized that using this feature is also could decrease their website performance. If the content of the website does not have any benefit for visitor, automatically visitor will leave your website so fast. But if your web site have unique article and also have benefit for the visitor and then automatically the visitor will stay more longer on your site. The visitor will search another article on your site and visitor will always left click on mouse because you have been disabled right click on mouse.

HOW TO CREATE DISABLED RIGHT CLICK  ON MOUSE

If you curious about “how to disable right click on Website” just follow this step below. There are two way to to that.

1. First Method is using Add A Gadget or Widgets

On Blogger

1. Login on your blog, and go To Dashboard.

2. On the Dashboard choose Layout and then on the sidebar just click Add A Gadget.

3. After you click on add gadget, then choose HTML/JavaScript on the Add A Gadget Toolbar

4. Then Configure HTML/JavaScript will show on the screen. There two text box on itFirst is Textbox of Title, and the other one is Textbook of Content.

5. On Configure HTML/JavaScript, an important things to do is just type the code or copy the code from this article on the Textbook of content. You could also type a text on Textbook of Title but is not important thing to do.

6. When the code has been copy, then Click Save button on Configure HTML/JavaScript. After that Save all your modification of your blog. After you have save the changed of your blog, then try to run the code that you have been implemented on your blog through browser.

On WordPress

1. The first step just like on blogger. Just login on you WordPress Dashboard.

2. The Second step is Click on Appearence. And several menu will appear and you must click on Widgets.



3. Then on Widgets will show several Widgets items, on this widgets item just choose Custom HTML.



4. After Custom HTML is show on our screen, there are two text box will appear. on the first Textbook is called and the second is called Content. Just like on Blog Methods. Just type or copy code from this website and then after finished.


5. After you have done with point number 4, then click Save and also Done button.
and this below the code that you implemented to your site (just copy this code below)
  1. <script language=javascript>
  2. <!--
  3. //Disable right click script - By www.infotrendnow.com
  4. //
  5. var message="Try Others";
  6. function clickIE() {if (document.all) {(message);return false;}}
  7. function clickNS(e) {if
  8. (document.layers||(document.getElementById&&!document.all)) {
  9. if (e.which==2||e.which==3) {(message);return false;}}}
  10. if (document.layers)
  11. {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
  12. else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
  13. document.oncontextmenu=new Function("return false")
  14. // -->
  15. </script>

2. Second Method is using Modification of Theme

On Blogger
1. Login on your blog, and go To Dashboard.

2. On the blog dashboard, then choose Theme

3. On the Theme Section There two button show on the screen. First Button is called Customize and the Second Button called Edit HTML

4. Before put code on the Edit HTML Section, make sure that your code has been converted to xml format (not html format) or use the simple way by copying this code below on HTML version
  1. <script language=javascript>
  2. <!--
  3. //Disable right click script - By https://www.infotrendnow.com
  4. //
  5. var message=;
  6. function clickIE() {if (document.all) {(message);return false;}}
  7. function clickNS(e) {if
  8. (document.layers||(document.getElementById&&!document.all)) {
  9. if (e.which==2||e.which==3) {(message);return false;}}}
  10. if (document.layers)
  11. {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
  12. else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
  13. document.oncontextmenu=new Function(&quot;return false&quot;)
  14. // -->
  15. </script>
4. After you copying the code above, then choose Edit HTML on Theme Section. And then script HTML will show.

5. Try to search <head> </head> on the part of the HTML script. But usually on blog the header section the code write xml extension (&lt;head&gt; ) for the Opening and (&lt;/head&gt;) just like picture below

6. After you found it, then write the code or may be using the simple way by copying the disable right click on Website code between (&lt;head&gt; )  (&lt;/head&gt;)

7. After you finished with point number 6, then save of all changed that you have been modified on your blog.

8. Then try to execute of “How to disable right click on Website” on the browser. And for me is work smoothly

On WordPress
1. login on your wordpress account.

2. After you login, WordPress Dashboard will show on the screen


3. Then on the left pane Dashboard menu choose Appearance

4. On Menu Appearance click on Editor, and then Editor Menu that contain code will show on the screen.

5. The left pane menu will show contain of Theme files such as header.php, footer.php, function.php and etc.

6. Just click header.php on the theme files on the left pane.

7. After header.php is chose than header.php page will show that content several code.

8. Then just copying html code into header.php page.

9. Find code <head></head> and then put the code below between <head></head>
  1. <script language=javascript>
  2. <!--
  3. //Disable right click script - By www.infotrendnow.com
  4. //
  5. var message="Please Don't use this function";
  6. function clickIE() {if (document.all) {(message);return false;}}
  7. function clickNS(e) {if
  8. (document.layers||(document.getElementById&&!document.all)) {
  9. if (e.which==2||e.which==3) {(message);return false;}}}
  10. if (document.layers)
  11. {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
  12. else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
  13. document.oncontextmenu=new Function("return false")
  14. // -->
  15. </script>
10. After the code has been put on the header section then next process is Update File.
11. Success file update will show on the screen

0 Response to "How to Disable Right Click on the Website"

Post a Comment