Trying blockwebsites in Linux..
by Metaphycisian from LinuxQuestions.org on (#5S4QB)
Steps to block websites in Linux
Open terminal shortcut keys Ctrl + Alt + T.
Type sudo gedit /etc/hosts and type Ubuntu password.
Then at the bottom of file. Type each website's name you want to block like this:
127.0.0.1 www.facebook.com
127.0.0.1 www.youtube.com
Blocking websites has gone well but now blocking websites through this doesn't work anymore.. I don't know why.. I tried to block 127.0.0.1 www.lichess.org and it didn't block it..
Terminal just stated
(gedit:6059) warning: 03:11:57.960: Set document metadata failed: Setting attribute metadata: gedit- encoding not supported.
This blocking way doesn't work anymore.. It doesn't block anymore.
Open terminal shortcut keys Ctrl + Alt + T.
Type sudo gedit /etc/hosts and type Ubuntu password.
Then at the bottom of file. Type each website's name you want to block like this:
127.0.0.1 www.facebook.com
127.0.0.1 www.youtube.com
Blocking websites has gone well but now blocking websites through this doesn't work anymore.. I don't know why.. I tried to block 127.0.0.1 www.lichess.org and it didn't block it..
Terminal just stated
(gedit:6059) warning: 03:11:57.960: Set document metadata failed: Setting attribute metadata: gedit- encoding not supported.
This blocking way doesn't work anymore.. It doesn't block anymore.