Thursday, 6 August 2009

Block Sites On a Network

A customer wanted me to block sites on their network, mainly facebook thankfully they had a netgear router which made it pretty easy.

I could have done it by editing the hosts file. This file is just a plain text file that lives on your computer. It has entries that kind of look like:
So when a user would surf to a site, Microsoft Windows automatically checks to see if the address is located in the Hosts file. The number shown,, is the "loop back" IP address of your own computer, so when the PC looks for Windows skips the link to the site (facebook) and moves on. So it can't load any programs, spyware, html anything on that domain.

The Host file can be editied with Notepad so browse for the file, e.g. Windows XP, the file is located in the C:\Windows\System32\Drivers\Etc folder, open it it with notepad and add any sites you want to block by typing e.g.

would block

No comments:

Post a Comment

No over 18 sites or drugs please. Comments are moderated but followed.