Advanced privacy enthusiasts set up AdGuard Home (the open-source version) on a Raspberry Pi, then write custom PHP scripts to extend its functionality—for example, to block newly registered domains (NRDs) that TBRG threat feeds identify.
Install AdGuard Home, expose a simple public PHP status endpoint (public.php) that queries AdGuard’s local API for status and block stats, secure it appropriately, and host it on an existing web server (Apache/Nginx + PHP). Includes sample PHP code, firewall and reverse-proxy guidance, and troubleshooting tips. tbrg adguardnet publicphp work
If “tbrg” is a literal container name (e.g., tbrg-adguardnet-publicphp), you might run AdGuard Home inside Docker alongside PHP-FPM. Advanced privacy enthusiasts set up AdGuard Home (the
Sample docker-compose.yml:
version: '3'
services:
adguardhome:
image: adguard/adguardhome
ports:
- "53:53/tcp"
- "53:53/udp"
tbrg-php:
image: php:8.3-fpm
volumes:
- ./public.php:/var/www/public.php
Then set your system DNS to the AdGuardHome container IP. Inside public.php, query a blocked domain; it will fail. To fix, add allow rule via AdGuardHome API: Then set your system DNS to the AdGuardHome container IP
curl -X POST "http://localhost:3000/control/access/set" -d '"allowed":["ipapi.co"]'
Now public.php works while other requests stay filtered.