A quick way to block particular site(s) on your Ubuntu desktops is by making changes to the ‘hosts’ file.
Step 1: Open the terminal using the Ctrl+Alt+T combination or by looking for it in the Dash menu. Then take a quick backup of your hosts file by typing in the following command: sudo cp /etc/hosts /etc/hosts.old