Wednesday, April 29, 2009

Permanently Block Dangerous Sites


Hello everyone! It's me - Creastery™ 2009, posting here again.
Today, I am going to teach you how to block sites that you do not want to visit.
Example, advertisements and also sites that have auto pop-ups.
This is available for Windows and Mac operating systems.

For Windows:

Windows XP = C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Windows 2K = C:\WINNT\SYSTEM32\DRIVERS\ETC
Windows 98\ME = C:\WINDOWS

Whichever applicable, open the file "hosts" with any editor. Eg: Notepad.
* Add the following on its own line in the hosts file, using the sites that apply to you:

You will see something like this 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 (such as 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At the localhost, you can add on like this.

127.0.0.1 localhost facebook.com youtube.com blogger.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Remember to leave a space between each website. After you are done, save and quit.

For Mac Operating System,
In Finder, from the Go menu, choose "Go to folder." then type "/etc/".
At the /etc/ folder window, open the "hosts" file in a text editor.
Add the following to the hosts file in its own line, using the site that applies to you:
127.0.0.1 metafilter.com flickr.com facebook.com blogger.com
That is just an example.

After you are done, save and quit.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

By right, if you use any of those servers above available,
you should get a "Server Not Found" error. This will be effective if you put virus websites, spam sites like www.funbox.com, all these will be blocked.

That's all folks for today! Please comment on tech as we need comments to improve on the tech guide. Don't hesitate to ask any questions. Thanks!
By - WinTechpedia™ 2009 Contributors

2 comments:

  1. That's good information about the HOSTS file but it does not indicate where to get reputable HOSTS files from.

    I recommend hpHosts and MVPS HOSTS files managed by HostsMan and its browser speed up proxy HostsServer:
    http://www.abelhadigital.com

    ReplyDelete
  2. Thank you. I don't really have much time writing my posts. I wanted to include it but I have exams currently. Ending next week. Will promise to include that soon.

    ReplyDelete