| Author |
Message |
gaol Novice Poster
Joined: 15 Nov 2006 Posts: 5
|
Posted: Sun Jan 07, 2007 12:53 am Post subject: Regex help |
|
|
| I'm getting a lot of spam from email addresses such as akstcfavoritesexmnsdgs@favoritesex.com or akstccandystarmnsdgs@candystar.com. I can see the bit before the @ sign is just the domain name with the letters "akst" and "mnsdgs" at each end, but not sure of the regular expression to filter them out. Some help would really be appreciated. |
|
| Back to top |
|
| |
krt ...

Joined: 11 Jan 2005 Posts: 4704 Location: Down Under
|
Posted: Sun Jan 07, 2007 1:15 am Post subject: |
|
|
| /^akst(.+)mnsdgs$/U |
|
| Back to top |
|
| |
gaol Novice Poster
Joined: 15 Nov 2006 Posts: 5
|
Posted: Sun Jan 07, 2007 12:09 pm Post subject: |
|
|
| Thank you krt! |
|
| Back to top |
|
| |
gaol Novice Poster
Joined: 15 Nov 2006 Posts: 5
|
|
| Back to top |
|
| |
ClickFanatic Est. 2005

Joined: 18 Jan 2005 Posts: 3980 Location: A particular geographic area
|
|
| Back to top |
|
| |
krt ...

Joined: 11 Jan 2005 Posts: 4704 Location: Down Under
|
Posted: Sat Jan 13, 2007 4:45 pm Post subject: |
|
|
| Yes, that's right ClickFanatic... don't know why I only tried to match the first part of the email instead of the whole thing... |
|
| Back to top |
|
| |
ClickFanatic Est. 2005

Joined: 18 Jan 2005 Posts: 3980 Location: A particular geographic area
|
Posted: Sun Jan 14, 2007 5:34 am Post subject: |
|
|
| krt wrote: | | Yes, that's right ClickFanatic... don't know why I only tried to match the first part of the email instead of the whole thing... |
Your version would have worked if you hadn't placed the end marker ($) in it.  |
|
| Back to top |
|
| |
gaol Novice Poster
Joined: 15 Nov 2006 Posts: 5
|
Posted: Sat Jan 20, 2007 3:25 am Post subject: |
|
|
| I hate to keep bringing this up, but I got another spam email from "Clarissa Starks" <akstciridosmnsdgs@iridos.net> today. Do you think the fact that it has a name beforehand throws it off somehow? |
|
| Back to top |
|
| |
ClickFanatic Est. 2005

Joined: 18 Jan 2005 Posts: 3980 Location: A particular geographic area
|
Posted: Sat Jan 20, 2007 5:38 am Post subject: |
|
|
Yes, I think the 'nice name' could be the problem.
In that case, we just get rid of the start marker, too.
| Code: | | /akst(.+)mnsdgs@.*/ |
_________________ Captain Jell-O Buster from the Future
[img]http://feeds.feedburner.com/sparepencil.1.gif[/img] |
|
| Back to top |
|
| |
LP-Trel Zen

Joined: 02 Dec 2002 Posts: 5749 Location: Nirvana by Boredom
|
Posted: Sat Jan 20, 2007 4:39 pm Post subject: |
|
|
Trying to defeat this with simple regex based filters will leave you in a never ending fight that you can't win.
The spammers are using hundreds of thousands of automated robots with bottomless amounts of spare processing power.
The only way you stand a chance in hell of beating them is by using multiple levels of tried and true spam prevention like I've done with L2P's email.
Regex alone isn't enough. _________________ * Knowledge Base * Wiki * Forum FAQs * |
|
| Back to top |
|
| |
gaol Novice Poster
Joined: 15 Nov 2006 Posts: 5
|
|
| Back to top |
|
| |
krt ...

Joined: 11 Jan 2005 Posts: 4704 Location: Down Under
|
Posted: Fri Feb 15, 2008 7:16 pm Post subject: |
|
|
/^\s*<a.+>.+</a>\s*$/U
Note this might match:
link text link
But that's probably spam too. |
|
| Back to top |
|
| |
|
|
|