Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: HOSTS file add-ons - what's your take?

27 Jan 2018   #1
teckneeculler

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

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 System SpecsSystem Spec
.
27 Jan 2018   #2
LMiller7

Windows 7 Pro 64 bit
 
 

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 System SpecsSystem Spec
28 Jan 2018   #3
dg1261

Windows 7/8.1/10 multiboot
 
 

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.


Attached Images
HOSTS file add-ons - what's your take?-hosts-blocking.jpg 
My System SpecsSystem Spec
.

28 Jan 2018   #4
sml156

Microsoft Windows 7 Ultimate 32-bit 7601
 
 

I was using my hosts file to block stuff for probably close to 20 years, But for the last year or so I have switched to running my own DNS server's (2) on my local lan using a neat project called PiHole.

One DNS server is is running on a virtual machine and the other is running on an old crappy laptop.

Links to Pihole:
GitHub - pi-hole/pi-hole: A black hole for Internet advertisements
Pi-hole Userspace
A subreddit dedicated to Pi-holeĀ®
My System SpecsSystem Spec
Reply

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




Thread Tools




Similar help and support threads
Thread Forum
Problem modifying hosts file, change file permissions?
Hi all,win7 Home Premium 64 bit. I'm having difficulties modifying my hosts file. Following guidance from this forum, I open Notepad++ as administrator & can navigate to and open the hosts file. But the "Save" option is greyed out, so I can't save directly to the original location. I can Save As...
General Discussion
Hosts file ignored and replaced with hosts.original
Hello. I am trying to use the hosts file. However both pings and web addresses still bypass the hosts file. I noticed that there is another file in the C:\Windows\System32\drivers\etc directory called 'hosts.original'. When ever I delete this file, it reappears seconds later. I have made sure that...
General Discussion
Hosts File
Hey, I was wondering, is there any internet performance gain if you put a commonly used website's IP (like Google) in your Hosts file, so it doesn't need to ask a DNS server? I mean, because I have 30 websites I go on at least 10 times each day, and it lags when I open all of them :D Thanks!
General Discussion
HOSTS File - Create a "Edit HOSTS file" Shortcut
How to Create a "Edit HOSTS file" Shortcut in Windows 7 and Vista The HOSTS file is a .txt file used in Vista and Windows 7 to map hostnames to IP addresses. Your computer checks this file first to resolve any network names to its corresponding IP address before it tries to check the Internet....
Tutorials


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 07:44.
Twitter Facebook Google+