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

    Simple Squidguard question - Google Ads - Can't believe I can't find this

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 3 Posters 2.2k 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.
    • H
      HeatmiserNYC
      last edited by

      Looked all over the Internet for this and still can't find it…ugh.

      Does anybody know how to accurately block Google ads via Squidguard? Step by Step please.

      I've tried a few ways and can't seem to make this work.

      Thanks beforehand.....

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        You should be able to create a Target Category and then populate it with whatever domains you want.  I assume you've had no luck with the Shallalist or other blacklists?

        1 Reply Last reply Reply Quote 0
        • H
          HeatmiserNYC
          last edited by

          @KOM:

          You should be able to create a Target Category and then populate it with whatever domains you want.  I assume you've had no luck with the Shallalist or other blacklists?

          Yea, Shallalist doesn't affect Google ads for some reason. I'll give the Target Category a try as well. Good looking out. If anybody else has any ideas feel free…...

          1 Reply Last reply Reply Quote 0
          • E
            Escorpiom
            last edited by

            I don't use Squidguard for blocking GoogleAds.
            Instead, use the DNS resolver and ad domain (not host) overide, use ip 0.0.0.0.
            On my side all GoogleAds have been totally blocked, even for https.

            Cheers.

            1 Reply Last reply Reply Quote 0
            • H
              HeatmiserNYC
              last edited by

              @Escorpiom:

              I don't use Squidguard for blocking GoogleAds.
              Instead, use the DNS resolver and ad domain (not host) overide, use ip 0.0.0.0.
              On my side all GoogleAds have been totally blocked, even for https.

              Cheers.

              What domain are you blocking exactly? Googlesyndication?

              1 Reply Last reply Reply Quote 0
              • E
                Escorpiom
                last edited by

                For google I have set these two entries:

                googlesyndication.com 0.0.0.0 Block Advertising
                googletagservices.com 0.0.0.0 Block Advertising

                This also takes care of any subdomain like "pagead.googlesyndication.com" for example.
                I found in another topic that people advised to use "host" entries, this however was not working for me.

                Important, you have to set pfsense dns server to 127.0.0.1 and clients have to use pfsense exclusively as a dns server.
                To achieve this, I've made a firewall rule to block all other dns servers (port 53) and only allow the pfsense box as a dns server for clients.
                This works wonders, I absolutely hate ads.

                Cheers.

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