Blocks access to distracting websites you specify, helping you stay focused and productive.
- Block any website by adding its URL
- See a list of all blocked sites
- Clear all blocked sites with one click
- Friendly UI and motivational block page
- No data leaves your browser (privacy-friendly)
- Clone or Download this Repository
- Click the green
Codebutton on GitHub and selectDownload ZIPor use:git clone https://github.com/your-username/site-blocking-extension.git
- Click the green
- Open Chrome and go to
chrome://extensions/ - Enable Developer Mode (toggle in the top right)
- Click "Load unpacked" and select the folder where you cloned/downloaded this repo
- The extension should now appear in your Chrome extensions bar
- Click the extension icon in your browser toolbar
- In the popup:
- Enter the website you want to block (e.g.,
facebook.comorhttps://twitter.com) - Click
Addto block the site - Blocked sites will appear in the list below
- Click
Clear Allto remove all blocked sites
- Enter the website you want to block (e.g.,
- When you try to visit a blocked site, you'll see a motivational block page instead
| Popup UI | Block Page |
|---|---|
![]() |
![]() |
- Manifest Version: 3
- Main Files:
background.js— Handles blocking logicpopup.html,popup.js,popup.css— User interfacefocus.html— Shown when a blocked site is accessed
- Icons: Located in
images/
- Edit
background.jsfor blocking rules - Edit
popup.html/popup.js/popup.cssfor the popup interface - Edit
focus.htmlfor the block page
MIT (or specify your license here)
Made with ❤️ by Ankit Singh
