Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

329
Vistas
I try a lot of ways to disabled console but not working. So how to disabled it?

I search on Internet about this, then i tried some ways but it not working. My code:

    <script type="text/javascript">
        (function () {

            var _z = console;
            Object.defineProperty(window, "console", {
                get: function () {
                    if (_z._commandLineAPI) {
                        throw "Sorry, Can't execute scripts!";
                    }
                    return _z;
                },
                set: function (val) {
                    _z = val;
                }
            });

        })();
    </script>

this way not working too!

    <script type="text/javascript">
        window.console.log = function () {
            console.error('Sorry , developers tools are blocked here....');
            window.console.log = function () {
                return false;
            }
        }
    </script>

First I think my browser isn't supporting this code or disabled this, then I try other browser but they aren't working

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You cannot do anything about the console or developer tools in general as they are on the client side. Those above used to work, but no longer do since ES6.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda