A powerful Chrome extension designed to protect users by detecting and blocking access to harmful websites while providing real-time SMS notifications to guardians or administrators.
-
Blocks access to harmful websites including:
- Gambling and betting sites
- Adult content
- Drug-related content
- TikTok and similar platforms
- Other restricted content
-
Real-time monitoring and alerts:
- SMS notifications when blocked sites are accessed
- User fingerprinting for accurate tracking
- Works even in incognito mode
- Detailed access logs
-
User-friendly interface:
- Clear blocking notifications
- Detailed reason for site blocking
- Easy-to-use admin panel
- Clone this repository:
git clone https://github.com/yourusername/restricted-site-detector.git-
Configure the extension:
- Open
background.js - Replace
YOUR_API_KEYwith your Tilil Technologies API key - Update the phone number for SMS notifications
- Open
-
Load the extension in Chrome:
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" at the top right
- Click "Load unpacked"
- Select the extension directory
- Open Chrome and go to
- Sign up for a Tilil Technologies account
- Get your API key from the dashboard
- Update the config in
background.js:
const SMS_API_CONFIG = {
baseUrl: "https://api.tililtech.com/sms/v3/sendsms",
apiKey: "YOUR_API_KEY",
shortcode: "Tilil"
};You can modify the blocked sites in background.js. Find the rules section and add or modify as needed:
{
id: [number],
priority: 1,
action: { type: "block" },
condition: {
urlFilter: "*your-site-pattern*",
resourceTypes: ["main_frame"]
}
}- Install the extension
- Configure the phone number for notifications
- Monitor the extension icon for alerts
- Check the logs in the popup panel
When attempting to access a restricted site:
- A popup will appear explaining why the site is blocked
- The administrator will receive an SMS notification
- The access attempt will be logged
restricted-site-detector/
├── manifest.json # Extension configuration
├── background.js # Main extension logic
├── popup.html # Extension popup interface
├── content.js # Content scripts
├── blocked.html # Blocking notification page
├── dist/ # Bundled files
└── icons/ # Extension icons
- FingerprintJS for user tracking
- Tilil Technologies API for SMS
- Chrome Extension APIs
The extension requires these permissions:
- Storage
- ActiveTab
- Scripting
- WebRequest
- DeclarativeNetRequest
- Notifications
Common issues and solutions:
-
SMS not sending:
- Check your API key
- Verify internet connection
- Ensure correct phone number format
-
Sites not blocking:
- Reload the extension
- Check console for errors
- Verify rules are properly configured
-
Popup not showing:
- Check if Chrome is blocking popups
- Verify HTML files are in correct location
- Check console for error messages
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.