2
OK I'm admin noob.
Is there a way for adding static DNS entry?
I already tried to modify /etc/hosts
file but without success.
Here is my hosts
file:
127.0.0.1 localhost
127.0.1.1 hitsu
127.0.1.1 www.deviantart.com
127.0.1.1 deviantart.com
127.0.1.1 www.youtube.com
127.0.1.1 youtube.com
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Eveyrything is fine, but when I enter for example
adc.deviantart.com
I still get the page.
Is there a way to block that sites?
I am trying to increase productivity in work via disabling off-topic sites.
EDIT
Well I would like to block all sites from deviantart something like
127.0.0.1 *.deviantart.com
Browser add-ons/extensions are a good solutions, but I use multiple browsers (chrome, opera etc) so it will be probably easier to block this in linux.
EDIT #2
There are some solutions for this problem eg https://github.com/leftnode/get-shit-done
However it won't work for multidomains..
You could setup
dnsmasq
with some overrides, or configure a proxy likesquid
(in which you could even make non-productivity sites blocking time-dependent) – Wrikken – 2013-05-14T19:37:30.847