]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Clarify that IPFS *gateway* URLs are likely considered malicious
authortwesterhever <40121680+twesterhever@users.noreply.github.com>
Sun, 6 Nov 2022 14:31:23 +0000 (14:31 +0000)
committerGitHub <noreply@github.com>
Sun, 6 Nov 2022 14:31:23 +0000 (14:31 +0000)
rules/regexp/misc.lua

index c7876567f14f033938fb2404e8a6f5c96552b66f..47b8f74a9c45d874710859653bc2e587d4730a42 100644 (file)
@@ -108,8 +108,8 @@ rspamd_config:register_dependency('LEAKED_PASSWORD_SCAM', 'BITCOIN_ADDR')
 -- depending on the hash algorithm used.
 local ipfs_cid = '/(qm[a-z0-9]{44}|[a-z0-9]{45,256})/{url}i'
 local ipfs_string = '/ipfs(\\.|-|_|\\/|\\?)/{url}i'
-reconf['HAS_IPFS_URL'] = {
-  description = 'Message contains InterPlanetary File System (IPFS) URL, likely malicious',
+reconf['HAS_IPFS_GATEWAY_URL'] = {
+  description = 'Message contains InterPlanetary File System (IPFS) gateway URL, likely malicious',
   re = string.format('(%s & %s)', ipfs_cid, ipfs_string),
   score = 6.0,
   one_shot = true,