diff --git a/CHANGELOG.md b/CHANGELOG.md index 82f9bf5..f5ff566 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ # Changelog -## 0.1.0 - 2026-11-27 +All notable changes to this project are documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.1.0] - 2026-11-27 + +### Added - First India ruleset: block 140 promotional series, call-centre landline ranges, Bengaluru call-centre blocks and bulk telemarketing mobile ranges; allow 1601 delivery/utility series; optional strict file blocks 1600. - One-click SpamBlocker import files and plain regex lists. - Unblock-request and new-pattern issue templates. + +[Unreleased]: https://github.com/wasimness/spamwall/compare/v0.1.0...HEAD +[0.1.0]: https://github.com/wasimness/spamwall/releases/tag/v0.1.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bae3a24..bb756aa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,4 +6,4 @@ - Never add official service series (India: 1600, 1601) to `block.txt`. - Never commit personal phone numbers or call logs. - After editing, run `python -I tools/build_spamblocker.py` and commit the rebuilt files in `spamblocker/`. -- False positives are fixed first: an unblock request outranks a new block. +- Fix false positives first. An unblock request outranks a new block. diff --git a/README.md b/README.md index 7cb6512..f4229f7 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,28 @@ # spamwall -Pattern-based spam-call block rules you can import in one click. Built for [SpamBlocker](https://github.com/aj3423/SpamBlocker) on Android; the plain regex lists work in any blocker that accepts regular expressions. +![spamwall: spam call and SMS block patterns for India](assets/banner.svg) -The first ruleset is **India**. It blocks whole number ranges used by telemarketers and call centres instead of single numbers. Calls from shopping, delivery, ride and payment apps, from your contacts, and from official service lines are never blocked. +**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. + +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 + +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. + +- 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). + +spamwall is a separate community project and is not made by or affiliated with SpamBlocker. ## Quick start (SpamBlocker) 1. In SpamBlocker, export a backup first: **Settings > Backup > Export**. An import replaces your number rules. 2. Download [`spamblocker/spamwall-in.gz`](spamblocker/spamwall-in.gz) to your phone. 3. **Settings > Backup > Import**, pick the file, keep only **Others** and **Regex Settings** under *Include Settings*, then tap **Import**. -4. **Settings > Recent Apps**: switch on the apps you use from [`rules/in/allow-apps.txt`](rules/in/allow-apps.txt) and set the time to 120 minutes, so delivery riders and drivers on masked numbers get through. +4. **Recent Apps** comes pre-filled with the shopping, delivery, ride, payment and government apps in [`rules/in/allow-apps.txt`](rules/in/allow-apps.txt), set to 120 minutes. If you used one of them in the last 2 hours, any call gets through, so delivery riders and drivers on masked numbers reach you. Apps you have not installed are ignored. Add your own bank and broker apps in **Settings > Recent Apps**. 5. Check that **Contacts**, **Repeated Call**, **Dialed Number** and **Answered Number** are on. Want bank and insurance service calls blocked too? Use `spamwall-in-strict.gz` instead, and add your own banks' 1600 numbers to your contacts first. @@ -54,7 +67,7 @@ Numbers are matched without `+91` or a leading `0`. ## Blocked by mistake? -Open an [**Unblock request**](../../issues/new?template=unblock-request.yml). Give the number (or its first digits), the company and why it is legitimate. Rules that block real businesses are narrowed or removed. +Open an [**Unblock request**](../../issues/new?template=unblock-request.yml). Give the number (or its first digits), the company and why it is legitimate. If a rule blocks a real business, we narrow it or remove it. ## Contributing diff --git a/SECURITY.md b/SECURITY.md index 7749ead..dac8b18 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,4 +2,4 @@ - Never post personal phone numbers, call logs, contact lists or app backups in issues or pull requests. Only spam numbers and number ranges belong here. - The import files contain rules only: no API tokens, history, contacts or personal settings. -- Report a security or privacy problem privately through GitHub's "Report a vulnerability" on this repository. +- Report any security or privacy problem privately through GitHub's "Report a vulnerability" on this repository. diff --git a/assets/banner.svg b/assets/banner.svg new file mode 100644 index 0000000..98a4519 --- /dev/null +++ b/assets/banner.svg @@ -0,0 +1,16 @@ + + spamwall + Pattern-based spam call and SMS blocking rules for Indian numbers + + + + + + + + ^140\d{7}$^(3366|2250)call centres + + spamwall + Spam call and SMS block patterns for India (+91) + One-click import for SpamBlocker + diff --git a/rules/in/allow-apps.txt b/rules/in/allow-apps.txt index bee3d9f..3ea42e7 100644 --- a/rules/in/allow-apps.txt +++ b/rules/in/allow-apps.txt @@ -5,7 +5,6 @@ com.flipkart.android # Flipkart com.myntra.android # Myntra com.meesho.supply # Meesho com.jio.jiomart # JioMart -com.nykaa.android # Nykaa (verify package) # Quick commerce / food delivery in.swiggy.android # Swiggy com.application.zomato # Zomato @@ -21,3 +20,6 @@ com.phonepe.app # PhonePe net.one97.paytm # Paytm com.google.android.apps.nbu.paisa.user # Google Pay com.jio.myjio # MyJio +com.paypal.android.p2pmobile # PayPal +com.transferwise.android # Wise +in.gov.umang.negd.g2c # UMANG (government services) diff --git a/spamblocker/spamwall-in-strict.gz b/spamblocker/spamwall-in-strict.gz index 1de9e46..616038a 100644 Binary files a/spamblocker/spamwall-in-strict.gz and b/spamblocker/spamwall-in-strict.gz differ diff --git a/spamblocker/spamwall-in-strict.json b/spamblocker/spamwall-in-strict.json index 7ea9a5d..fdc4f0b 100644 --- a/spamblocker/spamwall-in-strict.json +++ b/spamblocker/spamwall-in-strict.json @@ -33,6 +33,71 @@ "minDuration": 15, "inXDay": 7 }, + "recentApps": { + "list": [ + { + "pkgName": "in.amazon.mShop.android.shopping" + }, + { + "pkgName": "com.flipkart.android" + }, + { + "pkgName": "com.myntra.android" + }, + { + "pkgName": "com.meesho.supply" + }, + { + "pkgName": "com.jio.jiomart" + }, + { + "pkgName": "in.swiggy.android" + }, + { + "pkgName": "com.application.zomato" + }, + { + "pkgName": "com.grofers.customerapp" + }, + { + "pkgName": "com.zeptoconsumerapp" + }, + { + "pkgName": "com.bigbasket.mobileapp" + }, + { + "pkgName": "com.ubercab" + }, + { + "pkgName": "com.rapido.passenger" + }, + { + "pkgName": "com.olacabs.customer" + }, + { + "pkgName": "com.phonepe.app" + }, + { + "pkgName": "net.one97.paytm" + }, + { + "pkgName": "com.google.android.apps.nbu.paisa.user" + }, + { + "pkgName": "com.jio.myjio" + }, + { + "pkgName": "com.paypal.android.p2pmobile" + }, + { + "pkgName": "com.transferwise.android" + }, + { + "pkgName": "in.gov.umang.negd.g2c" + } + ], + "inXMin": 120 + }, "numberRules": { "rules": [ { diff --git a/spamblocker/spamwall-in.gz b/spamblocker/spamwall-in.gz index fa34327..a60db8c 100644 Binary files a/spamblocker/spamwall-in.gz and b/spamblocker/spamwall-in.gz differ diff --git a/spamblocker/spamwall-in.json b/spamblocker/spamwall-in.json index 5f1af3c..1666512 100644 --- a/spamblocker/spamwall-in.json +++ b/spamblocker/spamwall-in.json @@ -33,6 +33,71 @@ "minDuration": 15, "inXDay": 7 }, + "recentApps": { + "list": [ + { + "pkgName": "in.amazon.mShop.android.shopping" + }, + { + "pkgName": "com.flipkart.android" + }, + { + "pkgName": "com.myntra.android" + }, + { + "pkgName": "com.meesho.supply" + }, + { + "pkgName": "com.jio.jiomart" + }, + { + "pkgName": "in.swiggy.android" + }, + { + "pkgName": "com.application.zomato" + }, + { + "pkgName": "com.grofers.customerapp" + }, + { + "pkgName": "com.zeptoconsumerapp" + }, + { + "pkgName": "com.bigbasket.mobileapp" + }, + { + "pkgName": "com.ubercab" + }, + { + "pkgName": "com.rapido.passenger" + }, + { + "pkgName": "com.olacabs.customer" + }, + { + "pkgName": "com.phonepe.app" + }, + { + "pkgName": "net.one97.paytm" + }, + { + "pkgName": "com.google.android.apps.nbu.paisa.user" + }, + { + "pkgName": "com.jio.myjio" + }, + { + "pkgName": "com.paypal.android.p2pmobile" + }, + { + "pkgName": "com.transferwise.android" + }, + { + "pkgName": "in.gov.umang.negd.g2c" + } + ], + "inXMin": 120 + }, "numberRules": { "rules": [ { diff --git a/tools/build_spamblocker.py b/tools/build_spamblocker.py index ff88c31..0c76554 100644 --- a/tools/build_spamblocker.py +++ b/tools/build_spamblocker.py @@ -57,6 +57,7 @@ def build(cc, strict): "repeatedCall": {"enabled": True, "times": 1, "inXMin": 5}, "dialed": {"enabled": True, "smsEnabled": True, "always": False, "inXDay": 7}, "answered": {"warningAcknowledged": True, "enabled": True, "minDuration": 15, "inXDay": 7}, + "recentApps": {"list": [{"pkgName": a["pattern"]} for a in read_rules(d / "allow-apps.txt")], "inXMin": 120}, "numberRules": {"rules": rules}, }