Hacker News new | ask | show | jobs
by helb 1227 days ago
Before i start digging into it, does anybody know how they do "No mature videos on YouTube" (in the "kids" filter) with just DNS?
3 comments

It appears this is functionality provided by YouTube themselves where you can set a CNAME: https://support.google.com/a/answer/6214622?hl=en#zippy=%2Co...
thanks, looks like you're right:

    $ kdig +tls www.youtube.com @kids.dns0.eu
    …
    ;; QUESTION SECTION:
    ;; www.youtube.com.      IN A

    ;; ANSWER SECTION:
    www.youtube.com.              300  IN CNAME restrictmoderate.youtube.com.
    restrictmoderate.youtube.com. 1611 IN A     216.239.38.119
The DNS responds with forcesafesearch.google.com for google.com.

https://support.google.com/websearch/answer/186669?hl=en

uh, you are right: +1 for this question