A Chrome extension that blocks users from navigating to sites they've added to their personal block list.
- Block specific domains from being accessed
- Set optional time ranges for when sites should be blocked
- Enable/disable blocking for specific sites
- User-friendly interface for managing blocked sites
- Customizable blocking page with visual feedback
- Clone or download this repository to your local machine
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode" using the toggle in the top-right corner
- Click "Load unpacked" and select the directory containing this extension
- Generate the icon files using the included icon generator (see below)
Before using the extension, you need to generate the icon files:
- Open the
icon-generator.html
file in a web browser - Click the "Download Icon" button for each icon size (16x16, 48x48, and 128x128)
- Save the downloaded icons to the
images
folder in the extension directory
- Click on the Site Blocker extension icon in your browser toolbar
- Click the "Add Site" button
- Enter the domain name you want to block (e.g., facebook.com)
- Optionally set a specific time range when the site should be blocked
- Make sure the "Enabled" checkbox is checked
- Click "Save"
- Click on the Site Blocker extension icon in your browser toolbar
- Find the site you want to edit in the list
- Click the "Edit" button
- Modify the domain, time range, or enabled status as needed
- Click "Save" to update, or "Delete" to remove the site from your blocklist
When you attempt to navigate to a blocked site:
- The extension checks if the site is on your blocklist
- If the site is enabled and the current time is within the specified time range (if any)
- If both conditions are met, you'll be redirected to a block page showing a "no" message
manifest.json
: Extension configurationpopup.html/js
: Main popup UI and functionalityadd.html/js
: UI for adding new sitesedit.html/js
: UI for editing existing sitesbackground.js
: Background script for blocking functionalitystyles.css
: Styling for the extension UIimages/
: Directory containing extension iconsicon-generator.html
: Tool to generate extension icons
This project is open source and available for personal use.