using hosts file as http whitelist

sao123

Lifer
May 27, 2002
12,653
205
106
I have some public accessworkstations, which I need to limit to certain internet websites. To accomplish this, i am disabling DNS, and setting up a hosts file to enable certain permitted sites to be browsed.
However, doing this, will prevent windows updates from being downloaded.

Does anyone know the proper entries neeeded for my hosts file to re-enable windows update?
 

Fallen Kell

Diamond Member
Oct 9, 1999
6,159
509
126
Make sure you disable nslookup as well then. Anyone who knows anything about how the internet works will simply bring up a command window and do a nslookup to 4.2.2.1 (or any of the original base DNS servers on the net), get the IP and then enter the IP in the browser...
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
sao123 said:
I have some public accessworkstations, which I need to limit to certain internet websites. To accomplish this, i am disabling DNS, and setting up a hosts file to enable certain permitted sites to be browsed.
However, doing this, will prevent windows updates from being downloaded.

That's not a good solution. You really should be making them browse through a proxy and then setup a whitelist on the proxy. That also ensures that no one brings in their own machine and uses that intead.

Fallen Kell said:
Make sure you disable nslookup as well then. Anyone who knows anything about how the internet works will simply bring up a command window and do a nslookup to 4.2.2.1 (or any of the original base DNS servers on the net), get the IP and then enter the IP in the browser...

Which will likely fail anyway because without the HTTP Host header given it'll just return the default website for that server which may or may not be the one you're aiming for.
 

xSauronx

Lifer
Jul 14, 2000
19,582
4
81
seconded on the proxy and wsus suggestions. a wsus server is really easy to set up (though, with thousands of updates to filter from the start, can be tedious) and clients can be configured easily with a GPO. if you have a server that needs some action and has some disk space, a wsus server is worth setting up.
 

sao123

Lifer
May 27, 2002
12,653
205
106
guess I have to be a bit more specific.

These systems are located at each of 40 semi-secure locations. (each essentially a 8x8 wooden shed with an attached outhouse on government property)
Each location has a single DSL/Cable/Verizon Aircard, and a netgear/linksys/dlink wired 4 port router.

Each location has 2 foreman each having a laptop which require full internet access. The above described desktop is to be a restricted weather terminal for all the non-foreman employees to use. it has guest level priviliges only with no logon password, and the internet is to be restricted to only our 4 permitted weather sites. (weather data is critical to our business).

due to the large number of sites, and complete lack of servers, I cant do SuS.
Due to the foremans requirements I cant do this at the router level...well at least not with $40 walmart routers.
 

VirtualLarry

No Lifer
Aug 25, 2001
56,570
10,203
126
Doesn't MS automagically whitelist their update servers inside their internet-related .DLLs, anyways? At least, I think that they have since Vista.
 

sdifox

No Lifer
Sep 30, 2005
98,969
17,389
126
Check pi-hole site for whitelisting.

If the machine is fast enough, maybe pi-hole in vm player as dns.

Also, I thought you can restrict browsers to only existing bookmarks?
 
Last edited:

Curt K

Junior Member
Dec 1, 2017
2
0
1
Doesn't MS automagically whitelist their update servers inside their internet-related .DLLs, anyways? At least, I think that they have since Vista.
I've seen that too but WinUpdate sure doesn't work if the DNS is 127.0.0.1...
 

Elixer

Lifer
May 7, 2002
10,371
762
126
I've seen that too but WinUpdate sure doesn't work if the DNS is 127.0.0.1...
Why necro a ~7 year old thread, and not start your own?

There are also some hardcoded IPs that don't use DNS, and that would fail on those.