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

    HOWTO: Transparently block all ads on home / work network

    Scheduled Pinned Locked Moved webGUI
    26 Posts 15 Posters 36.1k 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.
    • KOMK Offline
      KOM
      last edited by

      This is an old thread.  Lately, you can get the same results using a blacklist along with squidGuard.

      1 Reply Last reply Reply Quote 0
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator
        last edited by

        Or you could just use blacklist in unbound..  That same yoyo.org link they listed has the list in unbound.. Just load the file into unbound and all the ad domains just get redirect to 127.0.0.1

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 25.07 | Lab VMs 2.8, 25.07

        1 Reply Last reply Reply Quote 0
        • M Offline
          Maxamoto
          last edited by

          I wasn't aware that unbound or SquidGuard offered the ability to replace ads with a transparent gif. Redirecting to 127.0.0.1 will leave errors all over the page where the ads used to be; replacing with a transparent gif at least keeps it looking clean. Aesthetics :)

          1 Reply Last reply Reply Quote 0
          • C Offline
            C0RR0SIVE
            last edited by

            Squidguard has an option at General Settings, under Miscellaneous for "Clean Advertising"  Works pretty good for me.

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

              Yes, it's amazing what you find when you take the time to look.

              1 Reply Last reply Reply Quote 0
              • M Offline
                Mr. Jingles
                last edited by

                @johnpoz:

                Or you could just use blacklist in unbound..  That same yoyo.org link they listed has the list in unbound.. Just load the file into unbound and all the ad domains just get redirect to 127.0.0.1

                This is very interesting. How would one load the list in unbound with a script, similar to the way we can load it into Squid with the script?

                It would appear it needs to be merged with /var/unbound/access_lists.conf, but how?

                6 and a half billion people know that they are stupid, agressive, lower life forms.

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