How to Block HID Device Access Globally in Google Chrome

The Peripheral Exploit Vector

Google Chrome supports an advanced architecture known as the WebHID API. By default, this protocol allows complex web applications (like browser-based gaming platforms or specialized medical interfaces) to request direct, low-level, bidirectional communication with Human Interface Devices (HID) connected to your computer. This includes specialized keyboards, gamepads, VR headsets, and custom hardware controllers. While useful for niche web software, it is a significant security vulnerability. Malicious websites exploit the WebHID API to execute unauthorized commands against vulnerable legacy hardware, potentially hijacking device firmware or monitoring input telemetry without touching the operating system’s standard driver stack. You must paralyze this API.

How to Block HID Device Access Globally

You can permanently sever the browser’s ability to interface with your physical HID hardware via Chrome’s Site Settings.

  1. Open the Google Chrome desktop browser.
  2. Click the three vertical dots (â‹®) in the top right corner and select Settings.
  3. In the left-hand sidebar, click on Privacy and security.
  4. In the main window, click on Site settings.
  5. Scroll down to the “Permissions” heading and click to expand Additional permissions.
  6. Click on HID devices.
  7. Under the “Default behavior” heading, select the radio button for “Don’t allow sites to connect to HID devices.”

Total Hardware Isolation

The change takes effect instantly. Google Chrome will completely sever its internal connection to your operating system’s HID hardware enumeration daemon. The browser is now permanently blind to the specialized peripherals plugged into your machine. If an untrusted website attempts to execute a script to identify or manipulate an attached gamepad or custom keyboard, the API call will instantly auto-reject in the background, returning a null value. This guarantees absolute hardware isolation, ensuring that unverified web code remains entirely separated from your sensitive physical controllers.

Get the best tech tips delivered straight to your inbox.

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