How to Block Websites in Linux using /etc/hosts file

Channel:
Subscribers:
54,800
Published on ● Video Link: https://www.youtube.com/watch?v=ujdu5ggCRAQ



Category:
Tutorial
Duration: 4:20
18,186 views
206


Tutorial on Blocking DNS queries with /etc/hosts, this applies to any Linux Distro whether its Ubuntu, Debian, Arch, Fedora, etc... Linux Mint comes with a handy GUI tool called Mint Nanny which you can use instead of this method.
It can be easily circumvented by hand if you know the IP address of a website, but for blocking an automated app /etc/hosts is perfectly fine.

Terminal Commands:
sudo cp /etc/hosts /etc/hosts.old
sudo nano /etc/hosts

Or for using a GUI tool:
sudo -H gedit /etc/hosts

Wallpaper: http://quidsup.net/wallpaper/show.php?i=1676&f=3







Tags:
Website
Site
Internet
Blocking
hosts file
DNS
Domain Name System
lookup
app
browser
Firefox
Chrome
Midori
Tutorial
Linux
Ubuntu
Mint
Debian
Arch
Fedora
OpenSUSE
Gentoo
Computing
Quids
Quidsup