How to Block Websites in Ubuntu


Ubuntu can access the Internet just as well as any other Linux- or Windows-based operating system. However, if you don't want some users in your household to access certain websites such as Youtube or Facebook, Ubuntu can block these websites from within the operating system itself.

  • Open the Terminal app found in the Accessories folder in the "Applications" menu.

  • Type "sudo gedit /etc/hosts" in the prompt that appears.

  • Add a line under the "" line that reads "" followed by the website you want to block.

  • Click the "Save" button, then restart your computer to make the changes take effect.

Related Searches


  • Photo Credit Comstock Images/Comstock/Getty Images
Promoted By Zergnet


You May Also Like

  • How to Find an IP in Ubuntu

    When it comes to networking, knowing your IP address is essential. If you're new to Linux, you might not be aware just...

  • How to Block an IP Address in Ubuntu

    Ubuntu Linux ships with the Netfilter stateful packet-inspecting firewall. Using the "iptables" command, configure your Ubuntu system to block packets, redirect traffic,...

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!