• How To's
  • Ubuntu
  • How to block access to any Website on Ubuntu Desktop

    We need to block some web sites with http and https? The solution is easy:

    1. Edit the /etc/hosts

     sudo gedit /etc/hosts 

    2. Configuration
    add these lines:

    #Block Facebook
    127.0.0.1 www.facebook.com
    

    3.Save and exit, the reboot your system with this command:

     sudo reboot

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    1 mins