How to Completely Disable ‘Chrome DevTools’ (F12 Developer Tools) for Standard Users

Google Chrome features a massively powerful suite of debugging instruments known as Chrome DevTools. By simply pressing the F12 key (or right-clicking and selecting “Inspect”), any user can rip open a website, modify its local HTML, inject custom JavaScript into the console, and spoof network requests.

While this is an absolute necessity for web developers, it is a severe security risk in educational environments, corporate networks, or public kiosks. Students frequently use the F12 tools to modify their grades on school portals (by locally editing the HTML), and malicious actors can use the console to paste credential-stealing scripts provided by scammers (a technique known as Self-XSS). If you administer computers for non-developers, you should completely disable Chrome DevTools to prevent tampering.

Disabling DevTools via the Windows Registry

You can permanently lock the Developer Tools out of the browser by creating a strict policy key in the Windows Registry.

  1. Press the Windows Key + R on your keyboard to open the Run dialogue box.
  2. Type regedit and press Enter. (Click Yes if prompted by User Account Control).
  3. Navigate the left-hand sidebar to this exact path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies
  4. Right-click the Policies folder, select New, and click Key. Name it Google.
  5. Right-click the new Google folder, select New, and click Key again. Name it Chrome.
  6. Click on the Chrome folder to highlight it. In the blank white space on the right, right-click, select New, and choose DWORD (32-bit) Value.
  7. Name this new value exactly DeveloperToolsAvailability.
  8. Double-click on DeveloperToolsAvailability and change the “Value data” to 2.
    • (Note: A value of 0 means allowed, 1 means allowed except for force-installed extensions, and 2 means completely disabled).
  9. Click OK and close the Registry Editor.

Verifying the Lockdown

You must close all open instances of Google Chrome and restart the browser for the policy to apply. Once reopened, attempt to press the F12 key. Nothing will happen. Try right-clicking on any webpage; you will see that the “Inspect” option has completely vanished from the context menu. The browser is now fully locked down, preventing users from tampering with local website code or injecting unauthorized scripts.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.