This article is for the person who looks after the school’s computer lab. Do it once per computer, before exam day. It takes about five minutes a computer, or one setting for the whole lab if your computers are managed together.
AnySchool already records when a student leaves full screen or switches tabs. Developer tools are a part of the browser that lets someone look inside a web page and change it. Students don’t need them to sit a test, so on lab computers it is safest to switch them off. Your own laptop and the staff office computers don’t need this.
These steps are for Google Chrome, with a line for Microsoft Edge, which works the same way. Use one of those two browsers in the lab.
On one Windows computer
-
Sign in to Windows with an administrator account.
-
Press the Start button, type cmd, then right-click Command Prompt and choose Run as administrator.
-
Type this line and press Enter:
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v DeveloperToolsAvailability /t REG_DWORD /d 2 /fFor Microsoft Edge, type this line as well:
reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v DeveloperToolsAvailability /t REG_DWORD /d 2 /f -
You should see The operation completed successfully. Close every Chrome or Edge window, then open the browser again.
The 2 means “never allow”. Students can’t change it, because only an administrator can.

On many Windows computers at once
If your lab computers are on a Windows domain, set it once in Group Policy instead:
- Download the Chrome Enterprise policy templates from Google and add them to Group Policy (Google’s download page explains how).
- In the Group Policy Management Editor, open Computer Configuration, then Administrative Templates, Google, Google Chrome.
- Open Control where Developer Tools can be used, choose Enabled, then pick Disallow usage of the Developer Tools.
- Press OK. The computers pick it up the next time they restart.
Edge has the same setting under Microsoft Edge once its templates are added.
On Chromebooks
Chromebooks the school manages are set in the Google Admin console:
- Sign in at admin.google.com with the school’s admin account.
- Go to Devices, then Chrome, then Settings, then Users & browsers.
- Pick the group (organisational unit) the lab Chromebooks or student accounts are in.
- Find Developer tools, choose Never allow use of built-in developer tools, and press Save.
The Chromebooks pick it up within a few minutes, or straight away after a restart.
On Linux computers
Create the file /etc/opt/chrome/policies/managed/developer-tools.json (you need administrator rights) with this in it, then restart Chrome:
{ "DeveloperToolsAvailability": 2 }
Check that it worked
- Open Chrome on the lab computer and go to chrome://policy (in Edge, edge://policy).
- Press Reload policies. DeveloperToolsAvailability should be listed with the value 2 and the status OK.
- Open any web page and press F12, or Ctrl + Shift + I. Nothing should open.
If the setting isn’t listed, the browser was still open while you made the change: close every window and try again.
Turn it back on
On Windows, run Command Prompt as administrator and type:
reg delete "HKLM\SOFTWARE\Policies\Google\Chrome" /v DeveloperToolsAvailability /f
(use Microsoft\Edge in place of Google\Chrome for Edge). On Chromebooks, set Developer tools back to its old choice in the Admin console.
On exam day
- Use only the browser you set up. Remove other browsers from the lab computers, or hide their shortcuts.
- Sign students out of Windows accounts that have administrator rights.
- Then follow Create a test or exam to give out codes, and share Sit a test or exam with students.