Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Request to parse HaGeZi's adblock plus style block lists

    Scheduled Pinned Locked Moved pfBlockerNG
    2 Posts 1 Posters 1.8k Views 1 Watching
    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.
    • T
      totowentsouth
      last edited by totowentsouth

      I use one of hagezi's lists in addition to others such as OISD. Since OISD is moving to Adblock Plus syntax, I figured I'd start using Adblock Plus style lists when the maintainer offers it. Hagezi offers lists in multiple formats including Adblock Plus. pfblockerng.inc checks for a header indicating the file follows Adblock Plus syntax. I've modified my local pfblockerng.inc file to parse HaGeZi's as Adblock Plus style. Is this something @BBcan177 or @andrebrait (I noticed you're working on adding support for OISD's ABP style; Thank you!) or another maintainer can add to the official pfBlockerNG source?

      Here is a diff showing the change I've made to my local instances:

      --- pfblockerng.inc	2023-10-08 15:45:28.823470000 -0500
      +++ pfblockerng.inc.rab	2023-10-08 15:45:10.531307000 -0500
      @@ -8351,6 +8351,7 @@
       												if (strpos($line, '[Adblock Plus ') !== FALSE ||
       												    strpos($line, '[Adblock Plus]') !== FALSE ||
       												    strpos($line, '[uBlock Origin') !== FALSE ||
      +												    strpos($line, "! Title: HaGeZi's") !== FALSE ||
       												    strpos($line, '! Title: AdGuard') !== FALSE) {
       													$easylist = $validate_header = TRUE;
       													continue;
      
      

      Thanks!

      T 1 Reply Last reply
      Reply Quote 0
      • T
        totowentsouth @totowentsouth
        last edited by totowentsouth

        I submitted a merge request to FreeBSD-ports https://github.com/pfsense/FreeBSD-ports/pull/1309

        EDIT: I see the above will be obsolete if/when https://github.com/pfsense/FreeBSD-ports/pull/1303 is merged.

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy