Use dnsmasq on Debian to only allow specific websites and block all others.
Notes: https://brockcochran.com/1/dnsmasq-fo...
Update:
The directives in dnsmasq.conf each need to be on their own line. (The previous config shown in my video worked at the time but then stopped working.) Please see my notes linked above.