Table of Contents
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This page is contributed by: @Fred-Vatin, @JEAYNE, @Lindvorn, @Malachiel87, @Ofboir, @Percherie, @PocketFR, @hayvan96, @lucasmz-dev, @revanmj, @vanek49
If you'd like to share your regex/workflow here, please check this guide.
🇧🇷 Brazil
Telemarketing prefix
^(\+55|0)303\d{7}$
Important
🇬🇧 Make sure the "Raw number" option is enabled in the regex flags.
🇧🇷 Certifique-se que a opção "Número bruto" está ativada nas flags de regex.
More info: https://www.gov.br/anatel/pt-br/regulado/numeracao/telemarketing-ativo-prefixo-0303
🇫🇷 France
Query API: Dois-je répondre?
{
"id": 2,
"desc": "Dois-je répondre?",
"actions": [
{
"type": "ParseIncomingNumber",
"numberFilter": "^(?:\\+33|33|0)?\\d{9}$"
},
{
"type": "HttpDownload",
"method": 0,
"url": "https://www.doisjerepondre.fr/numero-de-telephone/0{domestic}",
"header": "",
"body": ""
},
{
"type": "ParseQueryResult",
"negativeSig": "\\dx négative",
"negativeFlags": 5,
"positiveSig": "\\dx positive",
"positiveFlags": 5,
"categorySig": "Cat[eé]gories.*<li class='active.*?'>\\d+x ([a-zA-Z0-9'éèàêâç\/ ]+)<\/li>",
"categoryFlags": 1029
},
{
"type": "FilterSpamResult"
},
{
"type": "ImportToSpamDB",
"importReason": "Manually"
}
],
"enabled": true
}
démarchage téléphonique en métropole
^(?:33)?(16[23]|268[89]|27[01]|37[78]|42[45]|56[89]|598[7-9]|947[5-9]|94[89])\d{5,6}$
N’utilisez aucun flag RegEx.
Les numéros de démarchage sont encadrés par l’ARCEP. Il doivent utiliser un certain schéma défini ici. Ils sont labellisés tels que : Numéros polyvalents vérifiés (pouvant être utilisés comme numéro d’appelant par des systèmes automatisés d’appels et d’envoi de messages). Ainsi, ils sont facilement identifiables puisque commençant toujours par certains numéros.
En ajoutant cette RegEx, tous ces numéros sont bloqués. Ils sont responsables de la très grande majorité des appels indésirables.
Onoff
^(33)?(64466|64467|64468|64469|7568|7569)\d{4,5}$
d'Outre-mer
| Region | valid regex |
|---|---|
| Guadeloupe, Saint-Martin et Saint-Barthélemy | ^(?:590|0)9475\d{5}$ |
| Guyane | ^(?:594|0)9476\d{5}$ |
| Martinique | ^(?:596|0)9477\d{5}$ |
| La Réunion, Mayotte et autres territoires de l’Océan Indien | ^(?:262|0)(?:9478|9479)\d{5}$ |
Source: This pdf published by ARCEP. Jump to: Annexe N°1, Chapter 2.3.7 "Conditions spécifiques aux numéros polyvalents vérifiés", Page 23/65.
🇮🇹 Italy
SIA (Chi le ha chiamato)
Based on the original French SIA workflow i converted it for make it work with italy numbers (Chi le ha chiamato)
{
"id": 6,
"desc": "SIA Italy",
"actions": [
{
"type": "ParseIncomingNumber",
"numberFilter": ".*"
},
{
"type": "HttpDownload",
"method": 0,
"url": "https://www.chistachiamando.it/numero-telefono/{domestic}",
"header": "",
"body": ""
},
{
"type": "ParseQueryResult",
"negativeSig": "\\dx negativa",
"negativeFlags": 5,
"positiveSig": "\\dx positiva",
"positiveFlags": 5,
"categorySig": "NEGATIVA ([A-Z]+)",
"categoryFlags": 1029
},
{
"type": "FilterSpamResult"
},
{
"type": "ImportToSpamDB",
"importReason": "Manually"
}
],
"enabled": true
}
🇵🇱 Poland
odebractelefon.pl integration
{
"id": 1,
"desc": "odebractelefon.pl",
"actions": [
{
"type": "ParseIncomingNumber",
"numberFilter": ".*"
},
{
"type": "HttpDownload",
"method": 0,
"url": "https://www.odebractelefon.pl/numer-telefonu/{domestic}",
"header": "",
"body": ""
},
{
"type": "ParseQueryResult",
"negativeSig": "\\dx negatywna",
"negativeFlags": 5,
"positiveSig": "\\dx pozytywna",
"positiveFlags": 5,
"categorySig": "Kategoria[\\S\\s]*\\dx ([a-zA-Z0-9' ]+)</li>",
"categoryFlags": 1029
},
{
"type": "FilterSpamResult"
},
{
"type": "ImportToSpamDB",
"importReason": "Manually"
}
],
"enabled": true
}
🇺🇦 Ukraine
telefonnyjdovidnyk
{
"id": 6,
"desc": "[www.telefonnyjdovidnyk.com.ua](http://www.telefonnyjdovidnyk.com.ua/)",
"actions": [
{
"type": "ParseIncomingNumber",
"numberFilter": "\\d+"
},
{
"type": "HttpDownload",
"method": 0,
"url": "[https://www.telefonnyjdovidnyk.com.ua/nomer/{number](https://www.telefonnyjdovidnyk.com.ua/nomer/%7Bnumber)}",
"header": "",
"body": ""
},
{
"type": "ParseQueryResult",
"negativeSig": "Ступінь небезпеки.*((?:7|8|9|10)\\d) %</span>",
"negativeFlags": 5,
"positiveSig": "Ступінь небезпеки.*((?:0|1|2)?\\d) %</span>",
"positiveFlags": 5
},
{
"type": "FilterSpamResult"
},
{
"type": "ImportToSpamDB",
"importReason": "Manually"
}
],
"enabled": true
}
Callfilter API request
{
"id": 5,
"desc": "CallFilter",
"actions": [
{
"type": "ParseIncomingNumber",
"numberFilter": ".*"
},
{
"type": "HttpDownload",
"method": 0,
"url": "https://callfilter.app/{number}",
"header": "",
"body": ""
},
{
"type": "ParseQueryResult",
"negativeSig": "\\dx негативні",
"negativeFlags": 5,
"positiveSig": "\\dx позитивні",
"positiveFlags": 5,
"categorySig": "Categories.*?\\d+x ([a-zA-Zа-яА-Я0-9' ]+)</li>",
"categoryFlags": 1029,
"categoryMapping": ""
},
{
"type": "FilterSpamResult"
},
{
"type": "ImportToSpamDB",
"importReason": "Manually"
}
],
"enabled": true
}
🌐 INTERNATIONAL
Block numbers from Maghreb
^(\+|00)(212|213|216|218|222)\d+$
Important
Only useful if you reside OUTSIDE the Maghreb and receive some spams from there. Enable the
Raw Numberflag as in the screenshot below. This should prevent issues with local numbers in their national format.
This RegEx matches those countries:
| Country | Country Code |
|---|---|
| Algeria | +213 |
| Libya | +218 |
| Mauritania | +222 |
| Morocco | +212 |
| Tunisia | +216 |
Callfilter API request
{
"id": 7,
"desc": "CallFilter",
"actions": [
{
"type": "ParseIncomingNumber",
"numberFilter": ".*"
},
{
"type": "HttpDownload",
"method": 0,
"url": "https://callfilter.app/{number}",
"header": "",
"body": ""
},
{
"type": "ParseQueryResult",
"negativeSig": "\\dx negative",
"negativeFlags": 5,
"positiveSig": "\\dx positive",
"positiveFlags": 5,
"categorySig": "Categories.*1x ([a-zA-Z0-9' ]+)</li>",
"categoryFlags": 1029
},
{
"type": "FilterSpamResult"
},
{
"type": "ImportToSpamDB",
"importReason": "Manually"
}
],
"enabled": true
}
Tellows API Request
Use Tellows API (You can adjust the domain name to your country)
{
"id": 1,
"desc": "Tellows",
"actions": [
{
"type": "ParseIncomingNumber",
"numberFilter": ".*"
},
{
"type": "HttpDownload",
"method": 0,
"url": "https://www.tellows.com/basic/num/%2B{cc}{domestic}?json=1",
"header": "",
"body": ""
},
{
"type": "ParseQueryResult",
"negativeSig": "\"score\":\"(7|8|9)\"",
"negativeFlags": 5,
"positiveSig": "\"score\":\"(1|2|3)\"",
"positiveFlags": 5,
"categorySig": "",
"categoryFlags": 5
},
{
"type": "FilterSpamResult"
},
{
"type": "ImportToSpamDB",
"importReason": "Manually"
}
],
"enabled": true
}