Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Convert Adblock list format to domains list (pihole v4.3.2+ compatible)

NotificationsYou must be signed in to change notification settings

anthonytwh/pihole-blocklist-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A simple script for converting Adblock formatted lists into a domains-only block list compatible with pihole v4.3.2+, which no longer supports Adblock list styles:https://pi-hole.net/2019/09/21/pi-hole-4-3-2-release-notes/#page-content.

The script will parse all lines in the Adblock list format and extract all complete domains/hostnames (non-regex/wildcarded) into a plain-text list under/filters directory. Feel free to fork this repositry to manage your own collection of blocklists for pihole gravity.

How to Use

Like pihole gravity, the script will only accepttext/plain content type data.

To run:

python3 adlist_converter.py <url>

For example:

python3 adlist_converter.py "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt"

Notes:

  • Some Adblock lists will include benign domains such as youtube[.]com, which the script will not ignore. Be cautious when adding full domains lists to pihole gravity. Scan the parsed blocklist for common domains before uploading.

About

Convert Adblock list format to domains list (pihole v4.3.2+ compatible)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp