Spamblock: High-Volume Spam Filtering and Mitigation
SpamBlocker
SpamBlocker is an open-source project (also available on F-Droid) to block unwanted numbers granularly, even with wildcards.
Once installed and given the appropriate permissions (ALL of those it asks for):
Enable -> ON
- Calls --> ON
- SMS --> ON
Contacts -> ON (anyone in contacts can call you)
STIR -> OFF (blocks calls that do not pass Secure Telephony Identity Revisited/Signature-based Handling of Asserted information using toKENs attestation). Theoretically, it is not necessary if AGCOM actually did its job.
Repeated call -> OFF
Called number -> X (for how long you want a number you called to be able to call you back)
Emergency -> 120 minutes (after calling 112, how long you can be called by anyone)
Browse through the options, but let's get to the RAW regexes (click the flag when entering them) and keep in mind that a higher number corresponds to a higher priority (the opposite of the norm in Linux environments, in short):
- ^(\+39|0039)?055[0-9]+ : ALLOW --> Allows all calls from Florence (prio n > 0)
- ^(\+39|0039)?3[0-9]+ : ALLOW --> Allows all calls from Italian mobile phones (prio n > 0)
- .* : BLOCK --> Blocks everything else (Prio 0)
For the record:
- ^ : the number starts with what follows (^2 starts with 2, ^12 starts with 12 and so on)
- (\+39 | 0039): \+ is an escape character indicating the + (otherwise it would be interpreted as a regex operator). It means +39 or 0039
- ? : means that what was there before can either be there or not
So for now: ^(\+39|0039)? : means that the number may or may not start with the Italian prefix
- 055[0-9]+: the digits that follow are 055 followed by other digits. It could also have been written as 055.*
| Priority | Regex | Action | Description |
|---|---|---|---|
| 10 | ^(\+39|0039)?3[0-9]+ | ALLOW | Allows all Italian mobile phones |
| 20 | ^(\+39|0039)?055[0-9]+ | ALLOW | Allows all fixed lines from Florence |
| 0 | .* | BLOCK | Blocks all other numbers |
[May the big mole be with you]
[EOF]
Discussion and support channel. To discuss configurations or other topics, join us on fluxer.dreadful.work.

