How To Block Unwanted Website In Ubuntu Linux
If your Ubuntu computer is used by some one else besides yourself, specially children, then you might want to restrict some websites and make sure they do not open on your system. Here is a quick way to block such sites in Ubuntu. It is extremely simple doesn’t require any third party application, you just need to make a simple entry in the /etc/hosts file.
/etc/hosts is a very important file which handles DNS and internet handling on Linux based systems. In order to block some site from opening, open the /etc/hosts file by typing the following command on the terminal:
gedit /etc/hosts
and add the following line:
127.0.0.1 domain.com
Here replace domain.com with the name of the domain that you wish to block.
Now whenever there is an attempt to open the blocked website, the web browser will display the “Failed To Connect” message.
Leave a comment
- deewangan
- DavidDailey86
- muhin
- Gus
- Udaiveer Singh
- jeff
- muhin
- muhin
- Tduck
- Stefan
- ANKUR VASHISHTHA
- johny
- happyhippo
- sagar
- Rh354
- jia
- Bodincus
- asgar ali m k
- Henkipje
- holynilk
- Devil Nessh
- Bence
- Ben
- Ridza
- peacee
- Taufik Kusyanto
- Hiren
- arno-nyme
- gks
- ANKUR VASHISHTHA
- Sina Golizadeh
- Nomail
- dontdoitlikethat
- authentic8
- ANKUR VASHISHTHA
- Martin
- salman
- Tarek
- muja
- muja
- siva
- Devil Nessh
- stranger “the perfect”
- Joe
- Stephen Green