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 : Use in Windows 7 / Vista

17 Apr 2010   #20

Windows 7 Ultimate 32 bit

Gotcha. Thanks much! That does make it very handy.

My System SpecsSystem Spec
24 Apr 2010   #21


When did this become a rule?

No discussion of ad blocking software - Websites cost money to run and blocking ads is no more than theft of service, if you dont like a sites ads then dont use the site.
My System SpecsSystem Spec
24 Apr 2010   #22

Windows 7 Ultimate 32 bit

I don't know; but I can certainly understand the reasoning.
My System SpecsSystem Spec
25 Apr 2010   #23
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate

From the "Edit" it seems it was implemented 3 weeks ago, I agree with the rule as well.
My System SpecsSystem Spec

25 Apr 2010   #24

64-bit Windows 8.1 Pro

This pertains to guests logged on to the site... members dont see the ads...
My System SpecsSystem Spec
25 Apr 2010   #25

Windows® 8 Pro (64-bit)

Good work Ted.
My System SpecsSystem Spec
25 Apr 2010   #26
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate

Thanks Dinesh! :)
My System SpecsSystem Spec
22 Oct 2010   #27

Windows 7 SP1 Ultimate 64bit

What exactly does this mean?

# localhost name resolution is handle within DNS itself.
# localhost
# ::1 localhost

is handle?
Or handled?

How do I block sites with the DNS?

Without removing the "#" I have listening UDP ports on all my connections leading to "", the first blocked site in my hosts file.

So without removing the "#" I'm screwing myself.

So how do I block sites via "localhost name resolution is handle within DNS itself."

Whatever that means.
My System SpecsSystem Spec
03 Aug 2016   #28

Windows 7 amd64

Isn't there a better way than the hosts file to block domains? I remember it being inefficient. And if you add a lot of stuff in there it will slow down the system.

I would have imagined that the firewall could do it. But it I only saw an option to block IP adresses.
My System SpecsSystem Spec
03 Aug 2016   #29

Windows 10 Pro x64 x3, Ubuntu

This thread is very old and If you wish to receive answers you would be better off creating your own New Thread
My System SpecsSystem Spec

 Hosts File : Use in Windows 7 / Vista

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
error messages with windows defender, hosts file & microsoft essential
Hi, I can't open my hosts file. i want to block websites. when i right click on the hosts file to run as administrator i get . I cant open windows defender. When i click on it i get error message i can't install microsoft essentials. this just happened recently when i had a virus or malware...
System Security
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 - 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....
how to set etc/hosts file in windows 7
I updated the Windows\System32\drivers\etc\hosts file to include static ip addresses of computers on my local network; just like I do it in Vista and XP. But now I tried to access the computers by name, it complains that host 'xyz' cannot be resolved. Why? Simon
Network & Sharing

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:35.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App