Network blocking
Declarative Net Request (DNR) blocks phishing, malware, ads/trackers, crypto miners, downloads, beacons from synced lists.
Chrome + Firefox (Mozilla) · MV3
CloFix Shield browser extension - phishing, malware, trackers, privacy, file/picture guard, and more.
Same product surface on Google Chrome and Mozilla Firefox. Sign in with @gmail.com or @clofix.com, turn Protection ON, sync signed threat rules.
What the extension does across both browsers.
Declarative Net Request (DNR) blocks phishing, malware, ads/trackers, crypto miners, downloads, beacons from synced lists.
Content scripts scan links, forms, popups, clipboard, fingerprint noise, fake login heuristics, SVG/file open.
Google login, trial/plan status in popup, Sync rules from license server every 6h + manual Sync.
Unpacked for development; packed zip for distribution.
chrome://extensionsbrowser-extension/dist/clofix-shield-chrome.zipbash browser-extension/scripts/pack.shabout:debugging#/runtime/this-firefoxdist/firefox/manifest.jsondist/clofix-shield-firefox.zipProtection stays off until Google sign-in. Popup shows CloFix Shield + trial remaining when status is trialing.
Options → Protections. Toggle each item. Default ON when Protect is active; Protect OFF allows all. States: full block, partial, or detection/warn.
| # | Feature | State | What it does | How |
|---|---|---|---|---|
| 1 | Ad & Tracker Blocking | Implemented | Blocks ad/tracker hosts and known tracker networks. | DNR + synced tracker_domains / analytics |
| 2 | Phishing Protection | Implemented | Blocks phishing domains; interstitial on navigation match. | DNR + phishing_domains + content link scan |
| 3 | Malicious Website Blocking | Implemented | Blocks malware / C2 style hosts from admin lists. | DNR + blocked_domains |
| 4 | Cross-site Tracking | Partial | Hardens third-party tracking via privacy APIs / cookie strip where available. | Privacy settings + DNR helpers |
| 5 | Cryptojacking Protection | Implemented | Blocks known cryptomining script hosts. | DNR + cryptomining_domains |
| 6 | Malicious Script Blocking | Implemented | Blocks known malicious script delivery hosts. | DNR script resource types |
| 7 | Pop-up & Redirect Protection | Partial | Soft-blocks suspicious window.open / bad popup protocols; adds noopener. |
page-inject + page-guards |
| 8 | Dangerous Download Protection | Implemented | Blocks hosts known for malicious downloads. | DNR + download_block_domains |
| 9 | Browser Fingerprint Protection | Partial | Best-effort canvas/WebGL noise when Protect ON. | fingerprint.js |
| 10 | WebRTC IP Leak Protection | Implemented | Sets WebRTC IP handling policy to reduce local IP leaks. | privacy.network API |
| 11 | Tracking URL Cleaner | Partial | Strips common tracking query params on navigations. | DNR queryTransform |
| 12 | Malicious Form Protection | Detection | Warns / soft-blocks suspicious cross-domain form posts. | page-guards submit hook |
| 13 | Fake Login Detection | Detection | Heuristics for brand lookalike login pages; toast warn. | page-heuristics.js |
| 14 | Clickjacking Protection | Detection | Detects large invisible overlays / suspicious iframes. | page-guards heuristics |
| 15 | Browser Notification Protection | Partial | Blocks spammy Notification permission patterns when Protect ON. | MAIN world hook |
| 16 | Malvertising Protection | Implemented | Blocks known malvertising / shady ad hosts. | DNR extra host lists |
| 17 | HTTPS Upgrade | Implemented | Upgrades http→https where DNR upgradeScheme applies. | DNR (Firefox may vary) |
| 18 | Web Beacons Blocking | Implemented | Blocks beacon / pixel hosts; reduces hyperlink auditing where possible. | DNR + privacy prefs |
| 19 | Suspicious Extension Monitoring | Partial | Lists installed extensions with risky permission hints. | management API |
| 20 | Privacy Leak Protection | Detection | Warns when sensitive forms post toward tracker-like hosts. | page-guards |
| 21 | Clipboard Hijack Detection | Detection | Detects crypto-address swap patterns on copy/paste. | page-guards |
| 22 | Password Reuse & Leak Warning | Detection | Optional warn on password fields over plain HTTP. | page-guards |
| 23 | File / Picture Guard | Implemented | If a pic/file embeds script, URL, or tracker - block open (no click-through). | file-embed-guard + background scan + SVG park |
| 24 | Private Network Access Guard | Implemented | Blocks public pages from calling localhost / private IPs (fetch/XHR). | page-inject MAIN hooks |
| 25 | OAuth Phishing Protection | Detection | Detects fake OAuth / consent pages that impersonate brands on untrusted hosts. First-party IdP sites (e.g. *.google.com incl. Gmail, Microsoft, Apple, GitHub) are trusted - no false toast on real login/consent pages. |
advanced-guards heuristics |
| 26 | Homograph Domain Protection | Detection | Punycode / mixed-script lookalike hostnames. | advanced-guards |
| 27 | QR Code Phishing Protection | Partial | QR-labeled images/links checked against threat intel. | advanced-guards + CHECK_URLS |
| 28 | Browser Permission Guard | Implemented | Blocks camera / mic / geolocation prompts when armed. | page-inject |
| 29 | WebSocket Threat Protection | Implemented | Blocks WebSocket to private / localhost from public pages. | page-inject |
| 30 | Service Worker Abuse Detection | Detection | Flags suspicious / cross-origin service workers. | advanced-guards |
| 31 | Fake CAPTCHA Protection | Detection | Detects Win+R / PowerShell copy-paste CAPTCHA scams. | advanced-guards |
| 32 | Fake Browser Update Protection | Partial | Fake update pages + suspicious installer downloads. | advanced-guards |
| 33 | Banking Protection Mode | Partial | Stricter checks on bank-like pages (HTTPS / lookalike). | advanced-guards + banking lookalike |
| 34 | Payment Redirect Protection | Detection | Warns on external payment / checkout destinations. | advanced-guards |
| 35 | Sensitive Upload Protection | Implemented | Blocks uploads of keys / wallets / secrets by filename. | advanced-guards |
| 36 | Image Metadata Protection | Detection | Warns when JPEG/TIFF uploads contain GPS/EXIF. | advanced-guards |
| 37 | File Signature Verification | Implemented | Extension vs magic-byte mismatch on uploads. | advanced-guards |
| 38 | SVG Threat Protection | Implemented | Inline SVG script scrub + SVG upload script block (pairs with #23). | advanced-guards + #23 |
| 39 | Browser Storage Risk Detection | Detection | localStorage keys that look like tokens/secrets. | advanced-guards |
| 40 | Tabnabbing Protection | Implemented | Adds rel=noopener noreferrer on target=_blank. |
advanced-guards / page-heuristics |
| 41 | AI Scam Website Detection | Detection | Fake shopping / investment / giveaway copy heuristics. | advanced-guards |
| 42 | Threat Intelligence Protection | Implemented | Applies synced malicious domain reputation rules. | rules sync + matchThreat / DNR |
| 43 | Website Security Inspector | Implemented | Auto Inspect (Protect ON) + Deep Inspect (20 scanners: URL/links/images/JS/HTML/ads/trackers/phishing/malware/forms/downloads/redirects/iframes/CSS/QR/WebSocket/cookies/clipboard/risk). Live monitor, quarantine, evidence, export HTML/PDF, per-site trust, right-click element inspect. | site-inspect.js + scanners.js + inspect-report |
Additional category toggles and helpers in Options.
rel=noopener hardenGoogle sign-in required for protection.
Chrome and Firefox both pull the same signed public pack.
GET /v1/threat-intel/ruleshttps://shield.clofix.comRULES_SYNC_TOKEN (no dashboard login)Any pic/file open path - script, URL bind, or tracker inside → block.
<script>, javascript:, onload, macros, shell markers.
Embedded http(s)/data links in SVG, EXIF/polyglot, docs (xmlns skipped).
GA, GTM, DoubleClick, FB pixel, Hotjar, threat-list tracker hosts.
cd browser-extension/test && python3 -m http.server 8765 → http://127.0.0.1:8765/file-embed-guard-demo.htmlBrowser extensions cannot do everything a VPN / OS firewall can.
| Area | Path |
|---|---|
| Background / DNR / sync | browser-extension/background.js |
| DNR builder | browser-extension/engines/network/dnr-builder.js |
| Inline link scan | browser-extension/content.js |
| Page guards | browser-extension/engines/threats/page-guards.js |
| Advanced guards #24-43 | browser-extension/engines/threats/advanced-guards.js |
| File/picture guard | browser-extension/engines/threats/file-embed-guard.js |
| Content bridge (port / bfcache) | browser-extension/shared/content-bridge.js |
| Options UI | browser-extension/chrome-options.html |
| Popup | browser-extension/popup.html |
| Blocked interstitial | browser-extension/blocked.html |
| Chrome manifest | browser-extension/manifest.json |
| Firefox manifest | browser-extension/manifest.firefox.json |
| Pack script | browser-extension/scripts/pack.sh |