Skip to content

Commit

Permalink
fix: blocked cashapp spam
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jan 18, 2025
1 parent c2cbf7b commit 526ddc3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions helpers/is-arbitrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const REGEX_WARMUP = new RE2(/ \|(?: [a-zA-Z\d]{7,}){2}$/);
const REGEX_WARMUP_ALT = new RE2(/ \| [a-zA-Z\d]{8,}-[a-zA-Z\d]{8,}$/);

const REGEX_BLOCKED_PHRASES = new RE2(
/recorded you|you've been hacked|account is hacked|personal data has leaked/im
/cheecck y0ur acc0untt|recorded you|you've been hacked|account is hacked|personal data has leaked/im
);

// const REGEX_BITCOIN = new RE2(/bitcoin|btc/im);
Expand Down Expand Up @@ -90,9 +90,7 @@ function isArbitrary(session, headers) {

// rudimentary blocking
if (subject && REGEX_BLOCKED_PHRASES.test(subject))
throw new SMTPError(
`Blocked phrase, please forward this to ${config.abuseEmail}`
);
throw new SMTPError('Spam', { responseCode: 421 });

// until adobe responds
// if (
Expand Down

0 comments on commit 526ddc3

Please # to comment.