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...
al4629740Asked:
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:

127.0.0.1  www.blockedsite.com

That works because there won't be any response from 127.0.0.1
0
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.
0
al4629740Author Commented:
Will this override the DNS server?
0
Top Threats of Q1 & How to Defend Against Them

WEBINAR: Join WatchGuard CTO and our Threat Research Team on Aug. 2nd to hear the findings from our Q1 Internet Security Report! Learn more about the top threats detected in the first quarter and how you can defend your business against them!

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.
0
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?
0
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.
0
al4629740Author Commented:
just a few
0
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.
0

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
Security

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.