Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Wildcard Domain Block?

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      waterwall
      last edited by

      Basically trying to block youtube adverts which requires wildcard domain blocks.
      For example: need to block any domains with "d.googlevideo.com" ending, e.g. "r1---sn-4g57kndd.googlevideo.com"

      Did I miss obvious solution/tool for this task?

      P.S.: current Proxy configuration does not inspect HTTPS, so blocks are kinda useless there; also tried pfBlocker, appears to be blocking only TLDs, and not pattern; tried to implement redirect filter on Unbound itself - no positive results as well.

      BBcan177B 1 Reply Last reply Reply Quote 0
      • BBcan177B
        BBcan177 Moderator @waterwall
        last edited by

        @waterwall

        This is going to be hit and miss and cause videos not to load since google mixes the Ads/Videos on the same domain.

        So far there is no regex blocking (yet) in pfBlockerNG... This will be available when I add the python module to the DNS Resolver (Unbound), but I am waiting for the devs to add some more functionality to the Resolver before I can get this implemented.

        I'm sure regex options are available in the Proxy.

        "Experience is something you don't get until just after you need it."

        Website: http://pfBlockerNG.com
        Twitter: @BBcan177  #pfBlockerNG
        Reddit: https://www.reddit.com/r/pfBlockerNG/new/

        1 Reply Last reply Reply Quote 0
        • W
          waterwall
          last edited by

          @BBcan177
          Proxy has regex indeed, however without SSL inspection it simply ignores anything that goes over https including those adverts.

          That will be useful feature for the pfBlockerNG once implemented. Thanks for the great package btw!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.