How to make a website inaccessible without showing any message

I would like to block a website on a Windows 10 pc without it being obvious to the user. Better if the site just endlessly buffers than if it shows a blocked message.
Browsers used are IE, Chrome and Firefox.
Can this be done in Windows firewall or need 3rd party app?
TIA.
D. DeignanIT ManagerAsked:
Who is Participating?
 
Russ SuterConnect With a Mentor Commented:
Well, hosts files block IP addresses, not websites. So you'd need to get the IP address of the URL you want to redirect to. This is very easy to do. Just open a command prompt and type
ping www.google.com

Open in new window

It will return an IP address. Then, you just add an entry to the hosts file like this
216.58.194.68			www.armorgames.com

Open in new window

You'll probably also need to add
216.58.194.68			armorgames.com

Open in new window

since hosts files aren't very clever and cannot do wildcard matches so you need to cover your bases and replace all URL subdomains that might be used.
0
 
Russ SuterCommented:
Not sure what you're after here or why but there are a number of tricks you can pull depending on a number of factors.

Is this a 3rd party website over which you have no control? If so then you'll need to rely on routing. I might consider intercepting the URL and redirecting it quietly to Google.
0
 
D. DeignanIT ManagerAuthor Commented:
Thanks Russ. Can you direct me to instructions on how to re-route? Basically the owner of the company is having his kid intern in the company and he wants to block the gaming etc. websites the kid normally uses, so he is not distracted - but not so that the kid knows he is being blocked. Thanks.
0
Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

 
Russ SuterCommented:
OK, that simplifies things a bit since it sounds as though your boss is willing to block the websites company-wide rather than just for a single user. How you do it depends on what equipment you're using. The first question is, how is traffic routed to the Internet? What are the devices between your workstations and the Internet that you might be able to use to intercept requests?
0
 
Russ SuterCommented:
If you're using Active Directory DNS, you can probably add some CNAME entries there. Your router hardware might have something that performs URL redirects. The quick & dirty approach is to just modify the hosts file on each local machine. This is by far the easiest to do on a single workstation but it would take some time and it's difficult to manage long-term.
0
 
D. DeignanIT ManagerAuthor Commented:
It's a very small office and he has his own connection in his office - directly from cable company - separate from other workers. No firewall device or other equipment except Verizon router and apple airport device . The son will be using a Win10 machine in that office.
0
 
D. DeignanIT ManagerAuthor Commented:
OK - got it. Would you me able to tell me specifically what I would need to put in the hosts file to block a particular site?
Thanks for your help!
0
 
D. DeignanIT ManagerAuthor Commented:
Thanks Russ!
0
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.

All Courses

From novice to tech pro — start learning today.