How to Block Websites in Ubuntu

Save

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 "127.0.0.1" line that reads "0.0.0.0" followed by the website you want to block.

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

References

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

Comments

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

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