Ubuntu ban on visiting certain sites?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/code-flow.club/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
As I understand it (via the "Windows" experience) this can be done by adjusting the hosts file.

In /etc/ are three file hosts, hosts.deny and hosts.allow

I can't save the file, no rights.

And another thing, I can not understand why in the line three entries, not two as in Windows
[internet address] [domain name] [alias] vkontakte.ru will be enough? or hvatit records vkontakte.ru in the file hosts.deny?
by | 6 views

4 Answers

0 like 0 dislike
"Unable to save file" — because it must be done via sudo:
sudo gedit /etc/hosts
0 like 0 dislike
Google to begin with though, and. you did everything on the head set, these files govern access To the system.
the utility Willow
0 like 0 dislike vkontakte.ru the hosts will be enough, the third parameter allows to use a single address for many hosts: vkontakte.ru vk.com odnoklassniki.ru... In Windows it too should work technet.microsoft.com/en-us/library/bb727005.aspx#EDAA:
A single entry consists of an IP (IPv4 or IPv6) address and one or more host names. Although, IMHO, use NS to block access to it as a hole with an ax to dig :)
record ALL: vkontacte.ru in hosts.deny will deny access to your computer from the server vkontakte.ru if they often you are bursting, then enter :)
0 like 0 dislike
> vkontakte.ru does not work, and www.vkontakte.ru Yes )
are different domains.
110,608 questions
257,186 answers
22,590 users