Can Windows Host File block top level domains?


Shawn

Well-known member
Local time
6:05 PM
Posts
31
OS
11
I want to limit one computer to a few websites and thought using the Host File would be the easiest method. I can get it to block particular domains but is there a way to block top level domains (e.g. .org or .bbc)? Essentially, block listing en masse.

Internet search comes up with an example (Allow only white-listed sites on Windows 10):
specifically, this list: All TLDs for HOSTS file - Pastebin.com, e.g.,

0.0.0.0 .bbc

Is this the correct format? It does not work when I try it. I flushed the ipconfig, too.

thank you,
 

My Computer My Computer

At a glance

11i7-12700K163070
OS
11
Computer type
PC/Desktop
Manufacturer/Model
HP Omen 40L
CPU
i7-12700K
Memory
16
Graphics Card(s)
3070
Hard Drives
512 GB WD Black PCIe® NVMe
1 TB 7200 rpm SATA HDD
PSU
800 W 80 Plus Gold certified ATX power supply
Cooling
120 mm RGB liquid cooler

Latest Support Threads

Back
Top Bottom