How I built a fast, ad-free cybersecurity toolkit with Astro, Cloudflare, and a "no-trackers" test suite
I got tired of using DNS, email security, and URL checking tools that are bloated with ads, cookie banners, and third-party trackers—especially when you're pasting domains or checking potentially sensitive data. So I bu
I got tired of using DNS, email security, and URL checking tools that are bloated with ads, cookie banners, and third-party trackers—especially when you're pasting domains or checking potentially sensitive data.
So I built NetSecTools: a fast, lightweight suite of web and security diagnostic utilities designed to do one job cleanly without storing logs or setting ad cookies.
What's included so far
- Email Security Checker: Inspects SPF and DMARC records.
- HTTP Security Headers Checker: Audits response headers for common misconfigurations.
- DNS Lookup: Queries DNS records using DNS-over-HTTPS (DoH).
- Suspicious URL Analyzer: Helps evaluate links before opening them.
- Password / Breach Checks: Uses Have I Been Pwned's k-anonymity model so full hashes never leave your browser.
The Architecture: Astro + Cloudflare
To keep the site fast and nearly zero-cost to run, I built it with Astro and deployed it on Cloudflare Pages & Workers:
- Everything runs client-side whenever possible (using DoH resolvers and native browser APIs).
- Lightweight Cloudflare Workers handle only the checks that require server-side fetches.
- No database, no user accounts, and no server-side query logging.
Enforcing "No Trackers" in CI
Originally, I had Google Analytics and a cookie consent banner like most sites. Before launching, I realized that contradicted the whole point of a privacy-first security tool, so I ripped them both out completely—no gtag, no dataLayer, no Set-Cookie headers, and no consent banner.
For basic traffic stats, I switched to Cloudflare Web Analytics (cookie-less, no cross-site tracking).
To make sure tracking scripts never sneak back in during future updates, I locked down public/_headers with a strict Content-Security-Policy (CSP) and added a dedicated no-trackers.test.ts file to my test suite (696 tests total). It runs 20 automated checks before every deploy to catch:
- Tracking domains in the CSP headers
- Any reference to
gtag,googletagmanager, ordocument.cookie - Unexpected
localStoragekeys (only the light/dark theme preference is allowed) - Leftover consent banner components
(Full transparency: Cloudflare serves the site and handles cookie-less analytics, DoH resolvers receive the queried domain, and HIBP receives the first 5 characters of a SHA-1 hash. Everything is documented clearly in the privacy policy.)
What's Next
I'm currently planning the next batch of tools:
- DKIM Selector Lookup
- RDAP / Domain Age Checker (super useful for spotting fresh phishing domains)
- Redirect Chain Checker
- SSL/TLS Certificate Checker
You can try it out at netsectools.com. I'd love any feedback on the UX, security headers, or edge cases—and let me know what daily checks you'd like to see added next!
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.