Jump to content

[Help] Hosts file not working...


Recommended Posts

Hello there!

I have a problem with my hosts file, and it will only work blocking some sites. It is ~12mb, and before you say "WTF have u got in it???", i will tell you. It has a list of around half a million porn sites, so they will be blocked and appear 'down'.

A hosts site said that hosts files over 135kb slow down Win2K/XP, and a solution to this would be to change the 'DNS Client' service to manual startup, as opposed to the default automatic. I did this, and so i was then able to browse the web. I discovered the the hosts file only partly did it's job, blocking some sites but not others.

Can someone pease tell me what I can do?


Title edited -- Please, use [TAGS] in your topic's title.


Link to comment
Share on other sites

turn off the dns client service

That would have been my own first comment.

Then, I would ask, where did this Hosts file come from that you're using?

I get the updated hosts file from Mike Burgess every two weeks.

It's got about 11,000+ lines to it.

But the size of the file is only 141kb.

Who are you trying to protect with your monstrous hosts file?

Just Curious,


Link to comment
Share on other sites

holy freakin jebus, now THAT'S a hosts file.

there's gotta be a more efficient way for you to accomplish your goal.

(also, i keep my DNS service disabled whether i use HOSTS or not, it still works fine)

Link to comment
Share on other sites

Haha, I knew someone would say that :P I want to use the hosts file because it doesnt require additional software, and usually is very quick.

I used a vb script file which i found, to download a list of pr0n sites off the internet. I then copied the list into Excel, ~65000 sites at a time, and prefixed them with, then put them into the hosts file.

Took some time...

Anyway, I will try disabling it; See how it goes. Thanks for the replies

Link to comment
Share on other sites

are the sites that it's not blocking all at the end of the HOSTS, or like in the second half?

you may have discovered the filesize limit, lol

lol, probably.

I'll probably have to contact a microsoft techie about it, because disabling that DNS client service didn't help. The sites ae directly after the 1st entry ( localhost)

Link to comment
Share on other sites

Two things. First why not adjust the vb script to optput the list prefixed with the loopback address to replace your hosts file. That would save you a bunch of time and eliminate any possible "extras" from the run through Excel.

Second, how do you resolve other, non-porn hosts if you aren't using DNS?

Link to comment
Share on other sites

@Net user: Home broadband user with router, straight connection to the internet.

@Mordac85: Ah, never thought of changing the vb script, seems a simple solution, not to me though ;) I'm not familiar with how VB scripts work, and when I opened it to edit, i was assured I had no idea about what to change.

Would someone please be able to help me out, by editing the file below and adding "" as a prefix to all site names? There needs to be at least a space or tab between them... (I think)


I just came across that problem with DNS sites not resolving; websites without 'www' as the prefix wouldn't load, and I had to change them. This was the case for some sites where a search is done, and it sees no need to the prefix. I simply changed the DNS back to normal, and everything works fine.

Thanks to anyone who has helped out, i appreciate it :D


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...