We can block or redirect websites without installing additional softwares in our pc. You can do that by going to C:\windows\system32\drivers\etc, then open the HOSTS file in a notepad. Here's the sample content of the HOSTS file:
# Copyright (c) 1993-1999 Microsoft Corp.So if you want to block yahoo.com, just put this code after the last line:
#
# 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
127.0.0.1 www.yahoo.comSo it would look like this:
127.0.0.1 localhost127.0.0.1 www.yahoo.com
Remember to put 127.0.0.1 before the website name.
To redirect a website just change 127.0.0.1 into an IP Address of the website that you want to redirect. For example, if you want to automatically redirect the browser to 125.445.122.333 whenever a user go into yahoo.com, it should look like this:
127.0.0.1 localhost125.445.122.333 www.yahoo.com
So everytime I go to www.yahoo.com the browser will automatically redirects me to the website that has an IP Address of 125.445.122.333 (Sample only).
No comments:
Post a Comment