A Chrome extension that provides real-time protection against phishing, malware, payment redirect fraud, and credential-harvesting forms.
- Google Safe Browsing - Every URL checked against Google's threat database (malware, phishing, unwanted software)
- URL heuristics - Catches dangerous URLs before DNS resolves: bare IPs, lookalike domains (paypa1.com), punycode, high-risk TLDs (.tk/.ml/.ga), brand-in-subdomain attacks, fake TLDs in the middle of hostnames, and the @ trick
- Payment redirect interception - Hooks
window.locationto block silent redirects to PayPal, Stripe, Coinbase, etc. - Form hijack detection - Scans login forms whose action submits credentials to a foreign domain
- Session bypass list - 24-hour auto-expiring bypasses for sites you choose to visit anyway
- Permanent whitelist - Domains you trust are never checked again
- Block history - Full log with threat type labels and timestamps in the popup
chrome extension/
|- background.js # Service worker: heuristics, Safe Browsing, bypass/whitelist logic
|- content.js # Injected into pages (ISOLATED world)
|- interceptor.js # Payment redirect hook (MAIN world)
|- form-scanner.js # Cross-origin form action scanner (ISOLATED world)
|- warning.html/js # Threat warning page shown on block
|- popup.html/js # Extension popup: tally, history, bypass and whitelist management
|- manifest.json
|- config.js # API key and proxy secret (gitignored)
|- icons/ # Extension icons (16, 32, 48, 128 px)
|- extension-tests/ # Local test pages for every detection type
|- store-assets/ # Chrome Web Store listing copy and packaging script
|- site/ # Vercel proxy (forwards to Google Safe Browsing API)
- Clone the repo.
- Copy
config.js.exampletoconfig.js(or create it) and fill in your Safe Browsing API key and proxy secret:
const CONFIG = {
API_KEY: "YOUR_SAFE_BROWSING_KEY",
PROXY_URL: "https://chrome-extension-nu-eight.vercel.app/api/check",
PROXY_SECRET: "YOUR_PROXY_SECRET",
};- Load the extension in Chrome:
chrome://extensions> Enable Developer mode > Load unpacked > select this folder.
The site/ directory is a Vercel serverless function that proxies requests to the Google Safe Browsing API. The DETECTOR_TOKEN environment variable must be set in Vercel to match the PROXY_SECRET in config.js. The token is validated server-side and never exposed to the client.
