How to prohibit the computer from playing unhealthy videos?

Method 1: modify the Hosts file to prohibit online video viewing:

Hosts file is located in Windows/system32/drivers/etc/ directory, which is used to control domain name access. This method is to modify the hosts file for DNS domain name resolution. These websites all point to 127.0.0. 1.

Method 2: By setting DNS resolution on the network, it is forbidden to watch network videos:

Set the DNS server as 127.0.0. 1 in the network settings, and the network link status->; TCP/IP v4-& gt; Attribute-> Preferred DNS server-> 127.0.0.65438+