Comment by acqq
13 years ago
Now who can suggest the best software to install on the home router to block the connections based on the URLs? Ideally it would be a transparent solution -- the client computers shouldn't need any additional configuration. I have an OpenWrt based router.
Another question is how to handle https requests?
URLs or domains? If the latter is enough, you could just install a DNS resolver like dnsmasq and configure those domain to redirect to 0.0.0.0 or so. Example config:
Then either configure your dhcp server or clients to use the router as the DNS resolver.
> software to install on the home router to block the connections based on the URLs?
tinyproxy does what you want.
http://wiki.openwrt.org/doku.php?id=oldwiki:proxy.tinyproxy
Theoretically. But I've found out that it doesn't work on small Linuxes like OpenWRT -- the guy who took over maintenance obviously only works with big desktops and servers, he even removed the mechanisms for proper cross-compiling, at least the last time I looked, a couple of years ago. It looks like the people who use such distros aren't particularly interested in URL-based blocking?
We are really making it easy for all the companies that do the same that LG does.
Ah, didn't realize it wasn't supported for openWRT anymore.
Perhaps you would be happier with a script like https://gist.github.com/aarmot/5730468
There's also http://block.si/ cloud service but I haven't tried that.
Pretty sure there's a small dns blocker app for openwrt/pineapple as well, but don't remember the name of it right now.