To prevent someone from accessing your webcam remotely, there are several precautions you can take:
- Check your permissions settings, as some applications flip the on/off switch
- Disable your device in the device manager settings
- Cover your webcam with tape or with a camera cover
- Disable your webcam driver
- Turn off all access to apps that you don't trust