View Single Post
  #8   (View Single Post)  
Old 1st September 2017
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

Quote:
Originally Posted by Amithapr View Post
2) Could I restrict some sites ex: facebook totally ? If so please give me information on that.
Might this be done through the DNS system rather than the firewall? For example, if unbound were configured as an authoritative, validating, recursive caching DNS for the LAN and /var/unbound/etc/unbound.conf contained a section like this:
Code:
        # Block Ad Server domains. 
        local-zone: "doubleclick.net" redirect
        local-data: "doubleclick.net A 127.0.0.1"
        local-zone: "googlesyndication.com" redirect
        local-data: "googlesyndication.com A 127.0.0.1"
        local-zone: "googleadservices.com" redirect
        local-data: "googleadservices.com A 127.0.0.1"
        local-zone: "google-analytics.com" redirect
        local-data: "google-analytics.com A 127.0.0.1"
        local-zone: "ads.youtube.com" redirect
        local-data: "ads.youtube.com A 127.0.0.1"
        local-zone: "adserver.yahoo.com" redirect
        local-data: "adserver.yahoo.com A 127.0.0.1"
        local-zone: "ask.com" redirect
        local-data: "ask.com A 127.0.0.1"
[assuming facebook.com were similarly added to this section] would this accomplish the goal?
Reply With Quote