Islamic Content Guard for Chromium-based Browsers
Hifazat is an open-source browser extension designed to help users voluntarily avoid configured websites and search terms by replacing them with a calm, distraction-free reminder inspired by Surah Al-Isra (17:32).
Built with Manifest V3, the extension performs all processing locally on the user's device without transmitting browsing data to external servers.
Rather than loading configured websites or search results, Hifazat displays a full-screen reminder featuring the verse:
وَلَا تَقْرَبُوا الزِّنَىٰ
"And do not approach unlawful sexual intercourse. Indeed, it is ever an immorality and is evil as a way."
Surah Al-Isra (17:32)
The reminder screen includes optional Quran recitation, customizable settings, and a minimalist interface designed to reduce distraction.
- Configurable website filtering
- Search keyword detection
- Custom keyword and domain lists
- Full-screen reminder interface
- Optional Quran recitation
- Local protection statistics
- Offline configuration support
- Privacy-first architecture
- Manifest V3 compatible
hifazat/
├── manifest.json
├── background.js
├── content.js
├── blocklist.js
├── blocked/
├── options/
├── icons/
├── images/
└── README.md
Clone the repository:
git clone https://github.com/<your-username>/hifazat.gitOpen:
chrome://extensions
Then:
- Enable Developer Mode
- Select Load unpacked
- Choose the project folder
The extension analyzes browser navigation using multiple signals:
- Configured domains
- Search query parameters
- Configured keywords
- Page content (where applicable)
When a configured match is detected, the destination page is replaced with the reminder screen.
Processing is performed locally. No browsing history or page content is uploaded to external servers.
- HTML5
- CSS3
- Vanilla JavaScript
- Chrome Extensions API
- Manifest V3
Hifazat is designed with a privacy-first approach.
- No analytics
- No telemetry
- No external database
- No user accounts
- No cloud synchronization
- Local storage only
- Multiple recitation options
- Additional language support
- Theme customization
- Import and export settings
- Firefox compatibility
- Accessibility improvements
Contributions, feature requests, and bug reports are welcome.
Please open an issue before submitting significant changes.
This project is released under the MIT License.