How to Block MIDI Device Access Globally in Google Chrome

The Hardware Exploit Vector

Google Chrome supports an advanced API known as Web MIDI. This API allows web applications (like online synthesizers or browser-based audio workstations) to bypass standard operating system drivers and communicate directly with physical MIDI instruments plugged into your computer. While incredible for digital musicians, it is a significant security vulnerability for the average user. Malicious websites can exploit this direct bridge to silently probe your computer for vulnerable hardware or attempt to execute unencrypted firmware commands via the MIDI protocol. If you do not produce music in your browser, you must paralyze this API.

How to Block MIDI Device Access Globally

You can permanently sever the browser’s ability to interface with your physical audio 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 MIDI devices.
  7. Under the “Default behavior” heading, select the radio button for “Don’t allow sites to connect to MIDI devices.”

Total Physical Isolation

The change takes effect instantly. Google Chrome will completely sever its internal connection to your operating system’s raw MIDI driver stack. The browser is now permanently blind to any synthesizers or controllers physically plugged into your machine. If a website attempts to execute a Web MIDI script to scan your ports, the API call will instantly auto-reject in the background, returning a null value. This guarantees absolute physical isolation between unverified web code and the vulnerable audio peripherals attached to your computer.

Get the best tech tips delivered straight to your inbox.

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