2) Type
sudo gedit /etc/hosts
in the prompt that appears
3)Terminal ask for your password , and after entering password a text editor will display
4) Add a line under the "127.0.0.1" line that reads "0.0.0.0" followed by the website you want to block.
5) Click the "Save" button, then restart your computer to make the changes take effect.