<div><div><script> // Impedir seleção de texto document.body.addEventListener('selectstart', function(e) { e.preventDefault(); }); // Impedir impressão via CTRL+P ou PrintScreen document.addEventListener('keydown', function(e) { if ((e.ctrlKey &amp;&amp; (e.key == 'p' || e.key == 'P')) || e.key == 'PrintScreen') { e.preventDefault(); } }); // Impedir atalhos como Ctrl+S, Ctrl+C, Ctrl+X, Ctrl+V document.addEventListener('keydown', function(e) { if (e.ctrlKey &amp;&amp; (e.key == 's' || e.key == 'S' || e.key == 'c' || e.key == 'C' || e.key == 'x' || e.key == 'X' || e.key == 'v' || e.key == 'V')) { e.preventDefault(); } }); // Impedir a combinação Ctrl + U (para visualização do código-fonte) document.addEventListener('keydown', function(e) { if (e.ctrlKey &amp;&amp; e.key == 'u') { e.preventDefault(); } }); // Impedir a combinação Ctrl + O (abrir arquivo) document.addEventListener('keydown', function(e) { if (e.ctrlKey &amp;&amp; e.key == 'o') { e.preventDefault(); } }); // Quando o usuário tenta imprimir, ocultar o conteúdo da página window.onbeforeprint = function() { document.body.style.visibility = 'hidden'; }; // Quando a impressão termina, mostrar novamente o conteúdo da página window.onafterprint = function() { document.body.style.visibility = 'visible'; }; </script> </div></div>