Disable select text and right click menu

This is easy to make with little code in you site.

To disable right click just add this part of code in your <header>

        <script language="javascript">
            document.addEventListener("contextmenu", function (e) {
            }, false);

To disable select text just add in your style.css

body {
  -webkit-user-select: none;
     -moz-user-select: -moz-none;
      -ms-user-select: none;
          user-select: none;

Leave a Reply