No, you'd just need to remove the HID class drivers, for example. So disallow HID_DEVICE, HID_DEVICE_SYSTEM_MOUSE and HID_DEVICE_SYSTEM_KEYBOARD. This would, if I'm following Coleman's link right, ...
One of the simplest methods to disable USB ports in Windows 10 is through the Device Manager. Here’s how you can do it: Modify the Start Value: Double-click on the "Start" value and change the "Value ...
A new security feature in Apple’s upcoming macOS 13 Ventura will automatically block new USB-C devices from communicating with the operating system until the accessory can be approved by the user.