Choose style:

Author Topic: Block domains through router?  (Read 10193 times)

0 Members and 1 Guest are viewing this topic.

Offline bart

  • Backer
  • *
  • Posts: 4
  • Thanks: 0
  • Registered : 05/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Block domains through router?
« 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).

Offline rysmithjr

  • Backer
  • *
  • Posts: 10
  • Thanks: 0
  • Registered : 26/07/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Block domains through router?
« Reply #1 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

Offline rpr69

  • Backer
  • *
  • Posts: 133
  • Thanks: 0
  • Registered : 08/09/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Block domains through router?
« Reply #2 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.

Offline pdxsk8r

  • Backer
  • *
  • Posts: 16
  • Thanks: 0
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Block domains through router?
« Reply #3 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..?

Offline bart

  • Backer
  • *
  • Posts: 4
  • Thanks: 0
  • Registered : 05/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Block domains through router?
« Reply #4 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.

Offline grouter

  • Beta Testers
  • *
  • Posts: 501
  • Thanks: 1
  • Registered : 01/01/2015
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Block domains through router?
« Reply #5 on: February 16, 2015, 09:42:16 pm »
Go to a+ web gui > advanced > openwrt > network > hostnames.

Offline rpr69

  • Backer
  • *
  • Posts: 133
  • Thanks: 0
  • Registered : 08/09/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Block domains through router?
« Reply #6 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.

 

Page created in 0.034 seconds with 17 queries.