title: How to disable Ctrl+U using Javascript
body: <p>I just want to disable <kbd>Ctrl</kbd>+<kbd>U</kbd> and <kbd>Ctrl</kbd>+<kbd>C</kbd> event. The primary purpose of doing this is, preventing users from downloading any image or copying content from my website easily i.e. pressing <kbd>Ctrl</kbd>+<kbd>U</kbd> for viewing my webpage's source code or pressing <kbd>Ctrl</kbd>+<kbd>C</kbd> for copying content directly from my webpage.</p>
  
  <p>Currently, I am using this piece of code but it disables my entire keyboard</p>
  
  <pre><code> &lt;script&gt;
      /*function check(e)
      {
      alert(e.keyCode);
      }*/
      document.onkeydown = function(e) {
              if (e.ctrlKey &amp;&amp; (e.keyCode === 67 || e.keyCode === 86 || e.keyCode === 85 || e.keyCode === 117)) {//Alt+c, Alt+v will also be disabled sadly.
                  alert('not allowed');
              }
              return false;
      };
      &lt;/script&gt;
  </code></pre>