A simple Windows app to block and unblock your webcam. Useful for privacy when you don't want the camera on.
- Disables your camera with one click
- Re-enables it when you need it
- Works with any webcam (built-in laptop cameras, USB webcams, etc.)
- Has an emergency recovery mode if something goes wrong
- Make sure you have Python 3 installed
- Right-click
hp_camera_blocker.pyand run as Administrator - Click "Disable" to turn off camera, "Enable" to turn it back on
- Run
build_and_update.batas Administrator - This creates
HP CamBlock.exeinC:\Program Files\HP CamBlock\ - Shortcut gets added to your desktop
Sometimes Windows Camera Frame Server service gets stuck. Run these as Admin:
camera_recovery.py- Fixes most issues automaticallykill_and_restart_service.py- Forcefully kills stuck service if recovery fails
- Windows 10 or 11
- Administrator privileges (required to control camera devices)
- Python 3.x (if running from source)
Works with pretty much any camera:
- HP TrueVision HD (what I originally made this for)
- Logitech webcams
- Dell laptops
- Lenovo cameras
- Any USB webcam that shows up in Device Manager
It detects cameras by name patterns like "camera", "webcam", "truevision", etc.
- Uses PowerShell to enable/disable PnP devices
- Stops/starts Windows Camera Frame Server service
- Clears registry blocks in Windows camera privacy settings
- Windows Camera Frame Server can get stuck in "Stop Pending" state
- Some camera apps need to be restarted after enabling camera
- If recovery scripts don't work, a PC restart usually fixes it
This modifies system services and device states. Use at your own risk. The recovery tools should fix any issues but no guarantees.