HOSTS file add-ons - what's your take?

teckneeculler

Member
Power User
VIP
Local time
10:05 PM
Messages
512
As most of you know, the HOSTS file (C:\Windows\System32\drivers\etc\hosts) can be loaded with lists of dodgy domains that tells Windows to avoid.

What's your opinion about using the HOSTS file this way? Some lists have over 40,000 entries.

If you do use these lists, whose is the best?
 

My Computer My Computer

At a glance

Win7 Ultimate SP1Intel Core i5 9400 Coffee Lake 14nm16G DDR4NVidia GeForce GTX 960
Computer type
PC/Desktop
Computer Manufacturer/Model Number
My build
OS
Win7 Ultimate SP1
CPU
Intel Core i5 9400 Coffee Lake 14nm
Motherboard
Asus Prime H310M-E R2.0 (LGA1151)
Memory
16G DDR4
Graphics Card(s)
NVidia GeForce GTX 960
Sound Card
Realtek High Definition Audio (mobo)
Monitor(s) Displays
Asus PA248 24" 16:10 format
Screen Resolution
1920x1200@59Hz
Hard Drives
1863GB Seagate ST2000DM
3726GB Seagate ST4000DM
1863GB Seagate ST2000DM
6TB Seagate
465GB NVMe Samsung SSD 970
PSU
750G2
Case
Tower
Cooling
Standard
Keyboard
USB
Mouse
USB
Internet Speed
920Mbs/480Mbs
Antivirus
Malwarebytes
Browser
Firefox
The hosts file dates back to the earliest days of the Internet when it was arpanet. It's purpose is to associate names with IP addresses, what DNS now does. A large hosts file has been known to cause performance problems. Many have found it necessary to disable the DNS client in services. This means all DNS requests will have to go to a DNS server rather than being resolved from the local cache.

I have not used a hosts file for this purpose. All I know is from Internet searches.
 

My Computer My Computer

At a glance

Windows 7 Pro 64 bitXeon W35208 GBNvidia Geforce 210
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP
OS
Windows 7 Pro 64 bit
CPU
Xeon W3520
Memory
8 GB
Graphics Card(s)
Nvidia Geforce 210
I've been customizing my hosts file for around 15 years. For almost 10 years now I've used the one from mvps.org. To that I've added a few more entries, principally URLs that seem to be solely devoted to Microsoft telemetry. As LMiller7 mentioned, to improve performance I've also set "DNS Client" to "Manual" in services.msc.

Below are screenshots of the same page rendered on a machine with the default hosts file (left) and a machine with my custom hosts file (right). It's obvious to see a couple of ads that were blocked, and there were more further down the page. The page on the right loaded about 10 times faster than the one on the left. I would not run without a custom hosts file on my main machine.
 

Attachments

  • hosts-blocking.jpg
    hosts-blocking.jpg
    36.1 KB · Views: 20

My Computer My Computer

At a glance

Windows 7/8.1/10 multibootIntel Core i7-770048GB (2x16GB Crucial DDR4-3200 + 2x8GB Hynix ...Intel HD630 + AMD Radeon R7 450 PCIe
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Optiplex 7050
OS
Windows 7/8.1/10 multiboot
CPU
Intel Core i7-7700
Motherboard
Dell, Intel Q270 chipset
Memory
48GB (2x16GB Crucial DDR4-3200 + 2x8GB Hynix DDR4-2400)
Graphics Card(s)
Intel HD630 + AMD Radeon R7 450 PCIe
Monitor(s) Displays
Asus VC279 (27")
Screen Resolution
1920x1080
Hard Drives
Toshiba M.2 NVMe (256GB),
Samsung 960 Evo (500GB),
WD Red Plus 80EFBX (8TB)

My Computer My Computer

At a glance

Microsoft Windows 7 Ultimate 32-bit 7601Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz4.00 GB(1) VNC Mirror Driver (2) Intel(R) G33/G31 Ex...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Compac
OS
Microsoft Windows 7 Ultimate 32-bit 7601
CPU
Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz
Motherboard
MSI Boston
Memory
4.00 GB
Graphics Card(s)
(1) VNC Mirror Driver (2) Intel(R) G33/G31 Express Chipset
Sound Card
Disabled
Monitor(s) Displays
Headless
Screen Resolution
1280 x 960 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
ST3320820AS ATA Device
Keyboard
Headless
Mouse
Headless
Antivirus
Malwarebytes pro
Other Info
Also
Windows 8.1 Laptop and Desktop both Acer
Back
Top