All Projects → mmotti → Pihole Regex

mmotti / Pihole Regex

Custom regex filter list for use with Pi-hole.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pihole Regex

Polish Ads Filter
CertyficateIT - Oficjalne polskie filtry do Adblock, uBlock Origin, Adguard
Stars: ✭ 462 (-42.18%)
Mutual labels:  hostsfile, filter
1hosts
DNS filter-/blocklists | safe. private. clean. browsing!
Stars: ✭ 85 (-89.36%)
Mutual labels:  pi-hole, hostsfile
Boswatch
Python Script to process input data from rtl_fm and multimon-NG - multiple Plugin support
Stars: ✭ 101 (-87.36%)
Mutual labels:  regex, filter
regXwild
⏱ Superfast ^Advanced wildcards++? | Unique algorithms that was implemented on native unmanaged C++ but easily accessible in .NET via Conari (with caching of 0x29 opcodes +optimizations) etc.
Stars: ✭ 20 (-97.5%)
Mutual labels:  regex, filter
additional-hosts
🛡 List of categorized undesired hosts
Stars: ✭ 13 (-98.37%)
Mutual labels:  pi-hole, hostsfile
loadkit
Java 资源加载器,充分拓展ClassLoader#getResources(name)的能力,实现递归加载,支持普通风格 / 包名风格 / ANT风格 / 正则风格路径的资源加载同时支持自定义过滤器,通常作为框架的基础类库。
Stars: ✭ 39 (-95.12%)
Mutual labels:  regex, filter
porn-domains
A collection of domains used for explicit adult content like porn websites.
Stars: ✭ 97 (-87.86%)
Mutual labels:  filter, pi-hole
Wally3k.github.io
Repo for Firebog hosting
Stars: ✭ 427 (-46.56%)
Mutual labels:  pi-hole, hostsfile
Blacklist
Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒
Stars: ✭ 492 (-38.42%)
Mutual labels:  pi-hole, hostsfile
Trufflehog
Searches through git repositories for high entropy strings and secrets, digging deep into commit history
Stars: ✭ 6,225 (+679.1%)
Mutual labels:  regex
Learn gnuawk
Example based guide to mastering GNU awk
Stars: ✭ 727 (-9.01%)
Mutual labels:  regex
Hostctl
Your dev tool to manage /etc/hosts like a pro!
Stars: ✭ 642 (-19.65%)
Mutual labels:  hostsfile
Bbmetalimage
A high performance Swift library for GPU-accelerated image/video processing based on Metal.
Stars: ✭ 677 (-15.27%)
Mutual labels:  filter
Commonregex
🍫 A collection of common regular expressions for Go
Stars: ✭ 733 (-8.26%)
Mutual labels:  regex
Guitar
A Cross-Platform String and Regular Expression Library written in Swift.
Stars: ✭ 641 (-19.77%)
Mutual labels:  regex
Cssco
Photographic filters made with CSS, inspired by VSCO and CSSgram
Stars: ✭ 770 (-3.63%)
Mutual labels:  filter
Ugrep
🔍NEW ugrep v3.1: ultra fast grep with interactive query UI and fuzzy search: search file systems, source code, text, binary files, archives (cpio/tar/pax/zip), compressed files (gz/Z/bz2/lzma/xz/lz4), documents and more. A faster, user-friendly and compatible grep replacement.
Stars: ✭ 626 (-21.65%)
Mutual labels:  regex
Ultimate.hosts.blacklist
The Ultimate Unified Hosts file for protecting your network, computer, smartphones and Wi-Fi devices against millions of bad web sites. Protect your children and family from gaining access to bad web sites and protect your devices and pc from being infected with Malware or Ransomware.
Stars: ✭ 606 (-24.16%)
Mutual labels:  hostsfile
Ftl
The Pi-hole FTL engine
Stars: ✭ 776 (-2.88%)
Mutual labels:  pi-hole
Py regular expressions
Learn Python Regular Expressions step by step from beginner to advanced levels
Stars: ✭ 770 (-3.63%)
Mutual labels:  regex

Regex Filters for Pi-hole

This is a custom regex filter file for use with Pi-hole v4+ (FTLDNS).

The purpose of this list is to compliment your existing blocklists using powerful regular expressions that can cover a very broad range of domains. A single regular expression can block thousands of 'bad' domains, and can even accommodate for domains following specific patterns that may not even (yet) exist on standard blocklists.

There are also some optional regex filters separate to the main installer that can be added manually (if desired):

All commands will need to be entered via Terminal (PuTTY or your SSH client of choice) after logging in and Python 3.6+ is required.

Add to Pi-Hole

curl -sSl https://raw.githubusercontent.com/mmotti/pihole-regex/master/install.py | sudo python3

Remove from Pi-Hole

curl -sSl https://raw.githubusercontent.com/mmotti/pihole-regex/master/uninstall.py | sudo python3

False Positives

Due to the restrictive nature of these regexps, you may encounter a small number of false positives for domain names that are similar to ad-serving / tracking domains. I have created a whitelist file to populate with user reported false positives. Please note that this file is not currently referenced during installation and is intended to be used only if you experience issues or for reference purposes.

Keep regexps up-to-date with cron (optional)

The following instructions will create a cron job to run every monday at 02:30 (adjust the time to suit your needs):

  1. Edit the root user's crontab (sudo crontab -u root -e)

  2. Enter the following:

SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
30 2 * * 1 /usr/bin/curl -sSl https://raw.githubusercontent.com/mmotti/pihole-regex/master/install.py | /usr/bin/python3
  1. Save changes

Removing the manually created cron job

If this script is the only thing you've added to the root user's crontab, you can run:

sudo crontab -u root -r

Otherwise, run:

sudo crontab -u root -e and remove the three lines listed above in the install instructions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].