how to block and allow sites through the host file

I need to be able to block users from accessing websites.

We have 3 websites we want to allow access to, but the rest to be blocked.

How do I do this.

I know there is ISA server but we only have sbs 2003 standard.

ive also looked at web filtering programs and they all look quote big and bulky.

ideally we would like to this through the server, but Im ok doing it on each client.
Cheryl LanderAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If they are limited to Internet Explorer this would work:
Cheryl LanderAuthor Commented:
NO they use firefox also
Winproxy might be in the cards for you then.

It's not all that expensive and works very well.  Simple to use also.

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Cheryl LanderAuthor Commented:
Cant buy it anymore.
Hmmm...I had no idea...too bad really.

If you're a hardcore tech, you may want to try SquidNT:

It's not simple, but it's free.

Or try CCProxy if you like/need a GUI.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cheryl LanderAuthor Commented:
SO is there no way to do it via hosts file
HOSTS simply redirects "blocked" sites to localhost ( - you cannot include every site on the Internet except 3 - it's not practical.

Cheryl LanderAuthor Commented:
ok cool.

I thought we might be able to do a wildcard etc.

im looking into cc proxy. thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.