Today I will show you about how to block unwanted websites, this trick I write here because yesterday there was a friend who asked me to block some sites on the internet that he lowers the quality of work of employees and also passable bandwidth should spend for the purposes of employment office, because only a small office so it does not use bandwidth management as they may have to pay more just to set up the Internet connection bandwidth. Well let's look at how to block websites on computers using the Windows XP operating system and windows 7.
1. Click START then Type this on "run" tab: C: \ Windows \ Sytem32 \ Drivers \ Etc \
You will find a file named "
hosts", then open the file with notepad.
It will appear on your notepad like this:
# Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP / IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # Entry should be kept on an individual line. The IP address should # Be placed in the first column Followed by the corresponding host name. # The IP address and the host name should be separated by at least one # Space. # # Additionally, comments (Reviews such as Reviews These) may be inserted on individual # Lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
7. Now let's add the sites you want to block
# Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP / IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # Entry should be kept on an individual line. The IP address should # Be placed in the first column Followed by the corresponding host name. # The IP address and the host name should be separated by at least one # Space. # # Additionally, comments (Reviews such as Reviews These) may be inserted on individual # Lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost What's the meaning of that? check below:
127.0.0.1 is your localhost IP, so this IP you can change as you want, if you do not know or do not want to change it, just put this IP from localhost. The function of this IP is, when someone opens the address in the blacklist for example facebook, it will immediately be redirected to the page localhost / IP that we have set themselves.
2. Now if you wanna block a site or some sites ie: facebook and youtube, you got to add the site like example below:# Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP / IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # Entry should be kept on an individual line. The IP address should # Be placed in the first column Followed by the corresponding host name. # The IP address and the host name should be separated by at least one # Space. # # Additionally, comments (Reviews such as Reviews These) may be inserted on individual # Lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
7. Now let's add the sites you want to block
# Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP / IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # Entry should be kept on an individual line. The IP address should # Be placed in the first column Followed by the corresponding host name. # The IP address and the host name should be separated by at least one # Space. # # Additionally, comments (Reviews such as Reviews These) may be inserted on individual # Lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost 127.0.0.1 youtube.com 127.0.0.1 www.youtube.com 127.0.0.1 facebook.com 127.0.0.1 www.facebook.com3. Then click save.
4. Now you restart your computer.
It's so easy, now you can let your kids or your employers play or works wothout worried anymore. Good luck!
note: if you wanna block some porn sites list, Download
hereMay be useful, Thankyou.
More From Author
web