russian utf8 spam - ORF Forums

russian utf8 spam RSS Back to forum

1

Anyone has a regex to blacklist russian utf8 spam? I can't block utf8 charset since its being used by legitimate senders.

yet I seem to be getting alot of russian spam that gets through on a daily basis (accepted).

by christopher.low more than 10 years ago
2

@christopher.low: Try the following:

.*[\x{0400}-\x{04ff}\x{0500}-\x{052f}\x{2de0}-\x{2dff}\x{a640}-\x{a69f}\x{1d2b}-\x{1d78}].*

It blocks all emails which has any characters from the following Unicode code blocks:

Cyrillic: U+0400–U+04FF, 256 characters
Cyrillic Supplement: U+0500–U+052F, 48 characters
Cyrillic Extended-A: U+2DE0–U+2DFF, 32 characters
Cyrillic Extended-B: U+A640–U+A69F, 96 characters
Phonetic Extensions: U+1D2B, U+1D78, 2 Cyrillic characters

http://en.wikipedia.org/wiki/Cyrillic_script_in_Unicode

by Krisztián Fekete (Vamsoft) more than 10 years ago
(in reply to this post)

New comment

Fill in the form below to add a new comment. All fields are required. If you are a registered user on our site, please sign in first.

It will not be published.
hnp1 | hnp2