Blocking a website manually from your own computer by making a small modification to a file named host in your windows folder.
To perform this , we need to go to
C:\WINDOWS\system32\drivers\etc
that is go to C drive first, then go to windows folder, then system32 folder then to drivers folder and finally a folder named etc.
Once inside, see for a file named hosts. Right click on that file and select Open or Open With , a small box will be shown, select notepad or wordpad and then click on OK.
Inside, you will find a line such as
127.0.0.1 localhost
now this IP address, i.e. 127.0.0.1 is called a local host that is it will redirect to your own computer everytime you try to access this IP address.
Try putting this code into you web server and you will see that it could not connect.
For ex: 127.0.0.1 www.ask.com
No comments:
Post a Comment