You can disable the interface that is used to connect the device to the scanner. Make the restriction settings to restrict scanning other than via network.
You can also make the restriction settings on the scanner's control panel.
PC Connection via USB : Settings > Basic Settings > PC Connection via USB
Access Web Config and select the Product Security tab > External Interface.
Select Disable on the functions you want to set.
Select Enable when you want to cancel controlling.
PC Connection via USB
You can restrict the usage of the USB connection from the computer. If you want to restrict it, select Disable.
Click OK.
Check that the disabled port cannot be used.
PC Connection via USB
If the driver was installed on the computer
Connect the scanner to the computer using a USB cable, and then confirm that the scanner does not scan.
If the driver was not installed on the computer
Windows:
Open the device manager and keep it, connect the scanner to the computer using a USB cable, and then confirm that the device manager's display contents stays unchanged.
Mac OS:
Connect the scanner to the computer using a USB cable, and then confirm that you cannot add the scanner from Printers & Scanners.