← Back to Projects

Networking / Privacy

First Defence


Network-wide DNS Ad Blocker


First Defence

First Defence is a local hardware-based ad blocker that enhances privacy and improves browsing speed by filtering traffic at the DNS level.

The system blocks intrusive ads and trackers across an entire network, preventing them from even reaching the user's devices.

By leveraging a Raspberry Pi as a dedicated DNS server, it ensures a cleaner, faster, and more secure internet experience for all connected clients.

Technologies Used


Raspberry PiDNS ManagementLinuxNetworkingShell Scripting

What I Learned


  • Configuring and managing a local DNS server
  • Network-wide traffic filtering and blacklisting
  • Linux system administration and optimization
  • Privacy-focused network architecture
  • DNS sinkhole implementation and troubleshooting

Unique Aspects


Device-agnostic ad blocking (works on Smart TVs, Mobiles, etc.)
Local DNS resolution for faster query speeds
Enhanced privacy by blocking telemetry and trackers
Centralized network control without client-side software

Items Required


  • Raspberry Pi
  • Micro SD Card (16GB+ recommended)
  • Stable Power Supply
  • Ethernet Cable / Wi-Fi Connection