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:
Add to :
It is important to clarify upfront that is not a standard, recognized keyword phrase in any official documentation for AdGuard, AdGuardNet, or standard web development frameworks. tbrg adguardnet publicphp work
@@||tbrg.yoursite.com/public.php^$all Or if you want to allow only GET requests: query a blocked domain