On Thursday 05 January 2012 11:16:05 Ljubomir Ljubojevic wrote: > On 01/05/2012 01:21 AM, Marko Vojinovic wrote: > > On Wednesday 04 January 2012 18:04:43 Frank Cox wrote: > >> On Wed, 04 Jan 2012 23:58:17 +0000 Marko Vojinovic wrote: > >>> The point is that I need a simple, easy-to-implement, > >>> easy-to-configure > >>> and easy-to-maintain solution for this particular usecase. > >> > >> Put the disallowed addresses into your /etc/hosts file and associate > >> those addresses with whatever you want them to resolve to. > > > > Hmm... that sure looks simple enough. :-) I'll give it a try, thanks! > > /etc/hosts is local DNS server. It does not work when http://1.2.3.4/xxx > is used. You need iptables/PREROUTING/redirect? rules for that. > > Also, I think you will need some kind of http server, at least like > lighttpd. Yes, it turns out that /etc/hosts doesn't handle all requirements that I asked for. Shouldn't there be a firefox plugin, or something similar, that would take care of all this? I cannot believe that "parental control software" is something so uncommon... :-) Best, :-) Marko