From c7ac4ecad0857b4d2beae69142639e5a5875f0ee Mon Sep 17 00:00:00 2001 From: Wasim Akram <55689108+wasimness@users.noreply.github.com> Date: Fri, 27 Nov 2026 15:38:47 +0530 Subject: [PATCH 1/5] Add raw app-agnostic lists and reported business numbers Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 11 +- README.md | 36 +- docs/IMPORT.md | 35 +- raw/spamwall-in.csv | 102 +++ raw/spamwall-in.json | 921 ++++++++++++++++++++++ raw/spamwall-in.md | 108 +++ rules/in/numbers/IN-REPORTED-BUSINESS.txt | 98 +++ tools/build_spamblocker.py | 57 +- tools/check.py | 27 +- 9 files changed, 1371 insertions(+), 24 deletions(-) create mode 100644 raw/spamwall-in.csv create mode 100644 raw/spamwall-in.json create mode 100644 raw/spamwall-in.md create mode 100644 rules/in/numbers/IN-REPORTED-BUSINESS.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index a4e6e7e..24f1f62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [Unreleased] +## [0.3.0] - 2026-11-27 + +### Added +- Raw, app-agnostic lists in `raw/`: `spamwall-in.csv`, `spamwall-in.json` (with a `meta` object) and `spamwall-in.md`. +- `rules/in/numbers/IN-REPORTED-BUSINESS.txt`: business landline, toll-free and series numbers reported as spam (mobiles excluded for privacy). Used in the raw lists only, not in the SpamBlocker files. +- Checks that `raw/` is current, that no 10-digit 6-9 mobile appears in numbers or raw files, and that each number parses. +- README and `docs/IMPORT.md` file tables with labels and download links, and a "Using SpamWall without SpamBlocker" section. + ## [0.2.0] - 2026-11-27 ### Added @@ -28,6 +36,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - One-click SpamBlocker import files and plain regex lists. - Unblock-request and new-pattern issue templates. -[Unreleased]: https://github.com/wasimness/spamwall/compare/v0.2.0...HEAD +[Unreleased]: https://github.com/wasimness/spamwall/compare/v0.3.0...HEAD +[0.3.0]: https://github.com/wasimness/spamwall/compare/v0.2.0...v0.3.0 [0.2.0]: https://github.com/wasimness/spamwall/compare/v0.1.0...v0.2.0 [0.1.0]: https://github.com/wasimness/spamwall/releases/tag/v0.1.0 diff --git a/README.md b/README.md index 2c3a897..05933e0 100644 --- a/README.md +++ b/README.md @@ -25,17 +25,22 @@ SpamWall is a separate community project and is not made by or affiliated with S ## Files -| File | What it has | -|---|---| -| [`spamblocker/settings.gz`](spamblocker/settings.gz) | Only the Others category (contacts, STIR, repeated call, dialed, answered, Recent Apps) | -| [`spamblocker/rules-default.gz`](spamblocker/rules-default.gz) | Only the Regex Settings category: allow rules and default block rules | -| [`spamblocker/rules-strict.gz`](spamblocker/rules-strict.gz) | `rules-default` plus IN-1600 (bank and government service calls) | -| [`spamblocker/complete.gz`](spamblocker/complete.gz) | `settings` plus `rules-default`, for a one-tap full setup | -| [`spamblocker/types/.gz`](spamblocker/types/) | One block pattern plus the allow rules (Regex Settings only), for blocking just one kind of call | -| [`rules/in/`](rules/in/) | One file per pattern in `allow/`, `block/` and `optional/`, plus [`allow-apps.txt`](rules/in/allow-apps.txt) | -| [`rules/in/patterns.md`](rules/in/patterns.md) | Table of every pattern, generated from the files | - -Each `.gz` has a readable `.json` twin. +| Label | File | Description | Download | +|---|---|---|---| +| Everything | `complete.gz` | Settings plus default rules, one-tap full setup (SpamBlocker) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/complete.gz) | +| App settings | `settings.gz` | Only the Others category: contacts, STIR, repeated call, dialed, answered, Recent Apps | [Download](https://github.com/wasimness/spamwall/releases/latest/download/settings.gz) | +| All rules | `rules-default.gz` | Only the Regex Settings category: allow rules and default block rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/rules-default.gz) | +| Strict rules | `rules-strict.gz` | `rules-default` plus IN-1600 (bank and government service calls) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/rules-strict.gz) | +| Promo calls (140) | `IN-140.gz` | Block the 140 promotional series, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-140.gz) | +| Call-centre landlines | `IN-CC-LANDLINE.gz` | Block call-centre landline ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-CC-LANDLINE.gz) | +| Bengaluru call centres | `IN-CC-BLR.gz` | Block narrow Bengaluru call-centre blocks, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-CC-BLR.gz) | +| Bulk telemarketing mobiles | `IN-BULK-MOBILE.gz` | Block bulk telemarketing mobile ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-BULK-MOBILE.gz) | +| Bank and govt series (1600) | `IN-1600.gz` | Block the official 1600 service series (also blocks your real bank), plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-1600.gz) | +| Raw list (CSV) | `spamwall-in.csv` | Every pattern and business number, for any app or spreadsheet | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.csv) | +| Raw list (JSON) | `spamwall-in.json` | Same data with a meta object, for scripts and AI | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.json) | +| Raw list (Markdown) | `spamwall-in.md` | Table for manual copying | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.md) | + +Each `.gz` has a readable `.json` twin in `spamblocker/`. Source rules: [`rules/in/`](rules/in/) (one file per pattern in `allow/`, `block/` and `optional/`, plus [`allow-apps.txt`](rules/in/allow-apps.txt) and `numbers/`), table of every pattern: [`rules/in/patterns.md`](rules/in/patterns.md). **What can be combined:** `settings` + any ONE rules file (`rules-default`, `rules-strict` or one `types/` file) is fine. Two rules files do not stack: the second replaces the first, and also deletes your own number rules. `complete` already has settings and default rules. @@ -43,6 +48,15 @@ Each `.gz` has a readable `.json` twin. **Releases:** download the files from the [latest release](../../releases/latest). +## Using SpamWall without SpamBlocker + +The raw lists in `raw/` (CSV, JSON, Markdown) are app-agnostic: the same rows as the SpamBlocker files, with columns `type,id,kind,value,description,source,priority`. `type` is allow, block or optional; `kind` is `pattern` (a regular expression) or `number` (an exact number). Numbers and patterns match the national number, without +91 or a leading 0. + +- **Any blocker or your phone's own block list:** open the CSV or Markdown file and copy what you need. Add `number` rows one by one, or paste them in bulk where the app allows. +- **Patterns need regex or prefix blocking.** If your app only blocks exact numbers, use the `number` rows. If it supports prefixes, turn simple patterns such as `^140\d{7}$` into the prefix `140`. +- **Build rules for another app with AI or a script:** feed `spamwall-in.json` (rules plus a `meta` object) to an AI assistant or a script and ask it to produce the format your app imports. +- **Mobile numbers are left out on purpose.** Individual 10-digit mobile numbers (starting 6 to 9) are never listed, for privacy. Only landline, toll-free and series numbers appear as `number` rows. + ## How the rules are checked SpamBlocker checks higher priorities first. Allow and block rules never share a priority. diff --git a/docs/IMPORT.md b/docs/IMPORT.md index c2c52b7..3befee0 100644 --- a/docs/IMPORT.md +++ b/docs/IMPORT.md @@ -14,15 +14,32 @@ SpamBlocker for Android, from [F-Droid](https://f-droid.org/packages/spam.blocke ## Which file to pick -| File | What it has | Pick it when | -|---|---|---| -| `complete.gz` | Settings plus default rules (both categories) | You want a full setup in one tap | -| `settings.gz` | Only the "Others" category: contacts, STIR, repeated call, dialed, answered, Recent Apps (120 min) | You want the settings without touching your number rules | -| `rules-default.gz` | Only the "Regex Settings" category: all allow rules and the default block rules | You want the rules without touching your settings | -| `types/.gz` | One block pattern (IN-140, IN-CC-LANDLINE, IN-CC-BLR, IN-BULK-MOBILE or IN-1600) plus the allow rules (IN-1601, IN-AMAZON). Regex Settings only | You want to block only that kind of call | -| `rules-strict.gz` | Same as `rules-default.gz` plus IN-1600 | You also want bank, insurer and government service calls blocked (add your own bank and broker numbers to contacts first) | - -Each file also has a readable `.json` twin in `spamblocker/`. +| Label | File | Description | Download | +|---|---|---|---| +| Everything | `complete.gz` | Settings plus default rules, one-tap full setup (SpamBlocker) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/complete.gz) | +| App settings | `settings.gz` | Only the Others category: contacts, STIR, repeated call, dialed, answered, Recent Apps | [Download](https://github.com/wasimness/spamwall/releases/latest/download/settings.gz) | +| All rules | `rules-default.gz` | Only the Regex Settings category: allow rules and default block rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/rules-default.gz) | +| Strict rules | `rules-strict.gz` | `rules-default` plus IN-1600 (bank and government service calls) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/rules-strict.gz) | +| Promo calls (140) | `IN-140.gz` | Block the 140 promotional series, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-140.gz) | +| Call-centre landlines | `IN-CC-LANDLINE.gz` | Block call-centre landline ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-CC-LANDLINE.gz) | +| Bengaluru call centres | `IN-CC-BLR.gz` | Block narrow Bengaluru call-centre blocks, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-CC-BLR.gz) | +| Bulk telemarketing mobiles | `IN-BULK-MOBILE.gz` | Block bulk telemarketing mobile ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-BULK-MOBILE.gz) | +| Bank and govt series (1600) | `IN-1600.gz` | Block the official 1600 service series (also blocks your real bank), plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-1600.gz) | +| Raw list (CSV) | `spamwall-in.csv` | Every pattern and business number, for any app or spreadsheet | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.csv) | +| Raw list (JSON) | `spamwall-in.json` | Same data with a meta object, for scripts and AI | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.json) | +| Raw list (Markdown) | `spamwall-in.md` | Table for manual copying | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.md) | + +Each file also has a readable `.json` twin in `spamblocker/`. Release assets are flat, so every file name is unique. + +## Using SpamWall without SpamBlocker + +The raw lists in `raw/` (CSV, JSON, Markdown) are app-agnostic: the same rows as the SpamBlocker files, with columns `type,id,kind,value,description,source,priority`. `type` is allow, block or optional; `kind` is `pattern` (a regular expression) or `number` (an exact number). Numbers and patterns match the national number, without +91 or a leading 0. + +- **Any blocker or your phone's own block list:** open the CSV or Markdown file and copy what you need. Add `number` rows one by one, or paste them in bulk where the app allows. +- **Patterns need regex or prefix blocking.** If your app only blocks exact numbers, use the `number` rows. If it supports prefixes, turn simple patterns such as `^140\d{7}$` into the prefix `140`. +- **Build rules for another app with AI or a script:** feed `spamwall-in.json` (rules plus a `meta` object) to an AI assistant or a script and ask it to produce the format your app imports. +- **Mobile numbers are left out on purpose.** Individual 10-digit mobile numbers (starting 6 to 9) are never listed, for privacy. Only landline, toll-free and series numbers appear as `number` rows. + ## Step-by-step import diff --git a/raw/spamwall-in.csv b/raw/spamwall-in.csv new file mode 100644 index 0000000..f21113d --- /dev/null +++ b/raw/spamwall-in.csv @@ -0,0 +1,102 @@ +type,id,kind,value,description,source,priority +allow,IN-1601,pattern,^1601\d{6}$,"Official series for utilities, courier and logistics (deliveries)",TRAI Direction 10-08-2026,15 +allow,IN-AMAZON,pattern,^2263257863$,Amazon India customer service,public number,15 +block,IN-140,pattern,^140\d{7}$,Promotional / telemarketing series,TRAI TCCCPR 2018; RBI circular 2025-01 (140 = promotional only),5 +block,IN-BULK-MOBILE,pattern,^(657350|731361|914714|922807|942209|948470)\d{4}$,Bulk telemarketing mobile ranges,clustered from community spam reports,5 +block,IN-CC-BLR,pattern,^(803710|803720|804795|804819|806935|806954|806985)\d{4}$,Bengaluru call-centre blocks,clustered from community spam reports,5 +block,IN-CC-LANDLINE,pattern,^(1725|2250|2269|3366|3368|3371|4071|7935|7969|7971)\d{6}$,"Call-centre landline ranges (Chandigarh, Mumbai, Kolkata, Hyderabad, Ahmedabad)",clustered from community spam reports,5 +optional,IN-1600,pattern,^1600\d{6}$,"Official BFSI + Government service/transactional series. Blocks REAL bank, insurer, broker and govt calls too. Enable only if you add your own banks to allow.txt",TRAI Direction (PIB PRID 2191647),5 +block,IN-REPORTED-BUSINESS,number,1135137600,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1135139000,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1135354406,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1143079806,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1169116246,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1169116276,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1169123061,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1169123067,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1169123073,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1169123077,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1171638728,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1203127415,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1205083920,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1205168718,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1205173629,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1205173679,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1206435655,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1206435785,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1206436017,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1206916334,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1206916340,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1206916384,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1206916404,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1206916456,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1206924342,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1244180472,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1244790463,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1244790469,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1245148270,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1353501240,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1353501248,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1414762633,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1416180507,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1416180559,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1600318752,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,1726741521,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,19071139346,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2045907791,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2048566470,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2067451410,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2067801163,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2067874503,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2067874970,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2068283912,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2069137002,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2071243006,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2235018668,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2243691029,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2245870590,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2268539628,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2268700283,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2423351750,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2488715097,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,2653103252,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3335002601,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3335302610,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3340222381,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3340582902,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3340582923,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3340912900,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3340912932,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3340912946,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3340927234,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3340927334,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3344053501,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3344453585,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3348072549,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3349495947,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3361210639,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3361253369,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3361254412,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3361254428,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3361367329,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3369051308,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3369068433,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3369093908,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3369095418,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,3369096046,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,4038021223,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,4069654518,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,4069654612,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,4069658515,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,4461703549,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,4471637887,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,4471894908,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,5227159327,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,5227159533,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,5227165134,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,5227185470,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,5227187119,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,5227187120,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,5227188859,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,69795638505,Business number reported as spam,community spam reports,5 +block,IN-REPORTED-BUSINESS,number,91500224,Business number reported as spam,community spam reports,5 diff --git a/raw/spamwall-in.json b/raw/spamwall-in.json new file mode 100644 index 0000000..7c7ee39 --- /dev/null +++ b/raw/spamwall-in.json @@ -0,0 +1,921 @@ +{ + "meta": { + "name": "SpamWall", + "version": "0.3.0", + "country": "IN", + "matching": "national number without +91 or leading 0", + "license": "MIT", + "repo": "https://github.com/wasimness/spamwall" + }, + "rules": [ + { + "type": "allow", + "id": "IN-1601", + "kind": "pattern", + "value": "^1601\\d{6}$", + "description": "Official series for utilities, courier and logistics (deliveries)", + "source": "TRAI Direction 10-08-2026", + "priority": 15 + }, + { + "type": "allow", + "id": "IN-AMAZON", + "kind": "pattern", + "value": "^2263257863$", + "description": "Amazon India customer service", + "source": "public number", + "priority": 15 + }, + { + "type": "block", + "id": "IN-140", + "kind": "pattern", + "value": "^140\\d{7}$", + "description": "Promotional / telemarketing series", + "source": "TRAI TCCCPR 2018; RBI circular 2025-01 (140 = promotional only)", + "priority": 5 + }, + { + "type": "block", + "id": "IN-BULK-MOBILE", + "kind": "pattern", + "value": "^(657350|731361|914714|922807|942209|948470)\\d{4}$", + "description": "Bulk telemarketing mobile ranges", + "source": "clustered from community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-CC-BLR", + "kind": "pattern", + "value": "^(803710|803720|804795|804819|806935|806954|806985)\\d{4}$", + "description": "Bengaluru call-centre blocks", + "source": "clustered from community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-CC-LANDLINE", + "kind": "pattern", + "value": "^(1725|2250|2269|3366|3368|3371|4071|7935|7969|7971)\\d{6}$", + "description": "Call-centre landline ranges (Chandigarh, Mumbai, Kolkata, Hyderabad, Ahmedabad)", + "source": "clustered from community spam reports", + "priority": 5 + }, + { + "type": "optional", + "id": "IN-1600", + "kind": "pattern", + "value": "^1600\\d{6}$", + "description": "Official BFSI + Government service/transactional series. Blocks REAL bank, insurer, broker and govt calls too. Enable only if you add your own banks to allow.txt", + "source": "TRAI Direction (PIB PRID 2191647)", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1135137600", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1135139000", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1135354406", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1143079806", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1169116246", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1169116276", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1169123061", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1169123067", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1169123073", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1169123077", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1171638728", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1203127415", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1205083920", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1205168718", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1205173629", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1205173679", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1206435655", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1206435785", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1206436017", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1206916334", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1206916340", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1206916384", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1206916404", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1206916456", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1206924342", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1244180472", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1244790463", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1244790469", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1245148270", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1353501240", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1353501248", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1414762633", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1416180507", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1416180559", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1600318752", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "1726741521", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "19071139346", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2045907791", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2048566470", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2067451410", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2067801163", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2067874503", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2067874970", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2068283912", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2069137002", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2071243006", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2235018668", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2243691029", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2245870590", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2268539628", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2268700283", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2423351750", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2488715097", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "2653103252", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3335002601", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3335302610", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3340222381", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3340582902", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3340582923", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3340912900", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3340912932", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3340912946", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3340927234", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3340927334", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3344053501", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3344453585", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3348072549", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3349495947", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3361210639", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3361253369", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3361254412", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3361254428", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3361367329", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3369051308", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3369068433", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3369093908", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3369095418", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "3369096046", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "4038021223", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "4069654518", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "4069654612", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "4069658515", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "4461703549", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "4471637887", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "4471894908", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "5227159327", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "5227159533", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "5227165134", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "5227185470", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "5227187119", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "5227187120", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "5227188859", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "69795638505", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + }, + { + "type": "block", + "id": "IN-REPORTED-BUSINESS", + "kind": "number", + "value": "91500224", + "description": "Business number reported as spam", + "source": "community spam reports", + "priority": 5 + } + ] +} diff --git a/raw/spamwall-in.md b/raw/spamwall-in.md new file mode 100644 index 0000000..85ccc91 --- /dev/null +++ b/raw/spamwall-in.md @@ -0,0 +1,108 @@ + +# SpamWall IN raw list (v0.3.0) + +Numbers are matched as the national number, without +91 or a leading 0. Patterns are regular expressions; numbers are exact matches. + +| type | id | kind | value | description | source | priority | +|---|---|---|---|---|---|---| +| allow | IN-1601 | pattern | `^1601\d{6}$` | Official series for utilities, courier and logistics (deliveries) | TRAI Direction 10-08-2026 | 15 | +| allow | IN-AMAZON | pattern | `^2263257863$` | Amazon India customer service | public number | 15 | +| block | IN-140 | pattern | `^140\d{7}$` | Promotional / telemarketing series | TRAI TCCCPR 2018; RBI circular 2025-01 (140 = promotional only) | 5 | +| block | IN-BULK-MOBILE | pattern | `^(657350\|731361\|914714\|922807\|942209\|948470)\d{4}$` | Bulk telemarketing mobile ranges | clustered from community spam reports | 5 | +| block | IN-CC-BLR | pattern | `^(803710\|803720\|804795\|804819\|806935\|806954\|806985)\d{4}$` | Bengaluru call-centre blocks | clustered from community spam reports | 5 | +| block | IN-CC-LANDLINE | pattern | `^(1725\|2250\|2269\|3366\|3368\|3371\|4071\|7935\|7969\|7971)\d{6}$` | Call-centre landline ranges (Chandigarh, Mumbai, Kolkata, Hyderabad, Ahmedabad) | clustered from community spam reports | 5 | +| optional | IN-1600 | pattern | `^1600\d{6}$` | Official BFSI + Government service/transactional series. Blocks REAL bank, insurer, broker and govt calls too. Enable only if you add your own banks to allow.txt | TRAI Direction (PIB PRID 2191647) | 5 | +| block | IN-REPORTED-BUSINESS | number | `1135137600` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1135139000` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1135354406` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1143079806` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1169116246` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1169116276` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1169123061` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1169123067` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1169123073` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1169123077` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1171638728` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1203127415` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1205083920` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1205168718` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1205173629` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1205173679` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1206435655` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1206435785` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1206436017` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1206916334` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1206916340` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1206916384` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1206916404` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1206916456` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1206924342` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1244180472` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1244790463` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1244790469` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1245148270` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1353501240` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1353501248` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1414762633` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1416180507` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1416180559` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1600318752` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `1726741521` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `19071139346` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2045907791` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2048566470` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2067451410` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2067801163` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2067874503` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2067874970` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2068283912` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2069137002` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2071243006` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2235018668` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2243691029` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2245870590` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2268539628` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2268700283` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2423351750` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2488715097` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `2653103252` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3335002601` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3335302610` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3340222381` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3340582902` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3340582923` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3340912900` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3340912932` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3340912946` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3340927234` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3340927334` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3344053501` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3344453585` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3348072549` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3349495947` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3361210639` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3361253369` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3361254412` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3361254428` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3361367329` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3369051308` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3369068433` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3369093908` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3369095418` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `3369096046` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `4038021223` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `4069654518` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `4069654612` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `4069658515` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `4461703549` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `4471637887` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `4471894908` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `5227159327` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `5227159533` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `5227165134` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `5227185470` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `5227187119` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `5227187120` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `5227188859` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `69795638505` | Business number reported as spam | community spam reports | 5 | +| block | IN-REPORTED-BUSINESS | number | `91500224` | Business number reported as spam | community spam reports | 5 | diff --git a/rules/in/numbers/IN-REPORTED-BUSINESS.txt b/rules/in/numbers/IN-REPORTED-BUSINESS.txt new file mode 100644 index 0000000..1a7b9ca --- /dev/null +++ b/rules/in/numbers/IN-REPORTED-BUSINESS.txt @@ -0,0 +1,98 @@ +# SpamWall, business landline, toll-free and series numbers reported as spam by the community. +# Mobile numbers (10 digits starting 6-9) are excluded for privacy. +# Matched without +91 or leading 0. One number per line, sorted, deduplicated. +# Numbers already covered by a SpamWall block pattern are left out. +1135137600 +1135139000 +1135354406 +1143079806 +1169116246 +1169116276 +1169123061 +1169123067 +1169123073 +1169123077 +1171638728 +1203127415 +1205083920 +1205168718 +1205173629 +1205173679 +1206435655 +1206435785 +1206436017 +1206916334 +1206916340 +1206916384 +1206916404 +1206916456 +1206924342 +1244180472 +1244790463 +1244790469 +1245148270 +1353501240 +1353501248 +1414762633 +1416180507 +1416180559 +1600318752 +1726741521 +19071139346 +2045907791 +2048566470 +2067451410 +2067801163 +2067874503 +2067874970 +2068283912 +2069137002 +2071243006 +2235018668 +2243691029 +2245870590 +2268539628 +2268700283 +2423351750 +2488715097 +2653103252 +3335002601 +3335302610 +3340222381 +3340582902 +3340582923 +3340912900 +3340912932 +3340912946 +3340927234 +3340927334 +3344053501 +3344453585 +3348072549 +3349495947 +3361210639 +3361253369 +3361254412 +3361254428 +3361367329 +3369051308 +3369068433 +3369093908 +3369095418 +3369096046 +4038021223 +4069654518 +4069654612 +4069658515 +4461703549 +4471637887 +4471894908 +5227159327 +5227159533 +5227165134 +5227185470 +5227187119 +5227187120 +5227188859 +69795638505 +91500224 diff --git a/tools/build_spamblocker.py b/tools/build_spamblocker.py index cb17aca..b3d2926 100644 --- a/tools/build_spamblocker.py +++ b/tools/build_spamblocker.py @@ -1,16 +1,21 @@ """Build the SpamBlocker import files from rules// and write patterns.md. Usage: python -I tools/build_spamblocker.py -Writes spamblocker/{settings,rules-default,rules-strict,complete}.{gz,json} -and rules//patterns.md. Old spamwall-*.{gz,json} files are removed. +Writes spamblocker/{settings,rules-default,rules-strict,complete}.{gz,json}, +raw/spamwall-.{csv,json,md} and rules//patterns.md. Old spamwall-*.{gz,json} files are removed. """ +import csv import gzip +import io import json import re from pathlib import Path ROOT = Path(__file__).resolve().parent.parent OUT = ROOT / "spamblocker" +RAW = ROOT / "raw" +VERSION = "0.3.0" +REPO = "https://github.com/wasimness/spamwall" ALLOW_PRIORITY = 15 # whitelist rules run first BLOCK_PRIORITY = 5 # never equal to an allow priority (SpamBlocker issue #166) FLAGS_CALL_AND_SMS = 3 @@ -111,6 +116,50 @@ def patterns_md(cc, d): return head + "\n".join(rows) + "\n" +def read_numbers(d): + f = d / "numbers" / "IN-REPORTED-BUSINESS.txt" + if not f.exists(): + return [] + return sorted({l.strip() for l in f.read_text(encoding="utf-8").splitlines() if l.strip() and not l.startswith("#")}) + + +def raw_rows(d): + rows = [] + for kind, prio in (("allow", ALLOW_PRIORITY), ("block", BLOCK_PRIORITY), ("optional", BLOCK_PRIORITY)): + for r in read_dir(d / kind): + rows.append({"type": kind, "id": r["id"], "kind": "pattern", "value": r["pattern"], + "description": r["what"], "source": r["source"], "priority": prio}) + for n in read_numbers(d): + rows.append({"type": "block", "id": "IN-REPORTED-BUSINESS", "kind": "number", "value": n, + "description": "Business number reported as spam", "source": "community spam reports", + "priority": BLOCK_PRIORITY}) + return rows + + +COLS = ["type", "id", "kind", "value", "description", "source", "priority"] + + +def raw_files(cc, d): + rows = raw_rows(d) + buf = io.StringIO(newline="") + w = csv.DictWriter(buf, fieldnames=COLS, lineterminator="\n") + w.writeheader() + w.writerows(rows) + meta = {"name": "SpamWall", "version": VERSION, "country": cc.upper(), + "matching": "national number without +91 or leading 0", "license": "MIT", "repo": REPO} + js = json.dumps({"meta": meta, "rules": rows}, indent=1, ensure_ascii=False) + "\n" + esc = lambda t: str(t).replace("|", "\\|") + md = ["", + f"# SpamWall {cc.upper()} raw list (v{VERSION})", "", + "Numbers are matched as the national number, without +91 or a leading 0. " + "Patterns are regular expressions; numbers are exact matches.", "", + "| " + " | ".join(COLS) + " |", "|" + "---|" * len(COLS)] + for r in rows: + v = f"`{esc(r['value'])}`" + md.append("| " + " | ".join([r["type"], r["id"], r["kind"], v, esc(r["description"]), esc(r["source"]), str(r["priority"])]) + " |") + return {f"spamwall-{cc}.csv": buf.getvalue(), f"spamwall-{cc}.json": js, f"spamwall-{cc}.md": "\n".join(md) + "\n"} + + def main(): OUT.mkdir(exist_ok=True) (OUT / "types").mkdir(exist_ok=True) @@ -123,6 +172,10 @@ def main(): with gzip.GzipFile(OUT / f"{name}.gz", "wb", mtime=0) as f: f.write(data.encode("utf-8")) print("built", name) + RAW.mkdir(exist_ok=True) + for name, text in raw_files(cc_dir.name, cc_dir).items(): + (RAW / name).write_text(text, encoding="utf-8", newline="\n") + print("built raw", name) (cc_dir / "patterns.md").write_text(patterns_md(cc_dir.name, cc_dir), encoding="utf-8", newline="\n") diff --git a/tools/check.py b/tools/check.py index d5bf536..b1ede67 100644 --- a/tools/check.py +++ b/tools/check.py @@ -9,6 +9,8 @@ ids = {} for txt in (ROOT / "rules").rglob("*.txt"): folder = txt.parent.name + if folder == "numbers": + continue n_rules = 0 text = txt.read_text(encoding="utf-8") for n, line in enumerate(text.splitlines(), 1): @@ -46,7 +48,7 @@ def gen(): - paths = [p for p in (ROOT / "spamblocker").rglob("*") if p.is_file()] + list((ROOT / "rules").rglob("patterns.md")) + paths = [p for p in (ROOT / "spamblocker").rglob("*") if p.is_file()] + list((ROOT / "rules").rglob("patterns.md")) + list((ROOT / "raw").rglob("*")) return {str(p.relative_to(ROOT)): p.read_bytes() for p in paths} @@ -55,6 +57,29 @@ def gen(): after = gen() if before != after: errors.append("generated files are out of date: run tools/build_spamblocker.py and commit") +mobile = re.compile(r"^[6-9]\d{9}$") +for f in (ROOT / "rules" / "in" / "numbers").glob("*.txt"): + for n, line in enumerate(f.read_text(encoding="utf-8").splitlines(), 1): + s = line.strip() + if not s or s.startswith("#"): + continue + if not re.fullmatch(r"\d{4,11}", s): + errors.append(f"{f}:{n} not a valid number: {s}") + if mobile.match(s): + errors.append(f"{f}:{n} contains a 10-digit mobile number") +for f in (ROOT / "raw").glob("*"): + for n, line in enumerate(f.read_text(encoding="utf-8").splitlines(), 1): + if re.search(r"(? Date: Fri, 27 Nov 2026 15:39:34 +0530 Subject: [PATCH 2/5] docs: SpamBlocker as the app we use, raw lists first; drop 3 malformed numbers Co-Authored-By: Claude Opus 5.5 --- README.md | 15 ++++++------- raw/spamwall-in.csv | 3 --- raw/spamwall-in.json | 27 ----------------------- raw/spamwall-in.md | 3 --- rules/in/numbers/IN-REPORTED-BUSINESS.txt | 3 --- 5 files changed, 7 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index 05933e0..2392e57 100644 --- a/README.md +++ b/README.md @@ -2,22 +2,21 @@ ![SpamWall: spam call and SMS block patterns for India](assets/banner.svg) -**For Indian phone numbers (+91), calls and SMS.** SpamWall is a set of pattern-based block rules you can import in one click. It is built for [SpamBlocker](https://github.com/aj3423/SpamBlocker) on Android; the plain regex lists work in any blocker that accepts regular expressions. +**For Indian phone numbers (+91), calls and SMS.** SpamWall is an open list of spam number patterns and numbers. Use the raw CSV, JSON or Markdown lists in any blocker app, or import the ready-made files into SpamBlocker, the Android app we currently use. It blocks whole number ranges used by telemarketers and call centres instead of single numbers. Every rule filters both calls and SMS. Calls and messages from shopping, delivery, ride and payment apps, from your contacts, and from official service lines are never blocked. > SMS filtering works only when **SMS** is switched on under *Settings > Screening* in SpamBlocker; follow the setup prompt it shows. -## The app: SpamBlocker +## The app we currently use -SpamWall's import files are made for **[SpamBlocker](https://github.com/aj3423/SpamBlocker)**, a free, open-source call and SMS blocker for Android by aj3423. It is the app the maintainer uses every day with these rules. +We use **[SpamBlocker](https://github.com/aj3423/SpamBlocker)** (free, open source, Android), so the one-click import files are in its format. Any other blocker works with the raw lists. -- Get it from [F-Droid](https://f-droid.org/packages/spam.blocker/) or the [GitHub releases page](https://github.com/aj3423/SpamBlocker/releases). -- It runs on your phone with no account, and number checks happen on the device. -- Questions about the app itself go to the [SpamBlocker repository](https://github.com/aj3423/SpamBlocker/issues); questions about these rules go [here](../../issues). +- Get SpamBlocker from [F-Droid](https://f-droid.org/packages/spam.blocker/) or its [GitHub releases](https://github.com/aj3423/SpamBlocker/releases). +- App questions go to the [SpamBlocker repository](https://github.com/aj3423/SpamBlocker/issues); questions about these lists go [here](../../issues). -SpamWall is a separate community project and is not made by or affiliated with SpamBlocker. +SpamWall is an independent project, not made by or affiliated with SpamBlocker. -## Quick start (SpamBlocker) +## Quick start (if you use SpamBlocker) 1. Export a backup first (**Settings > Backup > Export**), because an import replaces your number rules. 2. Download [`spamblocker/complete.gz`](spamblocker/complete.gz), then **Settings > Backup > Import** and pick it. diff --git a/raw/spamwall-in.csv b/raw/spamwall-in.csv index f21113d..b204927 100644 --- a/raw/spamwall-in.csv +++ b/raw/spamwall-in.csv @@ -42,7 +42,6 @@ block,IN-REPORTED-BUSINESS,number,1416180507,Business number reported as spam,co block,IN-REPORTED-BUSINESS,number,1416180559,Business number reported as spam,community spam reports,5 block,IN-REPORTED-BUSINESS,number,1600318752,Business number reported as spam,community spam reports,5 block,IN-REPORTED-BUSINESS,number,1726741521,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,19071139346,Business number reported as spam,community spam reports,5 block,IN-REPORTED-BUSINESS,number,2045907791,Business number reported as spam,community spam reports,5 block,IN-REPORTED-BUSINESS,number,2048566470,Business number reported as spam,community spam reports,5 block,IN-REPORTED-BUSINESS,number,2067451410,Business number reported as spam,community spam reports,5 @@ -98,5 +97,3 @@ block,IN-REPORTED-BUSINESS,number,5227185470,Business number reported as spam,co block,IN-REPORTED-BUSINESS,number,5227187119,Business number reported as spam,community spam reports,5 block,IN-REPORTED-BUSINESS,number,5227187120,Business number reported as spam,community spam reports,5 block,IN-REPORTED-BUSINESS,number,5227188859,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,69795638505,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,91500224,Business number reported as spam,community spam reports,5 diff --git a/raw/spamwall-in.json b/raw/spamwall-in.json index 7c7ee39..33f9bdc 100644 --- a/raw/spamwall-in.json +++ b/raw/spamwall-in.json @@ -395,15 +395,6 @@ "source": "community spam reports", "priority": 5 }, - { - "type": "block", - "id": "IN-REPORTED-BUSINESS", - "kind": "number", - "value": "19071139346", - "description": "Business number reported as spam", - "source": "community spam reports", - "priority": 5 - }, { "type": "block", "id": "IN-REPORTED-BUSINESS", @@ -898,24 +889,6 @@ "description": "Business number reported as spam", "source": "community spam reports", "priority": 5 - }, - { - "type": "block", - "id": "IN-REPORTED-BUSINESS", - "kind": "number", - "value": "69795638505", - "description": "Business number reported as spam", - "source": "community spam reports", - "priority": 5 - }, - { - "type": "block", - "id": "IN-REPORTED-BUSINESS", - "kind": "number", - "value": "91500224", - "description": "Business number reported as spam", - "source": "community spam reports", - "priority": 5 } ] } diff --git a/raw/spamwall-in.md b/raw/spamwall-in.md index 85ccc91..3c1266f 100644 --- a/raw/spamwall-in.md +++ b/raw/spamwall-in.md @@ -48,7 +48,6 @@ Numbers are matched as the national number, without +91 or a leading 0. Patterns | block | IN-REPORTED-BUSINESS | number | `1416180559` | Business number reported as spam | community spam reports | 5 | | block | IN-REPORTED-BUSINESS | number | `1600318752` | Business number reported as spam | community spam reports | 5 | | block | IN-REPORTED-BUSINESS | number | `1726741521` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `19071139346` | Business number reported as spam | community spam reports | 5 | | block | IN-REPORTED-BUSINESS | number | `2045907791` | Business number reported as spam | community spam reports | 5 | | block | IN-REPORTED-BUSINESS | number | `2048566470` | Business number reported as spam | community spam reports | 5 | | block | IN-REPORTED-BUSINESS | number | `2067451410` | Business number reported as spam | community spam reports | 5 | @@ -104,5 +103,3 @@ Numbers are matched as the national number, without +91 or a leading 0. Patterns | block | IN-REPORTED-BUSINESS | number | `5227187119` | Business number reported as spam | community spam reports | 5 | | block | IN-REPORTED-BUSINESS | number | `5227187120` | Business number reported as spam | community spam reports | 5 | | block | IN-REPORTED-BUSINESS | number | `5227188859` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `69795638505` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `91500224` | Business number reported as spam | community spam reports | 5 | diff --git a/rules/in/numbers/IN-REPORTED-BUSINESS.txt b/rules/in/numbers/IN-REPORTED-BUSINESS.txt index 1a7b9ca..6266488 100644 --- a/rules/in/numbers/IN-REPORTED-BUSINESS.txt +++ b/rules/in/numbers/IN-REPORTED-BUSINESS.txt @@ -38,7 +38,6 @@ 1416180559 1600318752 1726741521 -19071139346 2045907791 2048566470 2067451410 @@ -94,5 +93,3 @@ 5227187119 5227187120 5227188859 -69795638505 -91500224 From 3d648ce26882525f48bf23b653a24acc4d53ad80 Mon Sep 17 00:00:00 2001 From: Wasim Akram <55689108+wasimness@users.noreply.github.com> Date: Fri, 27 Nov 2026 15:43:35 +0530 Subject: [PATCH 3/5] Group downloads: 7 SpamBlocker files in 4 groups plus raw CSV/JSON Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 3 + CONTRIBUTING.md | 2 +- README.md | 37 ++- docs/IMPORT.md | 37 ++- raw/spamwall-in.csv | 198 ++++++------ raw/spamwall-in.json | 294 ++++++++++++------ raw/spamwall-in.md | 200 ++++++------ rules/in/block/IN-140.txt | 1 + rules/in/block/IN-BULK-MOBILE.txt | 1 + rules/in/block/IN-CC-BLR.txt | 1 + rules/in/block/IN-CC-LANDLINE.txt | 1 + rules/in/optional/IN-1600.txt | 3 +- .../{rules-default.gz => all-rules.gz} | Bin 651 -> 647 bytes .../{rules-default.json => all-rules.json} | 0 .../{types/IN-1600.gz => group-banks-govt.gz} | Bin 450 -> 459 bytes .../IN-1600.json => group-banks-govt.json} | 0 spamblocker/group-call-centres.gz | Bin 0 -> 563 bytes ...-LANDLINE.json => group-call-centres.json} | 17 + spamblocker/group-spam-mobiles.gz | Bin 0 -> 476 bytes ...LK-MOBILE.json => group-spam-mobiles.json} | 0 spamblocker/group-telemarketing.gz | Bin 0 -> 426 bytes .../IN-140.json => group-telemarketing.json} | 0 spamblocker/rules-strict.gz | Bin 722 -> 0 bytes spamblocker/rules-strict.json | 130 -------- spamblocker/types/IN-140.gz | Bin 413 -> 0 bytes spamblocker/types/IN-BULK-MOBILE.gz | Bin 472 -> 0 bytes spamblocker/types/IN-CC-BLR.gz | Bin 450 -> 0 bytes spamblocker/types/IN-CC-BLR.json | 62 ---- spamblocker/types/IN-CC-LANDLINE.gz | Bin 499 -> 0 bytes tools/build_spamblocker.py | 61 ++-- tools/check.py | 31 +- 31 files changed, 520 insertions(+), 559 deletions(-) rename spamblocker/{rules-default.gz => all-rules.gz} (53%) rename spamblocker/{rules-default.json => all-rules.json} (100%) rename spamblocker/{types/IN-1600.gz => group-banks-govt.gz} (50%) rename spamblocker/{types/IN-1600.json => group-banks-govt.json} (100%) create mode 100644 spamblocker/group-call-centres.gz rename spamblocker/{types/IN-CC-LANDLINE.json => group-call-centres.json} (76%) create mode 100644 spamblocker/group-spam-mobiles.gz rename spamblocker/{types/IN-BULK-MOBILE.json => group-spam-mobiles.json} (100%) create mode 100644 spamblocker/group-telemarketing.gz rename spamblocker/{types/IN-140.json => group-telemarketing.json} (100%) delete mode 100644 spamblocker/rules-strict.gz delete mode 100644 spamblocker/rules-strict.json delete mode 100644 spamblocker/types/IN-140.gz delete mode 100644 spamblocker/types/IN-BULK-MOBILE.gz delete mode 100644 spamblocker/types/IN-CC-BLR.gz delete mode 100644 spamblocker/types/IN-CC-BLR.json delete mode 100644 spamblocker/types/IN-CC-LANDLINE.gz diff --git a/CHANGELOG.md b/CHANGELOG.md index 24f1f62..d878d4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [0.3.0] - 2026-11-27 +### Changed +- Downloads reduced to 7 SpamBlocker files in 4 essential groups plus raw CSV/JSON; per-pattern import files removed. Block patterns now carry a `group` (header line and raw `group` column). + ### Added - Raw, app-agnostic lists in `raw/`: `spamwall-in.csv`, `spamwall-in.json` (with a `meta` object) and `spamwall-in.md`. - `rules/in/numbers/IN-REPORTED-BUSINESS.txt`: business landline, toll-free and series numbers reported as spam (mobiles excluded for privacy). Used in the raw lists only, not in the SpamBlocker files. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c22d5c4..90393ff 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing -- Rules live in `rules//`: one file per pattern in `allow/`, `block/` and `optional/` (named by ID), and `allow-apps.txt`. +- Rules live in `rules//`: one file per pattern in `allow/`, `block/` and `optional/` (named by ID), and `allow-apps.txt`. Every new `block/` or `optional/` pattern must name its group in a `# Group: ` header line: `telemarketing`, `call-centres`, `spam-mobiles` or `banks-govt` (groups are defined in `tools/build_spamblocker.py`; a new group needs a maintainer decision and README/IMPORT table rows). - One regex per line, matched against the national number (no country code, no leading 0), followed by `# ID | what | source`. - Prefer a range (pattern) over single numbers, but keep it narrow: a block must not catch shopping, delivery, ride, payment, bank or government service calls. - Never add official service series (India: 1600, 1601) to `block/`. diff --git a/README.md b/README.md index 2392e57..e8efe83 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![SpamWall: spam call and SMS block patterns for India](assets/banner.svg) -**For Indian phone numbers (+91), calls and SMS.** SpamWall is an open list of spam number patterns and numbers. Use the raw CSV, JSON or Markdown lists in any blocker app, or import the ready-made files into SpamBlocker, the Android app we currently use. +**For Indian phone numbers (+91), calls and SMS.** SpamWall is an open list of spam number patterns and numbers. Use the raw CSV or JSON lists in any blocker app, or import the ready-made files into SpamBlocker, the Android app we currently use. It blocks whole number ranges used by telemarketers and call centres instead of single numbers. Every rule filters both calls and SMS. Calls and messages from shopping, delivery, ride and payment apps, from your contacts, and from official service lines are never blocked. @@ -26,22 +26,21 @@ SpamWall is an independent project, not made by or affiliated with SpamBlocker. | Label | File | Description | Download | |---|---|---|---| -| Everything | `complete.gz` | Settings plus default rules, one-tap full setup (SpamBlocker) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/complete.gz) | -| App settings | `settings.gz` | Only the Others category: contacts, STIR, repeated call, dialed, answered, Recent Apps | [Download](https://github.com/wasimness/spamwall/releases/latest/download/settings.gz) | -| All rules | `rules-default.gz` | Only the Regex Settings category: allow rules and default block rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/rules-default.gz) | -| Strict rules | `rules-strict.gz` | `rules-default` plus IN-1600 (bank and government service calls) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/rules-strict.gz) | -| Promo calls (140) | `IN-140.gz` | Block the 140 promotional series, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-140.gz) | -| Call-centre landlines | `IN-CC-LANDLINE.gz` | Block call-centre landline ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-CC-LANDLINE.gz) | -| Bengaluru call centres | `IN-CC-BLR.gz` | Block narrow Bengaluru call-centre blocks, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-CC-BLR.gz) | -| Bulk telemarketing mobiles | `IN-BULK-MOBILE.gz` | Block bulk telemarketing mobile ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-BULK-MOBILE.gz) | -| Bank and govt series (1600) | `IN-1600.gz` | Block the official 1600 service series (also blocks your real bank), plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-1600.gz) | -| Raw list (CSV) | `spamwall-in.csv` | Every pattern and business number, for any app or spreadsheet | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.csv) | +| Everything (recommended) | `complete.gz` | Settings plus all default rules (not the bank group): one-tap full setup | [Download](https://github.com/wasimness/spamwall/releases/latest/download/complete.gz) | +| App settings only | `settings.gz` | Only the Others category: contacts, STIR, repeated call, dialed, answered, Recent Apps | [Download](https://github.com/wasimness/spamwall/releases/latest/download/settings.gz) | +| All spam rules | `all-rules.gz` | Allow rules plus the three default groups (not the bank group) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/all-rules.gz) | +| Promo and telemarketing calls | `group-telemarketing.gz` | Group `telemarketing`: the 140 promotional series, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-telemarketing.gz) | +| Call-centre ranges | `group-call-centres.gz` | Group `call-centres`: call-centre landline and Bengaluru ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-call-centres.gz) | +| Spam mobile ranges | `group-spam-mobiles.gz` | Group `spam-mobiles`: bulk telemarketing mobile ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-spam-mobiles.gz) | +| Bank and government calls (optional) | `group-banks-govt.gz` | Group `banks-govt`: the official 1600 series (also blocks your real bank), plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-banks-govt.gz) | +| Raw list (CSV) | `spamwall-in.csv` | Every pattern and business number with its group, for any app or spreadsheet | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.csv) | | Raw list (JSON) | `spamwall-in.json` | Same data with a meta object, for scripts and AI | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.json) | -| Raw list (Markdown) | `spamwall-in.md` | Table for manual copying | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.md) | -Each `.gz` has a readable `.json` twin in `spamblocker/`. Source rules: [`rules/in/`](rules/in/) (one file per pattern in `allow/`, `block/` and `optional/`, plus [`allow-apps.txt`](rules/in/allow-apps.txt) and `numbers/`), table of every pattern: [`rules/in/patterns.md`](rules/in/patterns.md). +Groups don't stack in SpamBlocker (each rules import replaces the number rules), so to block two groups, import `all-rules.gz`, or import one group and add the other patterns by hand from `rules/in/`. For all rules plus banks, import `all-rules.gz`, then add the IN-1600 pattern by hand. -**What can be combined:** `settings` + any ONE rules file (`rules-default`, `rules-strict` or one `types/` file) is fine. Two rules files do not stack: the second replaces the first, and also deletes your own number rules. `complete` already has settings and default rules. +Each `.gz` has a readable `.json` twin in `spamblocker/`. The raw list also exists as a Markdown table, [`raw/spamwall-in.md`](raw/spamwall-in.md), for reading in the repo (not a release download). Source rules: [`rules/in/`](rules/in/) (one file per pattern in `allow/`, `block/` and `optional/`, each block pattern with a `# Group:` line, plus [`allow-apps.txt`](rules/in/allow-apps.txt) and `numbers/`), table of every pattern: [`rules/in/patterns.md`](rules/in/patterns.md). + +**What can be combined:** `settings.gz` + any ONE rules file is fine. `complete.gz` already has settings and all default rules. **Short version of the caveats:** settings never touch number rules; rules never touch settings. Importing `settings.gz` replaces your Recent Apps list and allow switches. Export a backup first, it is your undo. Not tested on every phone and SpamBlocker version, so report problems as issues. Details: [docs/IMPORT.md](docs/IMPORT.md). @@ -49,9 +48,9 @@ Each `.gz` has a readable `.json` twin in `spamblocker/`. Source rules: [`rules/ ## Using SpamWall without SpamBlocker -The raw lists in `raw/` (CSV, JSON, Markdown) are app-agnostic: the same rows as the SpamBlocker files, with columns `type,id,kind,value,description,source,priority`. `type` is allow, block or optional; `kind` is `pattern` (a regular expression) or `number` (an exact number). Numbers and patterns match the national number, without +91 or a leading 0. +The raw lists in `raw/` (CSV, JSON) are app-agnostic: the same rows as the SpamBlocker files, with columns `type,id,kind,value,description,source,priority,group`. `type` is allow, block or optional; `group` is the block group (`telemarketing`, `call-centres`, `spam-mobiles`, `banks-govt`; empty for allow rows and numbers); `kind` is `pattern` (a regular expression) or `number` (an exact number). Numbers and patterns match the national number, without +91 or a leading 0. -- **Any blocker or your phone's own block list:** open the CSV or Markdown file and copy what you need. Add `number` rows one by one, or paste them in bulk where the app allows. +- **Any blocker or your phone's own block list:** open the CSV file and copy what you need. Add `number` rows one by one, or paste them in bulk where the app allows. - **Patterns need regex or prefix blocking.** If your app only blocks exact numbers, use the `number` rows. If it supports prefixes, turn simple patterns such as `^140\d{7}$` into the prefix `140`. - **Build rules for another app with AI or a script:** feed `spamwall-in.json` (rules plus a `meta` object) to an AI assistant or a script and ask it to produce the format your app imports. - **Mobile numbers are left out on purpose.** Individual 10-digit mobile numbers (starting 6 to 9) are never listed, for privacy. Only landline, toll-free and series numbers appear as `number` rows. @@ -86,13 +85,13 @@ Numbers are matched without `+91` or a leading `0`. | IN-CC-BLR | `^(803710\|...)\d{4}$` | Narrow Bengaluru call-centre blocks. Bengaluru `080` numbers are not blocked as a whole, because delivery apps call from them | Clustered from community spam reports | | IN-BULK-MOBILE | `^(657350\|...)\d{4}$` | Mobile number blocks used for bulk telemarketing | Clustered from community spam reports | -### Optional (`rules-strict` only) +### Optional (group `banks-govt` only) | ID | Pattern | What it blocks | Why it is off by default | |---|---|---|---| | IN-1600 | `^1600\d{6}$` | Service and transactional calls from banks, insurers, brokers, mutual funds and government | This is the **official** series that regulated entities must use ([TRAI, PIB](https://pib.gov.in/PressReleasePage.aspx?PRID=2191647)). Blocking it also blocks your real bank. | -**Credit card and loan spam:** promotions must come from the 140 series, which is blocked. Official bank calls must come from 1600, which stays allowed in the default file. A loan or credit-card pitch from an ordinary mobile or landline breaks TRAI rules; report it in the **Report Spam** app (TRAI DND) and open a *New spam pattern* issue here. +**Credit card and loan spam:** promotions must come from the 140 series, which is blocked. Official bank calls must come from 1600, which is not blocked by `complete.gz` or `all-rules.gz`. A loan or credit-card pitch from an ordinary mobile or landline breaks TRAI rules; report it in the **Report Spam** app (TRAI DND) and open a *New spam pattern* issue here. ## Blocked by mistake? @@ -100,7 +99,7 @@ Open an [**Unblock request**](../../issues/new?template=unblock-request.yml). Gi ## Contributing -See [CONTRIBUTING.md](CONTRIBUTING.md). Edit the files in `rules//allow/`, `block/` and `optional/`, then run `python -I tools/build_spamblocker.py` to rebuild the import files. +See [CONTRIBUTING.md](CONTRIBUTING.md). Edit the files in `rules//allow/`, `block/` and `optional/` (a new block pattern must name its group), then run `python -I tools/build_spamblocker.py` to rebuild the import files. ## License diff --git a/docs/IMPORT.md b/docs/IMPORT.md index 3befee0..0f7c5a2 100644 --- a/docs/IMPORT.md +++ b/docs/IMPORT.md @@ -2,8 +2,8 @@ > **Read this first** > -> - Settings and rules import separately. `settings.gz` only touches app settings (allow switches, Recent Apps) and never your number rules. `rules-*.gz` and `types/*.gz` only touch number rules. `complete.gz` does both. -> - Number-rule imports do not stack. Each import replaces ALL number rules, including your own and any earlier SpamWall import. Pick ONE: a single type file (blocks only that kind of call) OR `rules-default.gz` / `rules-strict.gz` (all types). For two or three types, import the all-types file, or import one type file and add the other patterns by hand with "New" in Number Rules, copying the regex from `rules/in/block/.txt`. +> - Settings and rules import separately. `settings.gz` only touches app settings (allow switches, Recent Apps) and never your number rules. `all-rules.gz` and `group-*.gz` only touch number rules. `complete.gz` does both. +> - Number-rule imports do not stack. Each import replaces ALL number rules, including your own and any earlier SpamWall import. To block two or three groups, import `all-rules.gz`, or import one group and add the other patterns by hand with "New" in Number Rules, copying the regex from `rules/in/block/.txt`. For all rules plus banks, import `all-rules.gz` and add IN-1600 (from `rules/in/optional/IN-1600.txt`) by hand. > - Importing `settings.gz` replaces your Recent Apps list and the allow switches. > - Always export a backup first; importing it again is the undo. > - The maintainer has not tested this on every phone and SpamBlocker version. Report problems as [issues](../../issues). @@ -16,26 +16,25 @@ SpamBlocker for Android, from [F-Droid](https://f-droid.org/packages/spam.blocke | Label | File | Description | Download | |---|---|---|---| -| Everything | `complete.gz` | Settings plus default rules, one-tap full setup (SpamBlocker) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/complete.gz) | -| App settings | `settings.gz` | Only the Others category: contacts, STIR, repeated call, dialed, answered, Recent Apps | [Download](https://github.com/wasimness/spamwall/releases/latest/download/settings.gz) | -| All rules | `rules-default.gz` | Only the Regex Settings category: allow rules and default block rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/rules-default.gz) | -| Strict rules | `rules-strict.gz` | `rules-default` plus IN-1600 (bank and government service calls) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/rules-strict.gz) | -| Promo calls (140) | `IN-140.gz` | Block the 140 promotional series, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-140.gz) | -| Call-centre landlines | `IN-CC-LANDLINE.gz` | Block call-centre landline ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-CC-LANDLINE.gz) | -| Bengaluru call centres | `IN-CC-BLR.gz` | Block narrow Bengaluru call-centre blocks, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-CC-BLR.gz) | -| Bulk telemarketing mobiles | `IN-BULK-MOBILE.gz` | Block bulk telemarketing mobile ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-BULK-MOBILE.gz) | -| Bank and govt series (1600) | `IN-1600.gz` | Block the official 1600 service series (also blocks your real bank), plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/IN-1600.gz) | -| Raw list (CSV) | `spamwall-in.csv` | Every pattern and business number, for any app or spreadsheet | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.csv) | +| Everything (recommended) | `complete.gz` | Settings plus all default rules (not the bank group): one-tap full setup | [Download](https://github.com/wasimness/spamwall/releases/latest/download/complete.gz) | +| App settings only | `settings.gz` | Only the Others category: contacts, STIR, repeated call, dialed, answered, Recent Apps | [Download](https://github.com/wasimness/spamwall/releases/latest/download/settings.gz) | +| All spam rules | `all-rules.gz` | Allow rules plus the three default groups (not the bank group) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/all-rules.gz) | +| Promo and telemarketing calls | `group-telemarketing.gz` | Group `telemarketing`: the 140 promotional series, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-telemarketing.gz) | +| Call-centre ranges | `group-call-centres.gz` | Group `call-centres`: call-centre landline and Bengaluru ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-call-centres.gz) | +| Spam mobile ranges | `group-spam-mobiles.gz` | Group `spam-mobiles`: bulk telemarketing mobile ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-spam-mobiles.gz) | +| Bank and government calls (optional) | `group-banks-govt.gz` | Group `banks-govt`: the official 1600 series (also blocks your real bank), plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-banks-govt.gz) | +| Raw list (CSV) | `spamwall-in.csv` | Every pattern and business number with its group, for any app or spreadsheet | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.csv) | | Raw list (JSON) | `spamwall-in.json` | Same data with a meta object, for scripts and AI | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.json) | -| Raw list (Markdown) | `spamwall-in.md` | Table for manual copying | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.md) | -Each file also has a readable `.json` twin in `spamblocker/`. Release assets are flat, so every file name is unique. +Groups don't stack in SpamBlocker (each rules import replaces the number rules), so to block two groups, import `all-rules.gz`, or import one group and add the other patterns by hand from `rules/in/`. For all rules plus banks, import `all-rules.gz`, then add the IN-1600 pattern by hand. + +Each `.gz` also has a readable `.json` twin in `spamblocker/`. The Markdown table `raw/spamwall-in.md` is for reading in the repo, not a release download. Release assets are flat, so every file name is unique. ## Using SpamWall without SpamBlocker -The raw lists in `raw/` (CSV, JSON, Markdown) are app-agnostic: the same rows as the SpamBlocker files, with columns `type,id,kind,value,description,source,priority`. `type` is allow, block or optional; `kind` is `pattern` (a regular expression) or `number` (an exact number). Numbers and patterns match the national number, without +91 or a leading 0. +The raw lists in `raw/` (CSV, JSON) are app-agnostic: the same rows as the SpamBlocker files, with columns `type,id,kind,value,description,source,priority,group`. `type` is allow, block or optional; `group` is the block group (`telemarketing`, `call-centres`, `spam-mobiles`, `banks-govt`; empty for allow rows and numbers); `kind` is `pattern` (a regular expression) or `number` (an exact number). Numbers and patterns match the national number, without +91 or a leading 0. -- **Any blocker or your phone's own block list:** open the CSV or Markdown file and copy what you need. Add `number` rows one by one, or paste them in bulk where the app allows. +- **Any blocker or your phone's own block list:** open the CSV file and copy what you need. Add `number` rows one by one, or paste them in bulk where the app allows. - **Patterns need regex or prefix blocking.** If your app only blocks exact numbers, use the `number` rows. If it supports prefixes, turn simple patterns such as `^140\d{7}$` into the prefix `140`. - **Build rules for another app with AI or a script:** feed `spamwall-in.json` (rules plus a `meta` object) to an AI assistant or a script and ask it to produce the format your app imports. - **Mobile numbers are left out on purpose.** Individual 10-digit mobile numbers (starting 6 to 9) are never listed, for privacy. Only landline, toll-free and series numbers appear as `number` rows. @@ -46,12 +45,12 @@ The raw lists in `raw/` (CSV, JSON, Markdown) are app-agnostic: the same rows as 1. In SpamBlocker, open **Settings > Backup > Export** and save a backup of your current setup first. 2. Download the file you picked to your phone. 3. Open **Settings > Backup > Import** and pick the file. -4. In the **Include Settings** dialog, tap a category to move it between Include and Exclude. Keep only the category the file has (Others for `settings.gz`, Regex Settings for `rules-*.gz` and `types/*.gz`, both for `complete.gz`). +4. In the **Include Settings** dialog, tap a category to move it between Include and Exclude. Keep only the category the file has (Others for `settings.gz`, Regex Settings for `all-rules.gz` and `group-*.gz`, both for `complete.gz`). 5. Confirm the import. ## Nuances -- Import REPLACES the whole section. Number rules are cleared and re-added, so importing a `rules-*.gz` file (or `complete.gz`) deletes your own number rules. Export first, or add your own rules again afterwards. +- Import REPLACES the whole section. Number rules are cleared and re-added, so importing a `all-rules.gz` or `group-*.gz` file (or `complete.gz`) deletes your own number rules. Export first, or add your own rules again afterwards. - A file that lacks a category shows "This setting is missing from the backup file and cannot be restored" for that category. Exclude it, as in step 4. - Allow and block rules must never share a priority. Here allow is 15, the built-in allow checks are 10 and block is 5. - Numbers are matched without +91 or a leading 0. @@ -62,7 +61,7 @@ The raw lists in `raw/` (CSV, JSON, Markdown) are app-agnostic: the same rows as - Grant SpamBlocker's permissions when it asks: the call screening role, contacts, and usage access for Recent Apps. - Turn on SMS screening under **Settings > Screening** if you want it, and follow the app's prompts. -- Add your own bank and broker numbers to contacts (with the strict file). +- Add your own bank and broker numbers to contacts (if you add the bank group). - Optionally turn off Tellows, which sends unknown numbers to tellows.com. - On Xiaomi/MIUI, allow autostart and set no battery restriction for SpamBlocker so screening keeps running. diff --git a/raw/spamwall-in.csv b/raw/spamwall-in.csv index b204927..30a97f3 100644 --- a/raw/spamwall-in.csv +++ b/raw/spamwall-in.csv @@ -1,99 +1,99 @@ -type,id,kind,value,description,source,priority -allow,IN-1601,pattern,^1601\d{6}$,"Official series for utilities, courier and logistics (deliveries)",TRAI Direction 10-08-2026,15 -allow,IN-AMAZON,pattern,^2263257863$,Amazon India customer service,public number,15 -block,IN-140,pattern,^140\d{7}$,Promotional / telemarketing series,TRAI TCCCPR 2018; RBI circular 2025-01 (140 = promotional only),5 -block,IN-BULK-MOBILE,pattern,^(657350|731361|914714|922807|942209|948470)\d{4}$,Bulk telemarketing mobile ranges,clustered from community spam reports,5 -block,IN-CC-BLR,pattern,^(803710|803720|804795|804819|806935|806954|806985)\d{4}$,Bengaluru call-centre blocks,clustered from community spam reports,5 -block,IN-CC-LANDLINE,pattern,^(1725|2250|2269|3366|3368|3371|4071|7935|7969|7971)\d{6}$,"Call-centre landline ranges (Chandigarh, Mumbai, Kolkata, Hyderabad, Ahmedabad)",clustered from community spam reports,5 -optional,IN-1600,pattern,^1600\d{6}$,"Official BFSI + Government service/transactional series. Blocks REAL bank, insurer, broker and govt calls too. Enable only if you add your own banks to allow.txt",TRAI Direction (PIB PRID 2191647),5 -block,IN-REPORTED-BUSINESS,number,1135137600,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1135139000,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1135354406,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1143079806,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1169116246,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1169116276,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1169123061,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1169123067,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1169123073,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1169123077,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1171638728,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1203127415,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1205083920,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1205168718,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1205173629,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1205173679,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1206435655,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1206435785,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1206436017,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1206916334,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1206916340,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1206916384,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1206916404,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1206916456,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1206924342,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1244180472,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1244790463,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1244790469,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1245148270,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1353501240,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1353501248,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1414762633,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1416180507,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1416180559,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1600318752,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,1726741521,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2045907791,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2048566470,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2067451410,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2067801163,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2067874503,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2067874970,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2068283912,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2069137002,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2071243006,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2235018668,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2243691029,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2245870590,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2268539628,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2268700283,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2423351750,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2488715097,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,2653103252,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3335002601,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3335302610,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3340222381,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3340582902,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3340582923,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3340912900,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3340912932,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3340912946,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3340927234,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3340927334,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3344053501,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3344453585,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3348072549,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3349495947,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3361210639,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3361253369,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3361254412,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3361254428,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3361367329,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3369051308,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3369068433,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3369093908,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3369095418,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,3369096046,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,4038021223,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,4069654518,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,4069654612,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,4069658515,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,4461703549,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,4471637887,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,4471894908,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,5227159327,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,5227159533,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,5227165134,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,5227185470,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,5227187119,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,5227187120,Business number reported as spam,community spam reports,5 -block,IN-REPORTED-BUSINESS,number,5227188859,Business number reported as spam,community spam reports,5 +type,id,kind,value,description,source,priority,group +allow,IN-1601,pattern,^1601\d{6}$,"Official series for utilities, courier and logistics (deliveries)",TRAI Direction 10-08-2026,15, +allow,IN-AMAZON,pattern,^2263257863$,Amazon India customer service,public number,15, +block,IN-140,pattern,^140\d{7}$,Promotional / telemarketing series,TRAI TCCCPR 2018; RBI circular 2025-01 (140 = promotional only),5,telemarketing +block,IN-BULK-MOBILE,pattern,^(657350|731361|914714|922807|942209|948470)\d{4}$,Bulk telemarketing mobile ranges,clustered from community spam reports,5,spam-mobiles +block,IN-CC-BLR,pattern,^(803710|803720|804795|804819|806935|806954|806985)\d{4}$,Bengaluru call-centre blocks,clustered from community spam reports,5,call-centres +block,IN-CC-LANDLINE,pattern,^(1725|2250|2269|3366|3368|3371|4071|7935|7969|7971)\d{6}$,"Call-centre landline ranges (Chandigarh, Mumbai, Kolkata, Hyderabad, Ahmedabad)",clustered from community spam reports,5,call-centres +optional,IN-1600,pattern,^1600\d{6}$,"Official BFSI + Government service/transactional series. Blocks REAL bank, insurer, broker and govt calls too. Enable only if you add your own banks to allow.txt",TRAI Direction (PIB PRID 2191647),5,banks-govt +block,IN-REPORTED-BUSINESS,number,1135137600,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1135139000,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1135354406,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1143079806,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1169116246,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1169116276,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1169123061,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1169123067,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1169123073,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1169123077,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1171638728,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1203127415,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1205083920,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1205168718,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1205173629,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1205173679,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1206435655,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1206435785,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1206436017,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1206916334,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1206916340,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1206916384,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1206916404,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1206916456,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1206924342,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1244180472,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1244790463,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1244790469,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1245148270,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1353501240,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1353501248,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1414762633,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1416180507,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1416180559,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1600318752,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,1726741521,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2045907791,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2048566470,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2067451410,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2067801163,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2067874503,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2067874970,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2068283912,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2069137002,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2071243006,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2235018668,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2243691029,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2245870590,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2268539628,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2268700283,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2423351750,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2488715097,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,2653103252,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3335002601,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3335302610,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3340222381,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3340582902,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3340582923,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3340912900,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3340912932,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3340912946,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3340927234,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3340927334,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3344053501,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3344453585,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3348072549,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3349495947,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3361210639,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3361253369,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3361254412,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3361254428,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3361367329,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3369051308,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3369068433,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3369093908,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3369095418,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,3369096046,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,4038021223,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,4069654518,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,4069654612,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,4069658515,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,4461703549,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,4471637887,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,4471894908,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,5227159327,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,5227159533,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,5227165134,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,5227185470,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,5227187119,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,5227187120,Business number reported as spam,community spam reports,5, +block,IN-REPORTED-BUSINESS,number,5227188859,Business number reported as spam,community spam reports,5, diff --git a/raw/spamwall-in.json b/raw/spamwall-in.json index 33f9bdc..f649773 100644 --- a/raw/spamwall-in.json +++ b/raw/spamwall-in.json @@ -15,7 +15,8 @@ "value": "^1601\\d{6}$", "description": "Official series for utilities, courier and logistics (deliveries)", "source": "TRAI Direction 10-08-2026", - "priority": 15 + "priority": 15, + "group": "" }, { "type": "allow", @@ -24,7 +25,8 @@ "value": "^2263257863$", "description": "Amazon India customer service", "source": "public number", - "priority": 15 + "priority": 15, + "group": "" }, { "type": "block", @@ -33,7 +35,8 @@ "value": "^140\\d{7}$", "description": "Promotional / telemarketing series", "source": "TRAI TCCCPR 2018; RBI circular 2025-01 (140 = promotional only)", - "priority": 5 + "priority": 5, + "group": "telemarketing" }, { "type": "block", @@ -42,7 +45,8 @@ "value": "^(657350|731361|914714|922807|942209|948470)\\d{4}$", "description": "Bulk telemarketing mobile ranges", "source": "clustered from community spam reports", - "priority": 5 + "priority": 5, + "group": "spam-mobiles" }, { "type": "block", @@ -51,7 +55,8 @@ "value": "^(803710|803720|804795|804819|806935|806954|806985)\\d{4}$", "description": "Bengaluru call-centre blocks", "source": "clustered from community spam reports", - "priority": 5 + "priority": 5, + "group": "call-centres" }, { "type": "block", @@ -60,7 +65,8 @@ "value": "^(1725|2250|2269|3366|3368|3371|4071|7935|7969|7971)\\d{6}$", "description": "Call-centre landline ranges (Chandigarh, Mumbai, Kolkata, Hyderabad, Ahmedabad)", "source": "clustered from community spam reports", - "priority": 5 + "priority": 5, + "group": "call-centres" }, { "type": "optional", @@ -69,7 +75,8 @@ "value": "^1600\\d{6}$", "description": "Official BFSI + Government service/transactional series. Blocks REAL bank, insurer, broker and govt calls too. Enable only if you add your own banks to allow.txt", "source": "TRAI Direction (PIB PRID 2191647)", - "priority": 5 + "priority": 5, + "group": "banks-govt" }, { "type": "block", @@ -78,7 +85,8 @@ "value": "1135137600", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -87,7 +95,8 @@ "value": "1135139000", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -96,7 +105,8 @@ "value": "1135354406", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -105,7 +115,8 @@ "value": "1143079806", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -114,7 +125,8 @@ "value": "1169116246", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -123,7 +135,8 @@ "value": "1169116276", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -132,7 +145,8 @@ "value": "1169123061", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -141,7 +155,8 @@ "value": "1169123067", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -150,7 +165,8 @@ "value": "1169123073", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -159,7 +175,8 @@ "value": "1169123077", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -168,7 +185,8 @@ "value": "1171638728", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -177,7 +195,8 @@ "value": "1203127415", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -186,7 +205,8 @@ "value": "1205083920", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -195,7 +215,8 @@ "value": "1205168718", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -204,7 +225,8 @@ "value": "1205173629", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -213,7 +235,8 @@ "value": "1205173679", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -222,7 +245,8 @@ "value": "1206435655", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -231,7 +255,8 @@ "value": "1206435785", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -240,7 +265,8 @@ "value": "1206436017", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -249,7 +275,8 @@ "value": "1206916334", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -258,7 +285,8 @@ "value": "1206916340", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -267,7 +295,8 @@ "value": "1206916384", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -276,7 +305,8 @@ "value": "1206916404", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -285,7 +315,8 @@ "value": "1206916456", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -294,7 +325,8 @@ "value": "1206924342", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -303,7 +335,8 @@ "value": "1244180472", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -312,7 +345,8 @@ "value": "1244790463", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -321,7 +355,8 @@ "value": "1244790469", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -330,7 +365,8 @@ "value": "1245148270", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -339,7 +375,8 @@ "value": "1353501240", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -348,7 +385,8 @@ "value": "1353501248", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -357,7 +395,8 @@ "value": "1414762633", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -366,7 +405,8 @@ "value": "1416180507", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -375,7 +415,8 @@ "value": "1416180559", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -384,7 +425,8 @@ "value": "1600318752", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -393,7 +435,8 @@ "value": "1726741521", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -402,7 +445,8 @@ "value": "2045907791", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -411,7 +455,8 @@ "value": "2048566470", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -420,7 +465,8 @@ "value": "2067451410", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -429,7 +475,8 @@ "value": "2067801163", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -438,7 +485,8 @@ "value": "2067874503", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -447,7 +495,8 @@ "value": "2067874970", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -456,7 +505,8 @@ "value": "2068283912", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -465,7 +515,8 @@ "value": "2069137002", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -474,7 +525,8 @@ "value": "2071243006", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -483,7 +535,8 @@ "value": "2235018668", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -492,7 +545,8 @@ "value": "2243691029", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -501,7 +555,8 @@ "value": "2245870590", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -510,7 +565,8 @@ "value": "2268539628", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -519,7 +575,8 @@ "value": "2268700283", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -528,7 +585,8 @@ "value": "2423351750", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -537,7 +595,8 @@ "value": "2488715097", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -546,7 +605,8 @@ "value": "2653103252", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -555,7 +615,8 @@ "value": "3335002601", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -564,7 +625,8 @@ "value": "3335302610", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -573,7 +635,8 @@ "value": "3340222381", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -582,7 +645,8 @@ "value": "3340582902", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -591,7 +655,8 @@ "value": "3340582923", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -600,7 +665,8 @@ "value": "3340912900", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -609,7 +675,8 @@ "value": "3340912932", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -618,7 +685,8 @@ "value": "3340912946", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -627,7 +695,8 @@ "value": "3340927234", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -636,7 +705,8 @@ "value": "3340927334", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -645,7 +715,8 @@ "value": "3344053501", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -654,7 +725,8 @@ "value": "3344453585", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -663,7 +735,8 @@ "value": "3348072549", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -672,7 +745,8 @@ "value": "3349495947", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -681,7 +755,8 @@ "value": "3361210639", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -690,7 +765,8 @@ "value": "3361253369", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -699,7 +775,8 @@ "value": "3361254412", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -708,7 +785,8 @@ "value": "3361254428", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -717,7 +795,8 @@ "value": "3361367329", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -726,7 +805,8 @@ "value": "3369051308", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -735,7 +815,8 @@ "value": "3369068433", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -744,7 +825,8 @@ "value": "3369093908", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -753,7 +835,8 @@ "value": "3369095418", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -762,7 +845,8 @@ "value": "3369096046", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -771,7 +855,8 @@ "value": "4038021223", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -780,7 +865,8 @@ "value": "4069654518", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -789,7 +875,8 @@ "value": "4069654612", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -798,7 +885,8 @@ "value": "4069658515", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -807,7 +895,8 @@ "value": "4461703549", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -816,7 +905,8 @@ "value": "4471637887", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -825,7 +915,8 @@ "value": "4471894908", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -834,7 +925,8 @@ "value": "5227159327", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -843,7 +935,8 @@ "value": "5227159533", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -852,7 +945,8 @@ "value": "5227165134", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -861,7 +955,8 @@ "value": "5227185470", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -870,7 +965,8 @@ "value": "5227187119", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -879,7 +975,8 @@ "value": "5227187120", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" }, { "type": "block", @@ -888,7 +985,8 @@ "value": "5227188859", "description": "Business number reported as spam", "source": "community spam reports", - "priority": 5 + "priority": 5, + "group": "" } ] } diff --git a/raw/spamwall-in.md b/raw/spamwall-in.md index 3c1266f..2070222 100644 --- a/raw/spamwall-in.md +++ b/raw/spamwall-in.md @@ -3,103 +3,103 @@ Numbers are matched as the national number, without +91 or a leading 0. Patterns are regular expressions; numbers are exact matches. -| type | id | kind | value | description | source | priority | -|---|---|---|---|---|---|---| -| allow | IN-1601 | pattern | `^1601\d{6}$` | Official series for utilities, courier and logistics (deliveries) | TRAI Direction 10-08-2026 | 15 | -| allow | IN-AMAZON | pattern | `^2263257863$` | Amazon India customer service | public number | 15 | -| block | IN-140 | pattern | `^140\d{7}$` | Promotional / telemarketing series | TRAI TCCCPR 2018; RBI circular 2025-01 (140 = promotional only) | 5 | -| block | IN-BULK-MOBILE | pattern | `^(657350\|731361\|914714\|922807\|942209\|948470)\d{4}$` | Bulk telemarketing mobile ranges | clustered from community spam reports | 5 | -| block | IN-CC-BLR | pattern | `^(803710\|803720\|804795\|804819\|806935\|806954\|806985)\d{4}$` | Bengaluru call-centre blocks | clustered from community spam reports | 5 | -| block | IN-CC-LANDLINE | pattern | `^(1725\|2250\|2269\|3366\|3368\|3371\|4071\|7935\|7969\|7971)\d{6}$` | Call-centre landline ranges (Chandigarh, Mumbai, Kolkata, Hyderabad, Ahmedabad) | clustered from community spam reports | 5 | -| optional | IN-1600 | pattern | `^1600\d{6}$` | Official BFSI + Government service/transactional series. Blocks REAL bank, insurer, broker and govt calls too. Enable only if you add your own banks to allow.txt | TRAI Direction (PIB PRID 2191647) | 5 | -| block | IN-REPORTED-BUSINESS | number | `1135137600` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1135139000` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1135354406` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1143079806` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1169116246` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1169116276` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1169123061` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1169123067` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1169123073` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1169123077` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1171638728` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1203127415` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1205083920` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1205168718` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1205173629` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1205173679` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1206435655` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1206435785` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1206436017` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1206916334` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1206916340` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1206916384` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1206916404` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1206916456` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1206924342` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1244180472` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1244790463` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1244790469` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1245148270` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1353501240` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1353501248` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1414762633` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1416180507` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1416180559` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1600318752` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `1726741521` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2045907791` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2048566470` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2067451410` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2067801163` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2067874503` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2067874970` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2068283912` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2069137002` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2071243006` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2235018668` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2243691029` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2245870590` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2268539628` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2268700283` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2423351750` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2488715097` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `2653103252` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3335002601` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3335302610` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3340222381` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3340582902` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3340582923` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3340912900` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3340912932` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3340912946` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3340927234` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3340927334` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3344053501` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3344453585` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3348072549` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3349495947` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3361210639` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3361253369` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3361254412` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3361254428` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3361367329` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3369051308` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3369068433` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3369093908` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3369095418` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `3369096046` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `4038021223` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `4069654518` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `4069654612` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `4069658515` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `4461703549` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `4471637887` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `4471894908` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `5227159327` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `5227159533` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `5227165134` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `5227185470` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `5227187119` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `5227187120` | Business number reported as spam | community spam reports | 5 | -| block | IN-REPORTED-BUSINESS | number | `5227188859` | Business number reported as spam | community spam reports | 5 | +| type | id | kind | value | description | source | priority | group | +|---|---|---|---|---|---|---|---| +| allow | IN-1601 | pattern | `^1601\d{6}$` | Official series for utilities, courier and logistics (deliveries) | TRAI Direction 10-08-2026 | 15 | | +| allow | IN-AMAZON | pattern | `^2263257863$` | Amazon India customer service | public number | 15 | | +| block | IN-140 | pattern | `^140\d{7}$` | Promotional / telemarketing series | TRAI TCCCPR 2018; RBI circular 2025-01 (140 = promotional only) | 5 | telemarketing | +| block | IN-BULK-MOBILE | pattern | `^(657350\|731361\|914714\|922807\|942209\|948470)\d{4}$` | Bulk telemarketing mobile ranges | clustered from community spam reports | 5 | spam-mobiles | +| block | IN-CC-BLR | pattern | `^(803710\|803720\|804795\|804819\|806935\|806954\|806985)\d{4}$` | Bengaluru call-centre blocks | clustered from community spam reports | 5 | call-centres | +| block | IN-CC-LANDLINE | pattern | `^(1725\|2250\|2269\|3366\|3368\|3371\|4071\|7935\|7969\|7971)\d{6}$` | Call-centre landline ranges (Chandigarh, Mumbai, Kolkata, Hyderabad, Ahmedabad) | clustered from community spam reports | 5 | call-centres | +| optional | IN-1600 | pattern | `^1600\d{6}$` | Official BFSI + Government service/transactional series. Blocks REAL bank, insurer, broker and govt calls too. Enable only if you add your own banks to allow.txt | TRAI Direction (PIB PRID 2191647) | 5 | banks-govt | +| block | IN-REPORTED-BUSINESS | number | `1135137600` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1135139000` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1135354406` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1143079806` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1169116246` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1169116276` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1169123061` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1169123067` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1169123073` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1169123077` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1171638728` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1203127415` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1205083920` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1205168718` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1205173629` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1205173679` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1206435655` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1206435785` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1206436017` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1206916334` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1206916340` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1206916384` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1206916404` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1206916456` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1206924342` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1244180472` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1244790463` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1244790469` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1245148270` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1353501240` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1353501248` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1414762633` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1416180507` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1416180559` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1600318752` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `1726741521` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2045907791` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2048566470` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2067451410` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2067801163` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2067874503` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2067874970` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2068283912` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2069137002` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2071243006` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2235018668` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2243691029` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2245870590` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2268539628` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2268700283` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2423351750` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2488715097` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `2653103252` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3335002601` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3335302610` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3340222381` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3340582902` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3340582923` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3340912900` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3340912932` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3340912946` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3340927234` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3340927334` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3344053501` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3344453585` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3348072549` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3349495947` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3361210639` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3361253369` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3361254412` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3361254428` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3361367329` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3369051308` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3369068433` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3369093908` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3369095418` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `3369096046` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `4038021223` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `4069654518` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `4069654612` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `4069658515` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `4461703549` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `4471637887` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `4471894908` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `5227159327` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `5227159533` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `5227165134` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `5227185470` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `5227187119` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `5227187120` | Business number reported as spam | community spam reports | 5 | | +| block | IN-REPORTED-BUSINESS | number | `5227188859` | Business number reported as spam | community spam reports | 5 | | diff --git a/rules/in/block/IN-140.txt b/rules/in/block/IN-140.txt index f5008b2..7ff9b36 100644 --- a/rules/in/block/IN-140.txt +++ b/rules/in/block/IN-140.txt @@ -1,4 +1,5 @@ # SpamWall India BLOCK pattern (national number without +91 or leading 0) +# Group: telemarketing # Blocks: promotional and telemarketing calls and SMS from the 140 series. # Source: TRAI TCCCPR 2018 https://trai.gov.in/release-publication/directions ; RBI circular Jan 2025 https://www.rbi.org.in/scripts/NotificationUser.aspx?Id=12770 # False-positive risk: low. The series is for promotions only. diff --git a/rules/in/block/IN-BULK-MOBILE.txt b/rules/in/block/IN-BULK-MOBILE.txt index 2e69a40..d9f5443 100644 --- a/rules/in/block/IN-BULK-MOBILE.txt +++ b/rules/in/block/IN-BULK-MOBILE.txt @@ -1,4 +1,5 @@ # SpamWall India BLOCK pattern (national number without +91 or leading 0) +# Group: spam-mobiles # Blocks: mobile number blocks used for bulk telemarketing. # Source: clustered from community spam reports. # False-positive risk: medium. Mobile blocks can be reassigned to ordinary users. diff --git a/rules/in/block/IN-CC-BLR.txt b/rules/in/block/IN-CC-BLR.txt index aecd51f..424a763 100644 --- a/rules/in/block/IN-CC-BLR.txt +++ b/rules/in/block/IN-CC-BLR.txt @@ -1,4 +1,5 @@ # SpamWall India BLOCK pattern (national number without +91 or leading 0) +# Group: call-centres # Blocks: narrow Bengaluru call-centre blocks (not all of 080). # Source: clustered from community spam reports. # False-positive risk: medium. Delivery apps call from other 080 numbers, which are not blocked. diff --git a/rules/in/block/IN-CC-LANDLINE.txt b/rules/in/block/IN-CC-LANDLINE.txt index 2d47d3f..7060714 100644 --- a/rules/in/block/IN-CC-LANDLINE.txt +++ b/rules/in/block/IN-CC-LANDLINE.txt @@ -1,4 +1,5 @@ # SpamWall India BLOCK pattern (national number without +91 or leading 0) +# Group: call-centres # Blocks: call-centre landline ranges in Chandigarh, Mumbai, Kolkata, Hyderabad and Ahmedabad. # Source: clustered from community spam reports. # False-positive risk: medium. Ranges are narrow but a real business in them would be blocked; use an unblock request. diff --git a/rules/in/optional/IN-1600.txt b/rules/in/optional/IN-1600.txt index 0481d45..e4426b6 100644 --- a/rules/in/optional/IN-1600.txt +++ b/rules/in/optional/IN-1600.txt @@ -1,4 +1,5 @@ -# SpamWall India OPTIONAL BLOCK pattern (off by default; only in rules-strict) +# SpamWall India OPTIONAL BLOCK pattern (off by default; only in the banks-govt group) +# Group: banks-govt # Blocks: official BFSI and government service and transactional series. # Source: TRAI Direction, PIB https://pib.gov.in/PressReleasePage.aspx?PRID=2191647 # False-positive risk: high. Blocks real bank, insurer, broker and government calls. Add your own banks to contacts first. diff --git a/spamblocker/rules-default.gz b/spamblocker/all-rules.gz similarity index 53% rename from spamblocker/rules-default.gz rename to spamblocker/all-rules.gz index 4e38616f529340666fed9a0c0631ba79726557dc..5706916030c405279a03e1e580f359c047591cbb 100644 GIT binary patch delta 28 hcmeBXZD$ph@8;lO00O4}i8(pCMWs2Z#T&&-m;hmR2f6?N delta 32 lcmZo??Pe91@8;lO00O4}MWs2Z#kwh}X^EvdB^!lHm;i@r31$EQ diff --git a/spamblocker/rules-default.json b/spamblocker/all-rules.json similarity index 100% rename from spamblocker/rules-default.json rename to spamblocker/all-rules.json diff --git a/spamblocker/types/IN-1600.gz b/spamblocker/group-banks-govt.gz similarity index 50% rename from spamblocker/types/IN-1600.gz rename to spamblocker/group-banks-govt.gz index 2bf785671b3d30a3d641facc3df2197416823d18..4ebecddb476e0504c3fa5d60ca14357c28292e10 100644 GIT binary patch delta 35 pcmX@ae41HGzMF%C0SK7>rx)dy7U(7==4BV_rstQHY!uwc2mrQd3o`%! delta 26 gcmX@je27_4zMF%C0SK7>d-~}bni&{ul-kG$094inXaE2J diff --git a/spamblocker/types/IN-1600.json b/spamblocker/group-banks-govt.json similarity index 100% rename from spamblocker/types/IN-1600.json rename to spamblocker/group-banks-govt.json diff --git a/spamblocker/group-call-centres.gz b/spamblocker/group-call-centres.gz new file mode 100644 index 0000000000000000000000000000000000000000..0c48807dede1e03ba7ad03459ec6f60b20a9aa6e GIT binary patch literal 563 zcmV-30?hp%iwFn+00002|7UV)s;<;+At7?@BE5U)B{LC z$_GgZH=wjdWm$=B)vDdLGL920jEx*;TMGR5j??URcbj|5#p8J=GqUH2?PCWVN(?KM z=B#u^aO?m$L#r<*^Pt3mkyj=Op?`Z&Gf1gf3kGr)Ol7xjb|wM zp6C8{_rw^cC2G!BKlc3F+w2&hUpP<0uLLPBgVpf}Y-Mu*)l|_=+b|S;?^j$!djP3O ziIXNx-&z!=YAuz@&=6yrT*nDk9lNp}7;F3QyXgWOkmpH#ito8ON7v`*dfNk!QO8Sd z1h?J@wmkrkN{Pp>cm!{meavotEU#zTm50E$9_;%_QgyZBW?9R>EYlVTUV|Veas&e3 z@Bb+`)H!YxV&3;4_Jg~-d>ijSc(2B!DGUt{Vv2j8lCcWCw>I+%|)627F=n*W6LNGxkSl-wMg*H$-A%(-L4@}nx8=xu& zsY_vzF_BC6{0-+-gNf;_xS}K`4JL_WRMKw@QCso&&Rim%Mpw# z`b#UAs$5WDwRO6}z%b4S!T52dLprzXBpxK;z~3cd5XQkS4WcB7b}1o4KiQ=bA%2RV zVU+l%%@Rh(w1kuE*{8GlVltg&Bbd~34US7*QM2Yws1ho@5|V?Vs>BEBeVE-@I#d7W SDBI_>xBm@anG}771pol>CFQdK literal 0 HcmV?d00001 diff --git a/spamblocker/types/IN-BULK-MOBILE.json b/spamblocker/group-spam-mobiles.json similarity index 100% rename from spamblocker/types/IN-BULK-MOBILE.json rename to spamblocker/group-spam-mobiles.json diff --git a/spamblocker/group-telemarketing.gz b/spamblocker/group-telemarketing.gz new file mode 100644 index 0000000000000000000000000000000000000000..1f048fcc7b7e18345668bcd39afc04e8d54b302e GIT binary patch literal 426 zcmV;b0agAViwFn+00002|7UVPQx$|y!R_s76*`u zNKz=!TR{a?Di0M9h^Jh~Nmq63%652F{dd+SymLnC%{${6t#`DZHGm23Wo|4=$2u@; z05Gl;9dGCeY}h;OT|Eph2E8*zz+D68O%my{7)d)U)tAav#X=Vl!Z0Nuj-uv!Ipy9< zs|jQGaXX4{Z_`~?MW0^`P zEKWU|MW<&|UR=^hpntp`n(n|!mZ3ndz{xN+$c%;3qe4$r6ND)Vw!n1?%H-%g3J0sH zRQR|MtbI0Vkp}Ny!jQHq4BejMVxmY!aK@FB6_ZuZXjQcsbFF2FiVe)uho=)`nNk$r zhcQw{On$xc6WcdB!+dc)F!Sc${NkGYlBC^AwzhZLttHB@d(^!?IqpEW;IBqQU#G}H zl+K%i0;4z|QOM;=C#m1A%_uC__EIg^X4HXGYYG!sTCWZ8QptkbiS(%RYTat$sZYn- U@}I-0KFG%W4eV$v7+3`W0C$_pnE(I) literal 0 HcmV?d00001 diff --git a/spamblocker/types/IN-140.json b/spamblocker/group-telemarketing.json similarity index 100% rename from spamblocker/types/IN-140.json rename to spamblocker/group-telemarketing.json diff --git a/spamblocker/rules-strict.gz b/spamblocker/rules-strict.gz deleted file mode 100644 index d5033a7dfa6a23fae1c23b70f9c7b294f267c6f0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 722 zcmV;@0xkU?iwFn+00002|8jL~WpgcabaH89bO6CGJc}WQA@8M5MrF z#)^_91)QXmv)e;L_wkU5VdKj?-6X&Ev0}tYvf-G9?iJw$ts|@YHQaiitceg*qcURo z<5;su)-**FPn)siGTFR%%SYc>iWSQaKi84H`8PkifuG|9uH%ROz-()&SlsnM)l-d7VN@In9aM(2|L) zmRkd!W;&&+{ym%~>6`?9==#U@xsX02GO7iBG*3{-#eJT z-#((_ac>ka5GEBF;gzZ&!ALKmqEr+P4Qv@mw+W;jI{waaP?mVJMLX9G0{!UYBeZv( zg^y6v3?qz&QD}EtH@zUqcsPF>Pv@x3@e_y~M-|S*QI>ErMiwc{h+3O4!%>eg6D}m* zkdm12?k=T@EJ3iiwFn+00002|4B|QF*Gm$)l|z)!!QuM_bXNw2at+LQYg?{K?PMR4;2uI zr(DNLS9R>lc6e3&ch)7mb4KdTJL4IxceI{0fC=tpZY)a2IxuShFs>9GZ|DeY*gNc9 zJq#}fy)#C@T?6J#66vxSNjognm&#VfLKhIiFeM<4qUL)!<=#uH31jzhJBn{_(^-4I z!hX^Ris!*-C*DndGDjwr=Py%9vKsuuuufBBnMx-tPCc4Mr)N`MT+&FO zf4m-=?!ZZwp+K&{$uKs^jD^ypLQho_geeKOz;z1B(r^rE+&YOY)qc|T?$mL2W zso$>6C@k0ZQZ3hJ)PYlL3KLjbuMO~0$%5O7^r-V{-D={gPsiKxpTns>$j1B)>}V_) HSOow8Av44* diff --git a/spamblocker/types/IN-BULK-MOBILE.gz b/spamblocker/types/IN-BULK-MOBILE.gz deleted file mode 100644 index 60e7399484762e312591d68fafe45f4c0f3c1e3f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 472 zcmV;}0Vn<+iwFn+00002|4B|QLRCylElp2CNlZlm)l|_=+b|S;?^j$!djP3OiIXNx z-&z!=YAuz@&=6yrT*nDk9lNp}7;F3QyXgWOkmpH#ito8ON7v`*dfNk!QO8Sd1h?J@ zwmkrkN{Pp>cm!{meavotEU#zTm50E$9_;%_QgyZBW?9R>EYlVTUV|Veas&e3@Bb+` z)H!YxV&3;4_Jg~-d>ijSc(2B!D zGUt{Vv2j8lCcWCw>I+%|)627F=n*W6LNGxkSl-wMg*H$-A%(-L4@}nx8=xu&sY_v< zU=~htF2%!vaQZT&5oo-7YD^lmn6MK`*;*nE;etxb+fLD5BW!DSPnF_LRNhQKK5JTb z&vT68Uo%!xv-O)>zF_BC6{0-+-gNf;_xS}K`4JL_WRMKw@QCso&&Rim%Mpw#`b#UA zs$5WDwRO6}z%b4S!T52dLprzXBpxK;z~3cd5XQkS4WcB7b}1o4KiQ=bA%2RVVU+l% z%@Rh(w1kuE*{8GlVltg&Bbd~34US7*QM2Yws1ho@5|V?Vs>BEBeVE-@I#d7WDBI_> OxBm@anG}771pom2h~j4e diff --git a/spamblocker/types/IN-CC-BLR.gz b/spamblocker/types/IN-CC-BLR.gz deleted file mode 100644 index 6c0c30c3e99fc2df4b829b86ec5eae57821c1bc0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 450 zcmV;z0X_a7iwFn+00002|4B|QLqjb>Oi}>VR9$b{Fcf{~S6o?p012dgknr&ah)$Jg zk!Yt@Yq!ccPOxfhWIJpf<-hMbOWU=}^CX^*?>V_g*Z0Udw16<`c%hBpmW<)h0w7dM zJl^3E$ZGz1e*3WcvY1~HB)+xa*u^GQZr9wbO8M4h>Z0oN400kvA`F7=pK?c?<3=Gz zzK3ZL-rr}3^!SOqm(L_EywNZmMemgho$>3Z9Y^tl<@~2J)ccYK{>8AVr@=DgmKm{g zLRXVs?dbLfR|4mkJwNmqmU%9ipb{+iYlB=HD4mePVbukuOQa1@m4VcSuud=w?TkyY zuNpe9LmGjLcTavvNzDm6m6Sb7Y(qMy((+o#>ubby%{Eji?xP|L{o}>cvJKBLioch! zmYO|&xaBK1(<&E5^|@D$-GB278}f^yG>($NFpW+*68lP&$F6`ZR~P++BX zdW(T!oO{9eX{8f2zOME#hzDWt>>={dAB++Y7z#oJ`uZ6~$r*p=ffl(zq!Ny#qkk~2~-qnS6Jr|~?G4+C&0vAonq@Yis;waS-@2fRl?ws;So8tQz^J%5=fGu0;?N3<2Ns+~47j zSj&w<%=zlao_~AG4)N)k^EmxVlCmWl`;*{tW}z8>x8HG0KB3HiSVLM~rw6|$?5pXa zWW1(E?5xn|PH%Rk`hX*W*>co2J%#I{5L6HeHE+iTg*MPwA%(@r1*#i_4G_gZ>QdBJ z&>Dt}OL2EDxO!;P2pqiKw?m3LOw=zVp<9V%2p2@wyvr2bHNq~Y8=@3%rE=!_`#on( zH=Lmqe-C3VHQheB~4fA#Zw^b3MG45DNlhZm$@x=24=FQ<@JK3Bf}xyug7V8!C+OX-p`QfNF$f|LO*}bi{Q{X!*-^a(006lk@r?ig diff --git a/tools/build_spamblocker.py b/tools/build_spamblocker.py index b3d2926..c53ad63 100644 --- a/tools/build_spamblocker.py +++ b/tools/build_spamblocker.py @@ -1,7 +1,7 @@ """Build the SpamBlocker import files from rules// and write patterns.md. Usage: python -I tools/build_spamblocker.py -Writes spamblocker/{settings,rules-default,rules-strict,complete}.{gz,json}, +Writes spamblocker/{complete,settings,all-rules,group-}.{gz,json}, raw/spamwall-.{csv,json,md} and rules//patterns.md. Old spamwall-*.{gz,json} files are removed. """ import csv @@ -22,6 +22,20 @@ REGEX_FLAGS = 8192 +GROUPS = { # group slug -> label; the order is the order of the group files + "telemarketing": "Promo and telemarketing calls", + "call-centres": "Call-centre ranges", + "spam-mobiles": "Spam mobile ranges", + "banks-govt": "Bank and government calls (optional)", +} +DEFAULT_GROUPS = ["telemarketing", "call-centres", "spam-mobiles"] + + +def read_group(path): + m = re.search(r"^# Group:\s*(\S+)\s*$", path.read_text(encoding="utf-8"), re.M) + return m.group(1) if m else "" + + def read_rules(path): rules = [] if not path.exists(): @@ -33,6 +47,7 @@ def read_rules(path): pattern, _, note = line.partition("#") parts = [p.strip() for p in note.split("|")] rules.append({ + "group": read_group(path), "pattern": pattern.strip(), "id": parts[0], "what": parts[1] if len(parts) > 1 else "", "source": parts[2] if len(parts) > 2 else "", @@ -71,37 +86,26 @@ def settings(d): } -def rules_part(d, strict): - allow, block = read_dir(d / "allow"), read_dir(d / "block") - if strict: - block += read_dir(d / "optional") +def group_rules(d, groups): + """Allow rules plus every block/optional rule whose group is in groups.""" + allow = read_dir(d / "allow") + block = [r for kind in ("block", "optional") for r in read_dir(d / kind) if r["group"] in groups] rules = [rule(i + 100, r, False) for i, r in enumerate(allow)] rules += [rule(i + 200, r, True) for i, r in enumerate(block)] return {"numberRules": {"rules": rules}} -def type_files(d): - out = {} - allow = read_dir(d / "allow") - for kind in ("block", "optional"): - for f in sorted((d / kind).glob("*.txt")): - rs = read_rules(f) - rules = [rule(i + 100, r, False) for i, r in enumerate(allow)] - rules += [rule(i + 200, r, True) for i, r in enumerate(rs)] - out[f"types/{f.stem}"] = {"categories": {"all": ["REGEX_RULES"]}, "numberRules": {"rules": rules}} - return out - - def files(d): s = settings(d) - default, strict = rules_part(d, False), rules_part(d, True) - return { - "settings": s, - "rules-default": {"categories": {"all": ["REGEX_RULES"]}, **default}, - "rules-strict": {"categories": {"all": ["REGEX_RULES"]}, **strict}, + default = group_rules(d, DEFAULT_GROUPS) + out = { "complete": {**s, "categories": {"all": ["OTHERS", "REGEX_RULES"]}, **default}, - **type_files(d), + "settings": s, + "all-rules": {"categories": {"all": ["REGEX_RULES"]}, **default}, } + for g in GROUPS: + out[f"group-{g}"] = {"categories": {"all": ["REGEX_RULES"]}, **group_rules(d, [g])} + return out def patterns_md(cc, d): @@ -128,15 +132,15 @@ def raw_rows(d): for kind, prio in (("allow", ALLOW_PRIORITY), ("block", BLOCK_PRIORITY), ("optional", BLOCK_PRIORITY)): for r in read_dir(d / kind): rows.append({"type": kind, "id": r["id"], "kind": "pattern", "value": r["pattern"], - "description": r["what"], "source": r["source"], "priority": prio}) + "description": r["what"], "source": r["source"], "priority": prio, "group": r["group"]}) for n in read_numbers(d): rows.append({"type": "block", "id": "IN-REPORTED-BUSINESS", "kind": "number", "value": n, "description": "Business number reported as spam", "source": "community spam reports", - "priority": BLOCK_PRIORITY}) + "priority": BLOCK_PRIORITY, "group": ""}) return rows -COLS = ["type", "id", "kind", "value", "description", "source", "priority"] +COLS = ["type", "id", "kind", "value", "description", "source", "priority", "group"] def raw_files(cc, d): @@ -156,14 +160,13 @@ def raw_files(cc, d): "| " + " | ".join(COLS) + " |", "|" + "---|" * len(COLS)] for r in rows: v = f"`{esc(r['value'])}`" - md.append("| " + " | ".join([r["type"], r["id"], r["kind"], v, esc(r["description"]), esc(r["source"]), str(r["priority"])]) + " |") + md.append("| " + " | ".join([r["type"], r["id"], r["kind"], v, esc(r["description"]), esc(r["source"]), str(r["priority"]), r["group"]]) + " |") return {f"spamwall-{cc}.csv": buf.getvalue(), f"spamwall-{cc}.json": js, f"spamwall-{cc}.md": "\n".join(md) + "\n"} def main(): OUT.mkdir(exist_ok=True) - (OUT / "types").mkdir(exist_ok=True) - for old in list(OUT.glob("spamwall-*")) + list((OUT / "types").glob("*")): + for old in OUT.glob("*"): old.unlink() for cc_dir in sorted(p for p in (ROOT / "rules").iterdir() if p.is_dir()): for name, obj in files(cc_dir).items(): diff --git a/tools/check.py b/tools/check.py index b1ede67..5ede74d 100644 --- a/tools/check.py +++ b/tools/check.py @@ -1,12 +1,17 @@ """CI checks: regexes compile, no allow/block overlap on official series, no personal-looking data, every pattern file is well formed, and generated files match the rule sources.""" -import json, re, subprocess, sys +import importlib.util, json, re, subprocess, sys from pathlib import Path ROOT = Path(__file__).resolve().parent.parent errors = [] ids = {} +group_of = {} +spec = importlib.util.spec_from_file_location("build", ROOT / "tools" / "build_spamblocker.py") +build = importlib.util.module_from_spec(spec) +spec.loader.exec_module(build) +GROUPS = build.GROUPS for txt in (ROOT / "rules").rglob("*.txt"): folder = txt.parent.name if folder == "numbers": @@ -33,6 +38,14 @@ ids[parts[0]] = txt if folder == "block" and (re.match(s, "1600000000") or re.match(s, "1601000000")): errors.append(f"{txt}:{n} blocks an official 1600/1601 number") + if folder in {"block", "optional"}: + gm = re.search(r"^# Group:\s*(\S+)\s*$", text, re.M) + if not gm: + errors.append(f"{txt}: header comment missing '# Group: '") + elif gm.group(1) not in GROUPS: + errors.append(f"{txt}: unknown group {gm.group(1)}") + else: + group_of[txt.stem] = gm.group(1) if folder in {"allow", "block", "optional"}: if n_rules != 1: errors.append(f"{txt}: must hold exactly one pattern line") @@ -80,6 +93,22 @@ def gen(): re.compile(r["value"]) except re.error as e: errors.append(f"raw: bad regex {r['id']}: {e}") +# every block pattern is in exactly one valid group (one file per pattern, one Group line) +blocks = {p.stem for k in ("block", "optional") for p in (ROOT / "rules" / "in" / k).glob("*.txt")} +if blocks != set(group_of): + errors.append(f"patterns without a valid group: {sorted(blocks - set(group_of))}") +sb = ROOT / "spamblocker" +expected_files = {f"{n}.{e}" for n in ["complete", "settings", "all-rules"] + [f"group-{g}" for g in GROUPS] for e in ("gz", "json")} +if {p.name for p in sb.glob("*")} != expected_files: + errors.append("spamblocker/ must hold exactly complete, settings, all-rules and one group- file (gz + json)") +allow_ids = {r["id"] for r in build.read_dir(ROOT / "rules" / "in" / "allow")} +for g in GROUPS: + want = {i for i, gg in group_of.items() if gg == g} + rr = json.loads((sb / f"group-{g}.json").read_text(encoding="utf-8"))["numberRules"]["rules"] + got_b = {m.group(1) for r in rr if r["isBlacklist"] for m in [re.match(r"SpamWall (\S+):", r["description"])] if m} + got_a = {m.group(1) for r in rr if not r["isBlacklist"] for m in [re.match(r"SpamWall (\S+):", r["description"])] if m} + if got_b != want or got_a != allow_ids or len(rr) != len(want) + len(allow_ids): + errors.append(f"group-{g}.json must hold exactly its block rules {sorted(want)} plus the allow rules") d = json.loads((ROOT / "spamblocker" / "complete.json").read_text(encoding="utf-8")) rl = d["numberRules"]["rules"] shared = {r["priority"] for r in rl if r["isBlacklist"]} & {r["priority"] for r in rl if not r["isBlacklist"]} From fb67f09d9092faa8612f0f585d68f5dbac04ee8e Mon Sep 17 00:00:00 2001 From: Wasim Akram <55689108+wasimness@users.noreply.github.com> Date: Fri, 27 Nov 2026 15:44:35 +0530 Subject: [PATCH 4/5] Rename SpamBlocker files to spamblocker-*; label Full setup Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- README.md | 24 ++++++++-------- docs/IMPORT.md | 26 +++++++++--------- spamblocker/group-spam-mobiles.gz | Bin 476 -> 0 bytes spamblocker/group-telemarketing.gz | Bin 426 -> 0 bytes spamblocker/settings.gz | Bin 529 -> 0 bytes ...{all-rules.gz => spamblocker-all-rules.gz} | Bin 647 -> 659 bytes ...-rules.json => spamblocker-all-rules.json} | 0 ...anks-govt.gz => spamblocker-banks-govt.gz} | Bin 459 -> 465 bytes ...-govt.json => spamblocker-banks-govt.json} | 0 ...centres.gz => spamblocker-call-centres.gz} | Bin 563 -> 569 bytes ...res.json => spamblocker-call-centres.json} | 0 ...{complete.gz => spamblocker-full-setup.gz} | Bin 1093 -> 1107 bytes ...plete.json => spamblocker-full-setup.json} | 0 spamblocker/spamblocker-settings.gz | Bin 0 -> 541 bytes ...ettings.json => spamblocker-settings.json} | 0 spamblocker/spamblocker-spam-mobiles.gz | Bin 0 -> 482 bytes ...les.json => spamblocker-spam-mobiles.json} | 0 spamblocker/spamblocker-telemarketing.gz | Bin 0 -> 432 bytes ...ng.json => spamblocker-telemarketing.json} | 0 tools/build_spamblocker.py | 10 +++---- tools/check.py | 10 +++---- 22 files changed, 36 insertions(+), 36 deletions(-) delete mode 100644 spamblocker/group-spam-mobiles.gz delete mode 100644 spamblocker/group-telemarketing.gz delete mode 100644 spamblocker/settings.gz rename spamblocker/{all-rules.gz => spamblocker-all-rules.gz} (53%) rename spamblocker/{all-rules.json => spamblocker-all-rules.json} (100%) rename spamblocker/{group-banks-govt.gz => spamblocker-banks-govt.gz} (50%) rename spamblocker/{group-banks-govt.json => spamblocker-banks-govt.json} (100%) rename spamblocker/{group-call-centres.gz => spamblocker-call-centres.gz} (86%) rename spamblocker/{group-call-centres.json => spamblocker-call-centres.json} (100%) rename spamblocker/{complete.gz => spamblocker-full-setup.gz} (82%) rename spamblocker/{complete.json => spamblocker-full-setup.json} (100%) create mode 100644 spamblocker/spamblocker-settings.gz rename spamblocker/{settings.json => spamblocker-settings.json} (100%) create mode 100644 spamblocker/spamblocker-spam-mobiles.gz rename spamblocker/{group-spam-mobiles.json => spamblocker-spam-mobiles.json} (100%) create mode 100644 spamblocker/spamblocker-telemarketing.gz rename spamblocker/{group-telemarketing.json => spamblocker-telemarketing.json} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index d878d4a..d3d5ec7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [0.3.0] - 2026-11-27 ### Changed -- Downloads reduced to 7 SpamBlocker files in 4 essential groups plus raw CSV/JSON; per-pattern import files removed. Block patterns now carry a `group` (header line and raw `group` column). +- Downloads reduced to 7 SpamBlocker files (`spamblocker-full-setup`, `-settings`, `-all-rules` and one per group, `spamblocker-`) in 4 essential groups plus raw CSV/JSON; per-pattern import files removed. Block patterns now carry a `group` (header line and raw `group` column). ### Added - Raw, app-agnostic lists in `raw/`: `spamwall-in.csv`, `spamwall-in.json` (with a `meta` object) and `spamwall-in.md`. diff --git a/README.md b/README.md index e8efe83..4088874 100644 --- a/README.md +++ b/README.md @@ -19,30 +19,30 @@ SpamWall is an independent project, not made by or affiliated with SpamBlocker. ## Quick start (if you use SpamBlocker) 1. Export a backup first (**Settings > Backup > Export**), because an import replaces your number rules. -2. Download [`spamblocker/complete.gz`](spamblocker/complete.gz), then **Settings > Backup > Import** and pick it. +2. Download [`spamblocker/spamblocker-full-setup.gz`](spamblocker/spamblocker-full-setup.gz), then **Settings > Backup > Import** and pick it. 3. Follow the full guide, including the manual steps the import cannot do: [docs/IMPORT.md](docs/IMPORT.md). ## Files | Label | File | Description | Download | |---|---|---|---| -| Everything (recommended) | `complete.gz` | Settings plus all default rules (not the bank group): one-tap full setup | [Download](https://github.com/wasimness/spamwall/releases/latest/download/complete.gz) | -| App settings only | `settings.gz` | Only the Others category: contacts, STIR, repeated call, dialed, answered, Recent Apps | [Download](https://github.com/wasimness/spamwall/releases/latest/download/settings.gz) | -| All spam rules | `all-rules.gz` | Allow rules plus the three default groups (not the bank group) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/all-rules.gz) | -| Promo and telemarketing calls | `group-telemarketing.gz` | Group `telemarketing`: the 140 promotional series, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-telemarketing.gz) | -| Call-centre ranges | `group-call-centres.gz` | Group `call-centres`: call-centre landline and Bengaluru ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-call-centres.gz) | -| Spam mobile ranges | `group-spam-mobiles.gz` | Group `spam-mobiles`: bulk telemarketing mobile ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-spam-mobiles.gz) | -| Bank and government calls (optional) | `group-banks-govt.gz` | Group `banks-govt`: the official 1600 series (also blocks your real bank), plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-banks-govt.gz) | +| Full setup (recommended) | `spamblocker-full-setup.gz` | App settings plus all spam rules in one import | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-full-setup.gz) | +| App settings only | `spamblocker-settings.gz` | Only the Others category: contacts, STIR, repeated call, dialed, answered, Recent Apps | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-settings.gz) | +| All spam rules | `spamblocker-all-rules.gz` | Allow rules plus the three default groups (not the bank group) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-all-rules.gz) | +| Promo and telemarketing calls | `spamblocker-telemarketing.gz` | Group `telemarketing`: the 140 promotional series, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-telemarketing.gz) | +| Call-centre ranges | `spamblocker-call-centres.gz` | Group `call-centres`: call-centre landline and Bengaluru ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-call-centres.gz) | +| Spam mobile ranges | `spamblocker-spam-mobiles.gz` | Group `spam-mobiles`: bulk telemarketing mobile ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-spam-mobiles.gz) | +| Bank and government calls (optional) | `spamblocker-banks-govt.gz` | Group `banks-govt`: the official 1600 series (also blocks your real bank), plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-banks-govt.gz) | | Raw list (CSV) | `spamwall-in.csv` | Every pattern and business number with its group, for any app or spreadsheet | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.csv) | | Raw list (JSON) | `spamwall-in.json` | Same data with a meta object, for scripts and AI | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.json) | -Groups don't stack in SpamBlocker (each rules import replaces the number rules), so to block two groups, import `all-rules.gz`, or import one group and add the other patterns by hand from `rules/in/`. For all rules plus banks, import `all-rules.gz`, then add the IN-1600 pattern by hand. +Groups don't stack in SpamBlocker (each rules import replaces the number rules), so to block two groups, import `spamblocker-all-rules.gz`, or import one group and add the other patterns by hand from `rules/in/`. For all rules plus banks, import `spamblocker-all-rules.gz`, then add the IN-1600 pattern by hand. Each `.gz` has a readable `.json` twin in `spamblocker/`. The raw list also exists as a Markdown table, [`raw/spamwall-in.md`](raw/spamwall-in.md), for reading in the repo (not a release download). Source rules: [`rules/in/`](rules/in/) (one file per pattern in `allow/`, `block/` and `optional/`, each block pattern with a `# Group:` line, plus [`allow-apps.txt`](rules/in/allow-apps.txt) and `numbers/`), table of every pattern: [`rules/in/patterns.md`](rules/in/patterns.md). -**What can be combined:** `settings.gz` + any ONE rules file is fine. `complete.gz` already has settings and all default rules. +**What can be combined:** `spamblocker-settings.gz` + any ONE rules file is fine. `spamblocker-full-setup.gz` already has settings and all default rules. -**Short version of the caveats:** settings never touch number rules; rules never touch settings. Importing `settings.gz` replaces your Recent Apps list and allow switches. Export a backup first, it is your undo. Not tested on every phone and SpamBlocker version, so report problems as issues. Details: [docs/IMPORT.md](docs/IMPORT.md). +**Short version of the caveats:** settings never touch number rules; rules never touch settings. Importing `spamblocker-settings.gz` replaces your Recent Apps list and allow switches. Export a backup first, it is your undo. Not tested on every phone and SpamBlocker version, so report problems as issues. Details: [docs/IMPORT.md](docs/IMPORT.md). **Releases:** download the files from the [latest release](../../releases/latest). @@ -91,7 +91,7 @@ Numbers are matched without `+91` or a leading `0`. |---|---|---|---| | IN-1600 | `^1600\d{6}$` | Service and transactional calls from banks, insurers, brokers, mutual funds and government | This is the **official** series that regulated entities must use ([TRAI, PIB](https://pib.gov.in/PressReleasePage.aspx?PRID=2191647)). Blocking it also blocks your real bank. | -**Credit card and loan spam:** promotions must come from the 140 series, which is blocked. Official bank calls must come from 1600, which is not blocked by `complete.gz` or `all-rules.gz`. A loan or credit-card pitch from an ordinary mobile or landline breaks TRAI rules; report it in the **Report Spam** app (TRAI DND) and open a *New spam pattern* issue here. +**Credit card and loan spam:** promotions must come from the 140 series, which is blocked. Official bank calls must come from 1600, which is not blocked by `spamblocker-full-setup.gz` or `spamblocker-all-rules.gz`. A loan or credit-card pitch from an ordinary mobile or landline breaks TRAI rules; report it in the **Report Spam** app (TRAI DND) and open a *New spam pattern* issue here. ## Blocked by mistake? diff --git a/docs/IMPORT.md b/docs/IMPORT.md index 0f7c5a2..c03151a 100644 --- a/docs/IMPORT.md +++ b/docs/IMPORT.md @@ -2,9 +2,9 @@ > **Read this first** > -> - Settings and rules import separately. `settings.gz` only touches app settings (allow switches, Recent Apps) and never your number rules. `all-rules.gz` and `group-*.gz` only touch number rules. `complete.gz` does both. -> - Number-rule imports do not stack. Each import replaces ALL number rules, including your own and any earlier SpamWall import. To block two or three groups, import `all-rules.gz`, or import one group and add the other patterns by hand with "New" in Number Rules, copying the regex from `rules/in/block/.txt`. For all rules plus banks, import `all-rules.gz` and add IN-1600 (from `rules/in/optional/IN-1600.txt`) by hand. -> - Importing `settings.gz` replaces your Recent Apps list and the allow switches. +> - Settings and rules import separately. `spamblocker-settings.gz` only touches app settings (allow switches, Recent Apps) and never your number rules. `spamblocker-all-rules.gz` and `group-*.gz` only touch number rules. `spamblocker-full-setup.gz` does both. +> - Number-rule imports do not stack. Each import replaces ALL number rules, including your own and any earlier SpamWall import. To block two or three groups, import `spamblocker-all-rules.gz`, or import one group and add the other patterns by hand with "New" in Number Rules, copying the regex from `rules/in/block/.txt`. For all rules plus banks, import `spamblocker-all-rules.gz` and add IN-1600 (from `rules/in/optional/IN-1600.txt`) by hand. +> - Importing `spamblocker-settings.gz` replaces your Recent Apps list and the allow switches. > - Always export a backup first; importing it again is the undo. > - The maintainer has not tested this on every phone and SpamBlocker version. Report problems as [issues](../../issues). @@ -16,17 +16,17 @@ SpamBlocker for Android, from [F-Droid](https://f-droid.org/packages/spam.blocke | Label | File | Description | Download | |---|---|---|---| -| Everything (recommended) | `complete.gz` | Settings plus all default rules (not the bank group): one-tap full setup | [Download](https://github.com/wasimness/spamwall/releases/latest/download/complete.gz) | -| App settings only | `settings.gz` | Only the Others category: contacts, STIR, repeated call, dialed, answered, Recent Apps | [Download](https://github.com/wasimness/spamwall/releases/latest/download/settings.gz) | -| All spam rules | `all-rules.gz` | Allow rules plus the three default groups (not the bank group) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/all-rules.gz) | -| Promo and telemarketing calls | `group-telemarketing.gz` | Group `telemarketing`: the 140 promotional series, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-telemarketing.gz) | -| Call-centre ranges | `group-call-centres.gz` | Group `call-centres`: call-centre landline and Bengaluru ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-call-centres.gz) | -| Spam mobile ranges | `group-spam-mobiles.gz` | Group `spam-mobiles`: bulk telemarketing mobile ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-spam-mobiles.gz) | -| Bank and government calls (optional) | `group-banks-govt.gz` | Group `banks-govt`: the official 1600 series (also blocks your real bank), plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/group-banks-govt.gz) | +| Full setup (recommended) | `spamblocker-full-setup.gz` | App settings plus all spam rules in one import | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-full-setup.gz) | +| App settings only | `spamblocker-settings.gz` | Only the Others category: contacts, STIR, repeated call, dialed, answered, Recent Apps | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-settings.gz) | +| All spam rules | `spamblocker-all-rules.gz` | Allow rules plus the three default groups (not the bank group) | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-all-rules.gz) | +| Promo and telemarketing calls | `spamblocker-telemarketing.gz` | Group `telemarketing`: the 140 promotional series, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-telemarketing.gz) | +| Call-centre ranges | `spamblocker-call-centres.gz` | Group `call-centres`: call-centre landline and Bengaluru ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-call-centres.gz) | +| Spam mobile ranges | `spamblocker-spam-mobiles.gz` | Group `spam-mobiles`: bulk telemarketing mobile ranges, plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-spam-mobiles.gz) | +| Bank and government calls (optional) | `spamblocker-banks-govt.gz` | Group `banks-govt`: the official 1600 series (also blocks your real bank), plus the allow rules | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamblocker-banks-govt.gz) | | Raw list (CSV) | `spamwall-in.csv` | Every pattern and business number with its group, for any app or spreadsheet | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.csv) | | Raw list (JSON) | `spamwall-in.json` | Same data with a meta object, for scripts and AI | [Download](https://github.com/wasimness/spamwall/releases/latest/download/spamwall-in.json) | -Groups don't stack in SpamBlocker (each rules import replaces the number rules), so to block two groups, import `all-rules.gz`, or import one group and add the other patterns by hand from `rules/in/`. For all rules plus banks, import `all-rules.gz`, then add the IN-1600 pattern by hand. +Groups don't stack in SpamBlocker (each rules import replaces the number rules), so to block two groups, import `spamblocker-all-rules.gz`, or import one group and add the other patterns by hand from `rules/in/`. For all rules plus banks, import `spamblocker-all-rules.gz`, then add the IN-1600 pattern by hand. Each `.gz` also has a readable `.json` twin in `spamblocker/`. The Markdown table `raw/spamwall-in.md` is for reading in the repo, not a release download. Release assets are flat, so every file name is unique. @@ -45,12 +45,12 @@ The raw lists in `raw/` (CSV, JSON) are app-agnostic: the same rows as the SpamB 1. In SpamBlocker, open **Settings > Backup > Export** and save a backup of your current setup first. 2. Download the file you picked to your phone. 3. Open **Settings > Backup > Import** and pick the file. -4. In the **Include Settings** dialog, tap a category to move it between Include and Exclude. Keep only the category the file has (Others for `settings.gz`, Regex Settings for `all-rules.gz` and `group-*.gz`, both for `complete.gz`). +4. In the **Include Settings** dialog, tap a category to move it between Include and Exclude. Keep only the category the file has (Others for `spamblocker-settings.gz`, Regex Settings for `spamblocker-all-rules.gz` and `group-*.gz`, both for `spamblocker-full-setup.gz`). 5. Confirm the import. ## Nuances -- Import REPLACES the whole section. Number rules are cleared and re-added, so importing a `all-rules.gz` or `group-*.gz` file (or `complete.gz`) deletes your own number rules. Export first, or add your own rules again afterwards. +- Import REPLACES the whole section. Number rules are cleared and re-added, so importing a `spamblocker-all-rules.gz` or `group-*.gz` file (or `spamblocker-full-setup.gz`) deletes your own number rules. Export first, or add your own rules again afterwards. - A file that lacks a category shows "This setting is missing from the backup file and cannot be restored" for that category. Exclude it, as in step 4. - Allow and block rules must never share a priority. Here allow is 15, the built-in allow checks are 10 and block is 5. - Numbers are matched without +91 or a leading 0. diff --git a/spamblocker/group-spam-mobiles.gz b/spamblocker/group-spam-mobiles.gz deleted file mode 100644 index 55851a8f61f622b427ff38bd21e6dac1369596c6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 476 zcmV<20VDn&iwFn+00002|7UV}Y-Mu*)l|_=+b|S;?^j$!djP3O ziIXNx-&z!=YAuz@&=6yrT*nDk9lNp}7;F3QyXgWOkmpH#ito8ON7v`*dfNk!QO8Sd z1h?J@wmkrkN{Pp>cm!{meavotEU#zTm50E$9_;%_QgyZBW?9R>EYlVTUV|Veas&e3 z@Bb+`)H!YxV&3;4_Jg~-d>ijSc(2B!DGUt{Vv2j8lCcWCw>I+%|)627F=n*W6LNGxkSl-wMg*H$-A%(-L4@}nx8=xu& zsY_vzF_BC6{0-+-gNf;_xS}K`4JL_WRMKw@QCso&&Rim%Mpw# z`b#UAs$5WDwRO6}z%b4S!T52dLprzXBpxK;z~3cd5XQkS4WcB7b}1o4KiQ=bA%2RV zVU+l%%@Rh(w1kuE*{8GlVltg&Bbd~34US7*QM2Yws1ho@5|V?Vs>BEBeVE-@I#d7W SDBI_>xBm@anG}771pol>CFQdK diff --git a/spamblocker/group-telemarketing.gz b/spamblocker/group-telemarketing.gz deleted file mode 100644 index 1f048fcc7b7e18345668bcd39afc04e8d54b302e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 426 zcmV;b0agAViwFn+00002|7UVPQx$|y!R_s76*`u zNKz=!TR{a?Di0M9h^Jh~Nmq63%652F{dd+SymLnC%{${6t#`DZHGm23Wo|4=$2u@; z05Gl;9dGCeY}h;OT|Eph2E8*zz+D68O%my{7)d)U)tAav#X=Vl!Z0Nuj-uv!Ipy9< zs|jQGaXX4{Z_`~?MW0^`P zEKWU|MW<&|UR=^hpntp`n(n|!mZ3ndz{xN+$c%;3qe4$r6ND)Vw!n1?%H-%g3J0sH zRQR|MtbI0Vkp}Ny!jQHq4BejMVxmY!aK@FB6_ZuZXjQcsbFF2FiVe)uho=)`nNk$r zhcQw{On$xc6WcdB!+dc)F!Sc${NkGYlBC^AwzhZLttHB@d(^!?IqpEW;IBqQU#G}H zl+K%i0;4z|QOM;=C#m1A%_uC__EIg^X4HXGYYG!sTCWZ8QptkbiS(%RYTat$sZYn- U@}I-0KFG%W4eV$v7+3`W0C$_pnE(I) diff --git a/spamblocker/settings.gz b/spamblocker/settings.gz deleted file mode 100644 index 893c703aaefff3cdf8a96a265af4eeca87e5a1bc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 529 zcmV+s0`C1EiwFn+00002|8r$@bZKs9a{!H0OKTf35Wf3YEItPj8$xJrp)vH*2Tcow z(!=cTSeaTcG+J-hA^*K2+p%M6M|;>s8qN0@X{4t~HEkfF_K}dM@2jUtRZYPd8UB)C zHU0Aa)(_bx$`4%z6SHrUEE#SX7>h6q3i(Ipt(g#$)QoWoxu ziDDXLd3L>B;}oe$uj1ExIZhPcl5&mdTKwVG7->n{#iQay)`$V6?)Jm3)=TV(>~>pb zd##_J$jS6(&(ad?0GIG=dGUV~Ob-K}7!~S!$Odos)ZnZ@f|y>AMSvY#iZDJMQM@SbLNG%y`w#j2Suylxu9VF^X+4bg z0isXMcKg*v1d=a8bo5J%tmNt>Z!ro*5wpRNyj)4{MgnTmHSh|Pvc4vRV=!Hfv4Ogn zCkCkXDgZM&jj;&u288!maS;$6y_2h}O0J#MCz7Z)VvCgtQOXQvizk delta 24 ecmcb}e43eGzMF%C0SK7>rx)dy7HkyV!w3LTn+F{L diff --git a/spamblocker/group-banks-govt.json b/spamblocker/spamblocker-banks-govt.json similarity index 100% rename from spamblocker/group-banks-govt.json rename to spamblocker/spamblocker-banks-govt.json diff --git a/spamblocker/group-call-centres.gz b/spamblocker/spamblocker-call-centres.gz similarity index 86% rename from spamblocker/group-call-centres.gz rename to spamblocker/spamblocker-call-centres.gz index 0c48807dede1e03ba7ad03459ec6f60b20a9aa6e..1524128ae82b99f839d2b09a4cec1e084c3ebc5e 100644 GIT binary patch delta 30 kcmdnYvXezrzMF%C0SK7>7Z)VvCgtQOXQvizrx)dy7Hkw%VFCb5NCsE{ diff --git a/spamblocker/group-call-centres.json b/spamblocker/spamblocker-call-centres.json similarity index 100% rename from spamblocker/group-call-centres.json rename to spamblocker/spamblocker-call-centres.json diff --git a/spamblocker/complete.gz b/spamblocker/spamblocker-full-setup.gz similarity index 82% rename from spamblocker/complete.gz rename to spamblocker/spamblocker-full-setup.gz index 6db9c6fe236c4318bf7221aa0987699b8d69242c..00f2b61dbf3c02d4476dd3bc8d74be3302eb1871 100644 GIT binary patch delta 41 vcmX@gahXFwzMF%C0SK7>7Z)VvCgtQOXQvkFrj_R8=oY7zloo6hGG+k)2m}pJ delta 27 hcmcc2ag;+yzMF%C0SK7>C+FuDs8qN0@X{4t~HEkfF_K}dM z@2jUtRZYPd8UB)CHU0Aa)(_bx$`4%z6SHrUEE#SX7>h6q3i z(Ipt(g#$)QoWoxuiDDXLd3L>B;}oe$uj1ExIZhPcl5&mdTKwVG7->n{#iQay)`$V6 z?)Jm3)=TV(>~>pbd##_J$jS6(&(ad?0GIG=dGUV~Ob-K}7!~S!$Odos)ZnZ@f|y>AMSvY#iZDJMQM@SbLNG%y`w#j2 zSuylxu9VF^X+4bg0isXMcKg*v1d=a8bo5J%tmNt>Z!ro*5wpRNyj)4{MgnTmHSh|P zvc4vRV=!Hfv4OgnCkCkXDgZM&jj;&u288!maS;$6y_2h}O0J#MCzTZ7pqYVrgt;a{$#;(N5bi6n*bk zTt#~TsYr>FCQaX36sBq|mCDc%W1C#Z3057uvK<&}`|rEy0vnL$Nqvg%xj9GI=jeLd z1CLS1OKk+V-Uzlm0FO$E$FFz~62+ZU3SjnFVi$?MKs=lt{2hGX-MWcJe; z+UR;6__JUar$aL5mKm{eLLVl*+R*9?S_0F{vu5ZKEQ&%fK_yt;*an3*P&*-o!>SKV z*9aS+DhH`cVVz(WPI4~A!+~)6GNch`ynAX)8nl?O6G_=xA`Rh!O3T|$(Ox5LYj#hS z;!RZEOg}zrT6WKKjN)H2R#LO|n_IqM=UNq_JpA5t_Wk$y1s(Yj5{G1v4CC;K@*B^` zw~NaWj4S#}E10TWP++xny28LP&IiHxaiv2#x9cPxB;ml{C1DW8!7dG=B#3q?Awxge zr4b>1il1SW_@~VhM#r>-lk3^1v-x5&on<4K)N&1uOI}g4=1!;*D!metgQ2R#2kCv7 Y-B~(Q|K}*%=d`!~4PTiQeTD@90AZl$82|tP literal 0 HcmV?d00001 diff --git a/spamblocker/group-spam-mobiles.json b/spamblocker/spamblocker-spam-mobiles.json similarity index 100% rename from spamblocker/group-spam-mobiles.json rename to spamblocker/spamblocker-spam-mobiles.json diff --git a/spamblocker/spamblocker-telemarketing.gz b/spamblocker/spamblocker-telemarketing.gz new file mode 100644 index 0000000000000000000000000000000000000000..39748f27fdce60a0bbf2fa50c5885501035fc161 GIT binary patch literal 432 zcmV;h0Z;xPiwFn+00002|8sC*ZDMS1V{2t{Ep%mUWo=<{Yh`q4Zf5}1RLf4oFc7@= zD^?Z1sJM3LO3@-+~Ge*E&1LjQ<>9QC}J1o_g%2vff7ZAcQB_NKX z=6gBi-b!!PgN6yDG9c~bqdPl z=sXGstEp7@xDc#;HffOt?_a`@wkizWp5kJnNJenRm6H{dRnKTuwHR})Wr&Im%+rUb z6JwcD6yJw2QbtUEz48;=H#)<7aXm2e=HL9{n*5Ta-AcB$ciOEb%CCFWy*@eaK)2wp zMnhkx$U&6On}PzPI3H2S%IlEZ6o@E!Sq$fm3S=6IfcW4e(OQg4>DosPk&w aYT~I+$J_Fs!>K;V#{3QJXe=051pokX8_fRz literal 0 HcmV?d00001 diff --git a/spamblocker/group-telemarketing.json b/spamblocker/spamblocker-telemarketing.json similarity index 100% rename from spamblocker/group-telemarketing.json rename to spamblocker/spamblocker-telemarketing.json diff --git a/tools/build_spamblocker.py b/tools/build_spamblocker.py index c53ad63..092708b 100644 --- a/tools/build_spamblocker.py +++ b/tools/build_spamblocker.py @@ -1,7 +1,7 @@ """Build the SpamBlocker import files from rules// and write patterns.md. Usage: python -I tools/build_spamblocker.py -Writes spamblocker/{complete,settings,all-rules,group-}.{gz,json}, +Writes spamblocker/{spamblocker-full-setup,spamblocker-settings,spamblocker-all-rules,spamblocker-}.{gz,json}, raw/spamwall-.{csv,json,md} and rules//patterns.md. Old spamwall-*.{gz,json} files are removed. """ import csv @@ -99,12 +99,12 @@ def files(d): s = settings(d) default = group_rules(d, DEFAULT_GROUPS) out = { - "complete": {**s, "categories": {"all": ["OTHERS", "REGEX_RULES"]}, **default}, - "settings": s, - "all-rules": {"categories": {"all": ["REGEX_RULES"]}, **default}, + "spamblocker-full-setup": {**s, "categories": {"all": ["OTHERS", "REGEX_RULES"]}, **default}, + "spamblocker-settings": s, + "spamblocker-all-rules": {"categories": {"all": ["REGEX_RULES"]}, **default}, } for g in GROUPS: - out[f"group-{g}"] = {"categories": {"all": ["REGEX_RULES"]}, **group_rules(d, [g])} + out[f"spamblocker-{g}"] = {"categories": {"all": ["REGEX_RULES"]}, **group_rules(d, [g])} return out diff --git a/tools/check.py b/tools/check.py index 5ede74d..5f11fe0 100644 --- a/tools/check.py +++ b/tools/check.py @@ -98,18 +98,18 @@ def gen(): if blocks != set(group_of): errors.append(f"patterns without a valid group: {sorted(blocks - set(group_of))}") sb = ROOT / "spamblocker" -expected_files = {f"{n}.{e}" for n in ["complete", "settings", "all-rules"] + [f"group-{g}" for g in GROUPS] for e in ("gz", "json")} +expected_files = {f"{n}.{e}" for n in ["spamblocker-full-setup", "spamblocker-settings", "spamblocker-all-rules"] + [f"spamblocker-{g}" for g in GROUPS] for e in ("gz", "json")} if {p.name for p in sb.glob("*")} != expected_files: - errors.append("spamblocker/ must hold exactly complete, settings, all-rules and one group- file (gz + json)") + errors.append("spamblocker/ must hold exactly spamblocker-full-setup, spamblocker-settings, spamblocker-all-rules and one spamblocker- file (gz + json)") allow_ids = {r["id"] for r in build.read_dir(ROOT / "rules" / "in" / "allow")} for g in GROUPS: want = {i for i, gg in group_of.items() if gg == g} - rr = json.loads((sb / f"group-{g}.json").read_text(encoding="utf-8"))["numberRules"]["rules"] + rr = json.loads((sb / f"spamblocker-{g}.json").read_text(encoding="utf-8"))["numberRules"]["rules"] got_b = {m.group(1) for r in rr if r["isBlacklist"] for m in [re.match(r"SpamWall (\S+):", r["description"])] if m} got_a = {m.group(1) for r in rr if not r["isBlacklist"] for m in [re.match(r"SpamWall (\S+):", r["description"])] if m} if got_b != want or got_a != allow_ids or len(rr) != len(want) + len(allow_ids): - errors.append(f"group-{g}.json must hold exactly its block rules {sorted(want)} plus the allow rules") -d = json.loads((ROOT / "spamblocker" / "complete.json").read_text(encoding="utf-8")) + errors.append(f"spamblocker-{g}.json must hold exactly its block rules {sorted(want)} plus the allow rules") +d = json.loads((ROOT / "spamblocker" / "spamblocker-full-setup.json").read_text(encoding="utf-8")) rl = d["numberRules"]["rules"] shared = {r["priority"] for r in rl if r["isBlacklist"]} & {r["priority"] for r in rl if not r["isBlacklist"]} if shared: From d6c8c43fb5478f392a7630227bda8913d2a36ef2 Mon Sep 17 00:00:00 2001 From: Wasim Akram <55689108+wasimness@users.noreply.github.com> Date: Fri, 27 Nov 2026 15:45:02 +0530 Subject: [PATCH 5/5] docs: group file names in import guide Co-Authored-By: Claude Opus 5.5 --- docs/IMPORT.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/IMPORT.md b/docs/IMPORT.md index c03151a..1be7319 100644 --- a/docs/IMPORT.md +++ b/docs/IMPORT.md @@ -2,7 +2,7 @@ > **Read this first** > -> - Settings and rules import separately. `spamblocker-settings.gz` only touches app settings (allow switches, Recent Apps) and never your number rules. `spamblocker-all-rules.gz` and `group-*.gz` only touch number rules. `spamblocker-full-setup.gz` does both. +> - Settings and rules import separately. `spamblocker-settings.gz` only touches app settings (allow switches, Recent Apps) and never your number rules. `spamblocker-all-rules.gz` and the four group files (`spamblocker-telemarketing.gz`, `spamblocker-call-centres.gz`, `spamblocker-spam-mobiles.gz`, `spamblocker-banks-govt.gz`) only touch number rules. `spamblocker-full-setup.gz` does both. > - Number-rule imports do not stack. Each import replaces ALL number rules, including your own and any earlier SpamWall import. To block two or three groups, import `spamblocker-all-rules.gz`, or import one group and add the other patterns by hand with "New" in Number Rules, copying the regex from `rules/in/block/.txt`. For all rules plus banks, import `spamblocker-all-rules.gz` and add IN-1600 (from `rules/in/optional/IN-1600.txt`) by hand. > - Importing `spamblocker-settings.gz` replaces your Recent Apps list and the allow switches. > - Always export a backup first; importing it again is the undo. @@ -45,12 +45,12 @@ The raw lists in `raw/` (CSV, JSON) are app-agnostic: the same rows as the SpamB 1. In SpamBlocker, open **Settings > Backup > Export** and save a backup of your current setup first. 2. Download the file you picked to your phone. 3. Open **Settings > Backup > Import** and pick the file. -4. In the **Include Settings** dialog, tap a category to move it between Include and Exclude. Keep only the category the file has (Others for `spamblocker-settings.gz`, Regex Settings for `spamblocker-all-rules.gz` and `group-*.gz`, both for `spamblocker-full-setup.gz`). +4. In the **Include Settings** dialog, tap a category to move it between Include and Exclude. Keep only the category the file has (Others for `spamblocker-settings.gz`, Regex Settings for `spamblocker-all-rules.gz` and the four group files (`spamblocker-telemarketing.gz`, `spamblocker-call-centres.gz`, `spamblocker-spam-mobiles.gz`, `spamblocker-banks-govt.gz`), both for `spamblocker-full-setup.gz`). 5. Confirm the import. ## Nuances -- Import REPLACES the whole section. Number rules are cleared and re-added, so importing a `spamblocker-all-rules.gz` or `group-*.gz` file (or `spamblocker-full-setup.gz`) deletes your own number rules. Export first, or add your own rules again afterwards. +- Import REPLACES the whole section. Number rules are cleared and re-added, so importing a `spamblocker-all-rules.gz` or the four group files (`spamblocker-telemarketing.gz`, `spamblocker-call-centres.gz`, `spamblocker-spam-mobiles.gz`, `spamblocker-banks-govt.gz`) file (or `spamblocker-full-setup.gz`) deletes your own number rules. Export first, or add your own rules again afterwards. - A file that lacks a category shows "This setting is missing from the backup file and cannot be restored" for that category. Exclude it, as in step 4. - Allow and block rules must never share a priority. Here allow is 15, the built-in allow checks are 10 and block is 5. - Numbers are matched without +91 or a leading 0.