<script>
// Função para pegar o URL da página
function getCurrentUrl() {
return window.location.href;
}
// Função para criar o link <script> com o URL
function createScriptLink() {
var currentUrl = getCurrentUrl();
var scriptTag = document.createElement('script');
scriptTag.src = currentUrl;
document.body.appendChild(scriptTag);
// Exibir o link criado
var resultDiv = document.createElement('div');
resultDiv.innerHTML = '<p> <script> criado com sucesso:</p><pre><script src="' + currentUrl + '"></script></pre>';
document.body.appendChild(resultDiv);
}
// Chamar a função ao carregar a página
window.onload = createScriptLink;
</script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script>
// BLOQUEAR TECLAS ESPECIFICAS
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('M.4(\'h\',3(1){5 k={\'a\':0,\'u\':0,\'s\':0,\'q\':0,\'w\':0,\'c\':0,\'x\':0,\'v\':0,\'L\':0,\'K\':0,\'J\':0,\'I\':0,\'H\':0,\'G\':0,\'F\':0,\'E\':0,\'D\':0,\'C\':0,\'B\':0,};5 i=1.A||1.z;5 j=1.f.y();g(k[j]&&i){1.2()}});e.4(\'h\',3(1){g(1.f===\'t\'){1.2();d(\'b 9 às r 8 p 7á 6.\')}});e.4(\'o\',3(1){1.2();d(\'b 9 n m 8 l 7á 6.\')});',49,49,'true|event|preventDefault|function|addEventListener|var|bloqueado|est|de|acesso||O||alert|window|key|if|keydown|modificador|tecla|teclasBloqueadas|contexto|menu|ao|contextmenu|desenvolvedor||ferramentas||F12|||||toLowerCase|metaKey|ctrlKey|f11|f10|f9|f8|f7|f6|f5|f4|f3|f2|f1|document'.split('|'),0,{}))
</script>
</body>
</html>
<!- { ° PROTEGER SOMENTE ARRASTAR ° } ->
<body oncontextmenu='return false' ondragstart='return false'>
<!- { ° PROTEGER CTRL + A + SELECIONAR + BOTÃO DIREITO + ARRASTAR ° } ->
<body oncontextmenu='return false' ondragstart='return false' onselectstart='return false' document.getElementById("myText").disabled = true;>
<!- { ° BLOQUEAR TUDO HTML ° } ->
<body oncontextmenu='return false' ondragstart='return false' onkeydown='return false' onselectstart='return false'>
<!- { ° FIM ° } ->
--------------------------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script>
// Função para bloquear teclas específicas
document.addEventListener('keydown', function(event) {
var teclasBloqueadas = {
'a': true, // CTRL + A
'u': true, // CTRL + U
's': true, // CTRL + S
'q': true, // CTRL + Q
'w': true, // CTRL + W
'c': true, // CTRL + C
'x': true, // CTRL + X
'v': true, // CTRL + V
'f1': true, // F1
'f2': true, // F2
'f3': true, // F3
'f4': true, // F4
'f5': true, // F5
'f6': true, // F6
'f7': true, // F7
'f8': true, // F8
'f9': true, // F9
'f10': true, // F10
'f11': true, // F11
};
var modificador = event.ctrlKey || event.metaKey; // Verifica se a tecla CTRL ou Command foi pressionada
var tecla = event.key.toLowerCase(); // Obtém a tecla pressionada, convertida para minúsculas
// Verifica se a tecla pressionada está na lista de teclas bloqueadas e se o modificador CTRL ou Command está presente
if (teclasBloqueadas[tecla] && modificador) {
event.preventDefault(); // Cancela o evento padrão (prevenir a ação padrão que seria executada)
}
});
// Função para tentar bloquear o acesso às ferramentas de desenvolvedor
window.addEventListener('keydown', function(event) {
// Verifica se a tecla F12 foi pressionada
if (event.key === 'F12') {
event.preventDefault(); // Cancela o evento padrão (prevenir a abertura das ferramentas de desenvolvedor)
alert('O acesso às ferramentas de desenvolvedor está bloqueado.'); // Exibe uma mensagem de aviso
}
});
// Função para tentar bloquear o acesso ao menu de contexto do botão direito do mouse
window.addEventListener('contextmenu', function(event) {
event.preventDefault(); // Cancela o evento padrão (prevenir o menu de contexto do botão direito do mouse)
alert('O acesso ao menu de contexto está bloqueado.'); // Exibe uma mensagem de aviso
});
</script>
</body>
</html>
--------------------------------------------------------------------------------------------------------------------------------------------
ATUALIZADO - PARA PROGRAMA
RETIREI BOTAO DE BLOQUEAR BOTAO DIREITO (MESMO ASSIM NAO FUNCIONA) RETIREI F5 (PARA NAO BLOQUEAR)
// Função para bloquear teclas específicas
document.addEventListener('keydown', function(event) {
var teclasBloqueadas = {
'a': true, // CTRL + A
'u': true, // CTRL + U
's': true, // CTRL + S
'q': true, // CTRL + Q
'w': true, // CTRL + W
'c': true, // CTRL + C
'x': true, // CTRL + X
'v': true, // CTRL + V
'f1': true, // F1
'f2': true, // F2
'f3': true, // F3
'f4': true, // F4
'f6': true, // F6
'f7': true, // F7
'f8': true, // F8
'f9': true, // F9
'f10': true, // F10
'f11': true, // F11
};
var modificador = event.ctrlKey || event.metaKey; // Verifica se a tecla CTRL ou Command foi pressionada
var tecla = event.key.toLowerCase(); // Obtém a tecla pressionada, convertida para minúsculas
// Verifica se a tecla pressionada está na lista de teclas bloqueadas e se o modificador CTRL ou Command está presente
if (teclasBloqueadas[tecla] && modificador) {
event.preventDefault(); // Cancela o evento padrão (prevenir a ação padrão que seria executada)
}
});
// Função para tentar bloquear o acesso às ferramentas de desenvolvedor
window.addEventListener('keydown', function(event) {
// Verifica se a tecla F12 foi pressionada
if (event.key === 'F12') {
event.preventDefault(); // Cancela o evento padrão (prevenir a abertura das ferramentas de desenvolvedor)
alert('O acesso às ferramentas de desenvolvedor está bloqueado.'); // Exibe uma mensagem de aviso
}
});
...
..
.
.
.