For this trick we will edit the host file of the windows and will use the Ip address 127.0.0.1 (i.e localhost).Whenever somebody will try to open the blocked website the user will be redirected to local host.This trick works in windows xp,vista and windows 7
Here is the Trick To Block Any Website On Your Computer
- Open My Computer/Computer
- Navigate to your Operating system drive (Usually C drive)
- Now goto Windows –>System32–>drivers–>etc
- Here you will see your Hosts file.Open this file with notepad.
- Now move to the last line in this file and add the address of the website to be blocked prefixed by 127.0.0.1
Remember that you should insert the Url of the blocked website with and without www prefix as shown in the above screenshot
Now Save the file.
Note:-You should open notepad with administrative privileges otherwise you won,t be able to save it