In hardware I don't know, but for Windows (SP2 and above) just change a registry key.
Start the registry editor (regedit.exe).
- Navigate to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageD evicePolicies subkey. (Create the StorageDevicePolicies subkey if it doesn't already exist.)
- From the Edit menu, select New, DWORD Value.
- Type the name WriteProtect and press Enter.
- Double-click the new value and set it to 1. Click OK.
- Close the registry editor.
- Restart the computer.
Or you can use Thumbscrew -
Thumbscrew: Software USB Write Blocker - to do it for you.
Obviously, anyone who knows the trick can reverse it, but for casual snoopers this may be enough. Hardly secure in the real sense though.
Mac