Blocking a specific website on your computer without using a software has been a matter of interest for many people. This trick can be very helpful in blocking any number of websites and the websites blocked wouldn't open from any browser.
We simply need to edit the host file of the computer for this. The IP address used is 127.0.0.1(localhost). With this, whenever somebody tries to open that website he will be redirected to the local host.
You need administrative privileges for this.
How to-
We simply need to edit the host file of the computer for this. The IP address used is 127.0.0.1(localhost). With this, whenever somebody tries to open that website he will be redirected to the local host.
You need administrative privileges for this.
How to-
- Go to my computer.
- Open operating system drive(usually C drive).
- Go to Windows->system32->drivers->etc.
- Open the host file here with notepad.
- Now in the last line add the address of the website to be blocked keeping 127.0.0.1 as the prefix.
For example, in the screenshot below, the website blocked is google-analytics.com
Don't forget to insert the URL of the website with and without www as shown.
Now save the file.
And you are done with blocking it.