To block a particular website on your computer follow the following steps:
Open a â€œhostâ€ file in notepad. At the bottom of the line, you can see as follows
Add the following line at the end
Ex: 127.0.0.1 www.abcxyz.com localhost
The above code is written to block www.abcxyz.com website on my pc.