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

    Request to parse HaGeZi's adblock plus style block lists

    Scheduled Pinned Locked Moved pfBlockerNG
    2 Posts 1 Posters 746 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.
    • 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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.