Securifi Community Forum

Securifi Products => Almond+ => Topic started by: bart on October 19, 2014, 01:09:57 pm

Title: Block domains through router?
Post by: bart on October 19, 2014, 01:09:57 pm
Hi, is there a way to block computers from accessing certain domains on my network directly in the router? Either block or have the domain redirect to localhost or something? For example, I used to block "onswipe.com" through my old router before getting an Almond+ so that my iPad and iPhone wouldn't get onswipe's crappy mobile templates on blogs that used it. It was a lot easier to block the domain at the router level instead of having to do it device-by-device (especially since you can't really do that on an iPad without jailbreaking or being forced to use a specific app).
Title: Re: Block domains through router?
Post by: rysmithjr on December 04, 2014, 08:28:18 pm
Personally, I don't use my router for this.  I use easydns.com as my DNS servers, they provide a lot of blocking options
Title: Re: Block domains through router?
Post by: rpr69 on December 05, 2014, 01:00:09 pm
A quick edit of the /etc/hosts file should do it. I think dnsmasq is set to use it as a source. If not, it could be. I'm not at home or I'd try it myself.
Title: Re: Block domains through router?
Post by: pdxsk8r on December 07, 2014, 10:24:04 am
bart,

Did you figure this one out?  I too used my router to block domains for iPad and iPhone.  These devices don't have a hosts file like a PC.  It seems like this basic feature is missing..?
Title: Re: Block domains through router?
Post by: bart on February 15, 2015, 05:16:00 pm
No, I still haven't figured it out. I was wondering if there's something in the new firmware update that will allow it.

For others reading this: the point is to do this at the router-level, NOT through editing an /etc/hosts file, so that all device on my network (including multiple iPhones and iPads which don't have an option for editing /etc/hosts) can all block the websites I want to block all at the same time. With other routers I would just add a domain and have it route to 0.0.0.0 like one would do with an /etc/hosts file.
Title: Re: Block domains through router?
Post by: grouter on February 16, 2015, 09:42:16 pm
Go to a+ web gui > advanced > openwrt > network > hostnames.
Title: Re: Block domains through router?
Post by: rpr69 on February 17, 2015, 01:19:05 pm
Go to a+ web gui > advanced > openwrt > network > hostnames.

Which is editing the *routers* /etc/hosts file, which is what I meant (although I did not specifically say, even though I said dnsmasq, which is on the router). So, you can use a GUI (OpenWRT) or login to the router via a shell and add the domains to the *routers* /etc/hosts file. Either one will result in the exact same result, which is what the OP asked for, and was given an answer to months ago. My apologies if my answer wasnt' clear, but if OP didn't understand the answer, OP could have asked for clarification.