my new spam filter management script

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

my new spam filter management script

Post by Red Squirrel »

I noticed a couple of spammers managing to get past my filters again, and my filters were getting annoying to update as I had to update the file itself.

Now the rules are stored in a database for easy search/edit and adding of entries. Then I simply click a link to generate the actual rule file which looks like this:

Code: Select all

#START OF FILE GENERATION @ 23:27:33 (November 10th, 2005)


#----------------------------------------------------------------------
#START OF TYPE: blacklist
#----------------------------------------------------------------------

(removed for users' confidentiality)

#----------------------------------------------------------------------
#START OF TYPE: body
#----------------------------------------------------------------------


body netoperations /Net Operations.?.?.?inc/i
score netoperations 5
describe netoperations evil company



#----------------------------------------------------------------------
#START OF TYPE: header
#----------------------------------------------------------------------


#Rule Added November 10th, 2005
header AGEN_subject0 subject=~ /.?.?.?Message subject.?.?.?/i
score AGEN_subject0 4
describe AGEN_subject0 dumb reoccuring spam

#Rule Added November 10th, 2005
header mortgage subject=~ /m.?.?.?[o0*].?.?.?r.?.?.?[t7].?.?.?g.?.?.?[a4@].?.?.?g.?.?.?[e3] related/i
score mortgage 3
describe mortgage mortgage

#Rule Added November 10th, 2005
header AGEN_Vocalscape3395049 subject=~ /Vocalscape.?.?.?.?inc/i
score AGEN_Vocalscape3395049 1.4
describe AGEN_Vocalscape3395049 evil company

#Rule Added November 10th, 2005
header AGEN_reoccuring_spam0 subject=~ /W.?.?.?[a4@].?.?.?[s58].?.?.?h.?.?.?[it1].?.?.?n.?.?.?g.?.?.?[t7].?.?.?[o0*].?.?.?n.?.?.? .?.?.?M.?.?.?u.?.?.?[t7].?.?.?u.?.?.?[a4@].?.?.?[l1!]/i
score AGEN_reoccuring_spam0 3
describe AGEN_reoccuring_spam0 reoccuring spam

#Rule Added November 10th, 2005
header AGEN_oportunity3395049 subject=~ /[o0*].?.?.?p.?.?.?p.?.?.?[o0*].?.?.?r.?.?.?[t7].?.?.?u.?.?.?n.?.?.?[it1].?.?.?[t7].?.?.?y/i
score AGEN_oportunity3395049 2
describe AGEN_oportunity3395049 gimick

#Rule Added November 10th, 2005
header AGEN_stock_market22633 subject=~ /[s58].?.?.?[t7].?.?.?[o0*].?.?.?c.?.?.?k.?.?.?m.?.?.?[a4@].?.?.?r.?.?.?k.?.?.?[e3].?.?.?[t7]/i
score AGEN_stock_market22633 2.4
describe AGEN_stock_market22633 stockmarket spam

#Rule Added November 10th, 2005
header AGEN_pills2263355908 subject=~ p.?.?[it1].?.?[l1!].?.?[l1!].?.?[s58]
score AGEN_pills2263355908 3
describe AGEN_pills2263355908 pill related



#----------------------------------------------------------------------
#START OF TYPE: whitelist
#----------------------------------------------------------------------

(removed for users' confidentiality)

----------------------------------------------------------------------
#END OF FILE GENERATION @ 23:27:33 (November 10th, 2005)
#Total Entries: 70
----------------------------------------------------------------------
[code]


I still need to add all the header and body rule entries so once it's done I'll share the rule file for those of you that use spamassassin.   

[color=#888888][size=85]Archived topic from Iceteks,  old topic ID:3935, old post ID:32218[/size][/color]
Honk if you love Jesus, text if you want to meet Him!
Locked