Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Block all internet with the hosts file

Status
Not open for further replies.

snootalope

IS-IT--Management
Jun 28, 2001
1,706
US
Is it possible to block anything and everything bound for anything http, https, www, *.com, *.net, etc using the hosts file?

Got a setup where I need to block a particular pc from the internet entirely, yet allow them to use the local networks printer. All done by IP.

I see you can add websites one by one to the hosts file, but it's going to take me a while to add every single website out there to this guys text file.... (joking of course)

Thanks for any info!
 
You can do it from the host file, but it would be time comnsuming, you could try this though;

Open up Internet Explorer>Tools>Internet Options>Connections >Lan Settings. Choose use proxy and set its address to 127.0.0.1 and 1 in the port box.

Basically it loops all requests back to the box itself, although you may have to find another way to install updates for the software and OS.

If you connect to a router to access the internet you could also block the machines mac address from outgoing requests

Twist

===========================================
Everything will be OK in the end.
If it's not OK, then it's not the end
 
Any clues in these type of threads?

disable internet connections
thread779-1259267

Blocking Internet
thread779-1259032

Allow only certain URL's in Internet Explorer
thread779-1469954

Can LOCK down be achieved through registry?
thread779-1269030

Disallow Internet Access
thread779-1048463

Restriciting users to a particular website
thread779-1439324

Help with Disabling user internet access on home pc
thread779-714122

Disable Internet Access
 
when my daughter was a teen I blocked port 80 to her IP address on the router. This let her still check her email and use the printer...though she could not see HTML pages.
this was a very effective way of blocking the net.
 
I forgot to add you can change the gateway in the network setup to refer to a non existent ip address and that will stop all internet and keep the local network. this also works with the DNS server too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top