It's not enforced by the card. It's just a plastic tab that slides so as to tell the reader that the card should not be written. There is nothing to stop a malicious reader from writing to a write-protected card.
The switch as-is prevents the file system from becoming corrupt when you don't "safely remove" the device, and that's plenty enough for the average photographer.