Domain & path locking
Protect a whole domain (youtube.com) or a specific path (example.com/admin).
Site Lock intercepts navigation before page content renders and sends it to a challenge screen. Protect distractions, dashboards, or private tools with a single master password.
Protect a whole domain (youtube.com) or a specific path (example.com/admin).
Dynamic declarativeNetRequest redirect rules stop the page before any content loads.
One password, stored only as a PBKDF2 hash with a unique per-install salt.
Stay unlocked for 5 min, 15 min, 30 min, 1 hour — or for the whole browser session.
Three wrong attempts trigger Access Denied plus a 5-minute cooldown applied across all tabs.
See current tab state, unlock, protect the current site, or hit Lock Now to end a session instantly.
Adding a site stores a normalized domain/path and generates a regex filter, synced into dynamic rules by the background worker.
Navigating to a protected URL redirects the tab to the lock challenge page. The original target URL is kept in session storage.
On a valid password a high-priority allow rule is added, the unlock timestamp is saved, and an expiry alarm is scheduled.
Wrong attempts trigger a cooldown. Temporary unlock rules are removed on timeout or when you press Lock Now.
chrome://extensionsLast updated: 14 August 2026
None. Site Lock has no analytics, no telemetry, no accounts, and no remote server. Nothing you do in the extension is transmitted anywhere.
All of this lives in Chrome's storage API on your device and is removed when you uninstall the extension or reset protection.
storageSave password hash, rules and configuration.webNavigationCapture the pending navigation URL so you can be returned to it after unlocking.declarativeNetRequestCreate the redirect and allow rules that lock/unlock sites.declarativeNetRequestFeedbackDebug rule behaviour during development.alarmsSchedule session expiration timers.tabsRead the current tab context for the popup and lock page.host_permissions <all_urls>Required so you can protect any website you choose. Page content is never read or stored.Site Lock does not record, log, or transmit your browsing history. URLs are matched locally against your own rule list only at the moment of navigation.
No third-party SDKs, trackers, ads, or external network requests are included. Your data is never sold or shared, because it is never collected.
You can change your master password, remove protected sites, reset protection entirely, or uninstall the extension at any time — each of which clears the associated local data.
Questions or concerns? Open an issue at github.com/neerajdhurandher/site-lock-extension/issues.
Site Lock: Web Guard is a Manifest V3 Chrome extension that password-protects selected websites and URLs with custom site redirection, SHA-256 based authentication, and session control.
It was created to solve a simple problem: browser blockers are easy to click past. Site Lock replaces a "are you sure?" prompt with a real cryptographic challenge, so an intentional password entry is the only way through.
Open source · JavaScript, CSS & HTML · MIT-friendly workflow via GitHub.