Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

323
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!