The other way is a PC specific solution where some registry edits are required to any computer the USB flash drive is connected to. One method will make the USB read-only in anything it is connected to, so you could say this is a universal way of making a flash drive write protected.
There are two ways to make a USB stick read only.