how to block one website

Is there a way to block only one website using the host file or some other file in the computer?

without using opendns...
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.

Dave BaldwinFixer of ProblemsCommented:
The common way is to put it in the host file like this:

That works because there won't be any response from
VB ITSSpecialist ConsultantCommented:
Yep I would modify the hosts file as above.

You can also look at blocking access to the site on your router if you need to do it for more than one person, otherwise you would have to go around and modify everyone's hosts file.
al4629740Author Commented:
Will this override the DNS server?
SolarWinds® IP Control Bundle (IPCB)

Combines SolarWinds IP Address Manager and User Device Tracker to help detect IP conflicts, quickly identify affected systems, and help your team take near instantaneous action. Help improve visibility and enhance reliability with SolarWinds IP Control Bundle.

VB ITSSpecialist ConsultantCommented:
Will this override the DNS server?
If you are referring to the hosts file then yes. If you decide to block it at the router then it won't override DNS, your router will just block any outgoing traffic to the site - this is subject to the capabilities of your router though.
al4629740Author Commented:
What if I use open DNS at the router and I want to block an additional site at the computer using a host file?
VB ITSSpecialist ConsultantCommented:
On how many computers do you need to block access to this website? If it's just a few then it would be easier to modify each computer's hosts file.
al4629740Author Commented:
just a few
VB ITSSpecialist ConsultantCommented:
In that case it would be easier and less time consuming to modify the hosts file one each of the machines. No real need to mess around with your router.

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
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

From novice to tech pro — start learning today.