To carry out this task of blocking websites we will use 'hosts' file. Locations of 'hosts' file for various operating systems are as follows:
Unix------------> /etc/hosts
Unix------------> /etc/hosts
Windows------> %SystemRoot%\system32\drivers\etc\hosts.
Following image shows modified content of 'hosts' file.
Following image shows modified content of 'hosts' file.