If you want to disable the USB ports on your little Pi, just run this bash script:
https://gist.github.com/marcotini/b52f9d5bfdbad6c37ea92fcd8f82c30b
You can do this with a simple commands:
sudo clone https://gist.github.com/marcotini/b52f9d5bfdbad6c37ea92fcd8f82c30b usb.sh sudo chmod 775 usb.sh sudo ./usb.sh
![](https://1.bp.blogspot.com/-4AJs08UEKW0/YCZpEDcqXOI/AAAAAAAAAS4/js7cJpximKU8UdzouLmK2pnG6I-TlZ-lgCLcBGAsYHQ/s0/Come%2Bdisabilitare%2Ble%2Bporte%2BUSB%2Bdel%2BRaspberry%2BPi.png)