WinLock is a professional-grade, minimalist security utility for Windows 11. It is designed to protect specific applications (Browsers) with a modern passcode interface that feels native to the OS. Built with Python and CustomTkinter, it features a Windows 11 Fluent Design UI that automatically adapts to your system's Light or Dark mode.
Important
The default password is 1234 if you have mistakenly run the project without seeing the documentation.
- Strict Lockdown: Full-screen solid UI prevents unauthorized viewing, minimizing, or Alt-Tabbing until the correct PIN is entered.
- Adaptive UI: Seamlessly switches between Light and Dark mode based on your Windows system settings.
- Individual App Security: Smart tracking allows you to lock Chrome, Edge, Brave, and Opera individually. Unlocking one does not automatically unlock the others.
- Win+L Protection: Integrated with Windows system calls; automatically re-locks all protected applications the moment you lock your Windows workstation.
- Auto-Startup Service: Self-registers in the Windows Registry to start automatically in the background upon login.
- Session-Based Memory: Once unlocked, a browser stays open until you close it or lock your PC.
- Python (Core Logic)
- CustomTkinter (Modern Fluent UI)
- Psutil (Process Monitoring)
- Winreg (Windows Registry Integration)
- Ctypes (System-level Lock Detection)
WinLock-Windows-AppLocker/
β
βββ main.pyw # Main application logic & UI
βββ README.md # Project documentation
- main.pyw: The entry point. Using the
.pywextension ensures the app runs silently in the background without a command prompt window.
To customize your security settings, open main.pyw in any text editor:
- Change Passcode: Edit line 11:
SECRET_CODE = "your_new_pin"
- Add More Apps: Edit the
TARGET_APPSlist on line 10 to include any other.exeprocess you wish to protect.
To run this project locally:
-
Clone the repository:
git clone https://github.com/saad-shaikh-256/WinLock-Windows-AppLocker.git
-
Navigate to the project folder:
cd WinLock-Windows-AppLocker -
Install required dependencies:
pip install customtkinter psutil
-
Launch the application: Double-click
main.pywfrom your file manager.
Note: On the first run, the app will automatically register itself to start with Windows. You do not need to run it manually again.
To remove WinLock from your system:
- Open Task Manager (
Ctrl + Shift + Esc). - Find
pythonw.exe, right-click it, and select End Task. - Open Registry Editor (
Win + R, typeregedit). - Navigate to:
HKCU\Software\Microsoft\Windows\CurrentVersion\Run. - Delete the entry named
WinLockApp.
- Multi-user passcode support.
- Custom background blur effects (Glassmorphism).
- Mobile remote-unlock integration.
- Forgotten PIN recovery via email.
- Developed by Saad Shaikh
WinLock is provided for personal security and educational purposes. While it provides a strong deterrent, it is not a replacement for full-disk encryption (BitLocker) or robust Windows user account passwords. The developer is not responsible for any locked access due to forgotten PINs.