Lifelesspeople.com

 Forum FAQsForum FAQs  KnowledgebaseKnowledgebase  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   HostingHosting   RegisterRegister 
 DonateDonate   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Regex help  Share

 
Lifelesspeople.com Forum Index -> Help Wanted
Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
gaol
Novice Poster


Joined: 15 Nov 2006
Posts: 5


PostPosted: Sun Jan 07, 2007 12:53 am    Post subject: Regex help Reply with quote

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: 4995
Location: Down Under

PostPosted: Sun Jan 07, 2007 1:15 am    Post subject: Reply with quote

/^akst(.+)mnsdgs$/U
_________________
AU Proud
Back to top
 
gaol
Novice Poster


Joined: 15 Nov 2006
Posts: 5


PostPosted: Sun Jan 07, 2007 12:09 pm    Post subject: Reply with quote

Thank you krt!
Back to top
 
gaol
Novice Poster


Joined: 15 Nov 2006
Posts: 5


PostPosted: Sat Jan 13, 2007 8:04 am    Post subject: Reply with quote

I got an email from akstcteenagehoesmnsdgs@teenagehoes.com today. Is this regex definitely correct?
Back to top
 
ClickFanatic
Est. 2005


Joined: 18 Jan 2005
Posts: 4685
Location: 37°45'18.24"N 14°59'42.9"E

PostPosted: Sat Jan 13, 2007 9:21 am    Post subject: Reply with quote

I think this one would be better:
/^akst(.+)mnsdgs@.*/
_________________
If you can read this, my post is on an alternating background.
Back to top
 
krt
...


Joined: 11 Jan 2005
Posts: 4995
Location: Down Under

PostPosted: Sat Jan 13, 2007 4:45 pm    Post subject: Reply with quote

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...
_________________
AU Proud
Back to top
 
ClickFanatic
Est. 2005


Joined: 18 Jan 2005
Posts: 4685
Location: 37°45'18.24"N 14°59'42.9"E

PostPosted: Sun Jan 14, 2007 5:34 am    Post subject: Reply with quote

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. Wink
Back to top
 
gaol
Novice Poster


Joined: 15 Nov 2006
Posts: 5


PostPosted: Sat Jan 20, 2007 3:25 am    Post subject: Reply with quote

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: 4685
Location: 37°45'18.24"N 14°59'42.9"E

PostPosted: Sat Jan 20, 2007 5:38 am    Post subject: Reply with quote

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@.*/

_________________
If you can read this, my post is on an alternating background.
Back to top
 
LP-Trel
Zen


Joined: 02 Dec 2002
Posts: 5966
Location: Nirvana by Boredom

PostPosted: Sat Jan 20, 2007 4:39 pm    Post subject: Reply with quote

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.
_________________
What would you like to see at L2P? We want your suggestions!
Need Help? Technical SupportKnowledgebaseFlash DemosSignup Questions
Back to top
 
gaol
Novice Poster


Joined: 15 Nov 2006
Posts: 5


PostPosted: Fri Feb 15, 2008 12:26 pm    Post subject: Reply with quote

Sorry to resurrect this thread, but I'm having a few spam problems again. Is there a regular expression to block all one-line emails where the entirety is just a link? For example:

"Tired of losing your erect1on halfway, or having a small weener? Change it today." or
"The only pen1s enlargement solution that guarantees growth, 100% or your money back."

Ideally I'd just like something to take out these one-line emails, and not just any email that contains a link.
Back to top
 
krt
...


Joined: 11 Jan 2005
Posts: 4995
Location: Down Under

PostPosted: Fri Feb 15, 2008 7:16 pm    Post subject: Reply with quote

/^\s*<a.+>.+</a>\s*$/U

Note this might match:

link text link

But that's probably spam too.
_________________
AU Proud
Back to top
 
Display posts from previous:   
Post new topic   Reply to topic    Lifelesspeople.com Forum Index -> Help Wanted All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Home | Hosting | News | Forum | Links | System Status | About | Archive | Donate ]
Powered by phpBB © 2001, 2002 phpBB Group
All trademarks and copyrights on this page are owned by their respective owners. Posts and comments are owned by the poster. Everything else © 2001 - 2007 Lifelesspeople.com