{"id":7572,"date":"2004-06-15T00:02:00","date_gmt":"2004-06-14T22:02:00","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2004\/06\/15\/sa_patgen\/"},"modified":"2005-04-26T01:58:31","modified_gmt":"2005-04-25T22:58:31","slug":"sa_patgen","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2004\/06\/15\/sa_patgen\/","title":{"rendered":"sa_patgen"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>A lot of spammers use modified words to get throuth spam filters.  What they do is take a word like &#8216;casino&#8217; and insert a random character into it.  For example &#8216;ca!sino&#8217;.  If you get a lot of spam with words modifed like this, then you can use sa_patgen.pl to generate pattern rules for SpamAssassin.<\/p>\n<p>All you have to do is specify the score to add for each modified word match (I use 0.5) and a list of words like casino, gambling, viagra, etc.  The script will output a set of rules to match modified words.  You can save the output in your local.cf file or pipe it somewhere else.<\/p>\n<p><a href =\"\/wordpress\/wp-content\/20040614-sa_patgen.perl\">sa_patgen.pl<\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>A lot of spammers use modified words to get throuth spam filters. What they do is take a word like &#8216;casino&#8217; and insert a random character into it. For example &#8216;ca!sino&#8217;. If you get a lot of spam with words modifed like this, then you can use sa_patgen.pl to generate pattern rules for SpamAssassin. All &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2004\/06\/15\/sa_patgen\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">sa_patgen<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,18,62],"tags":[36,39],"keyring_services":[],"class_list":["post-7572","post","type-post","status-publish","format-standard","hentry","category-general","category-programming","category-technology","tag-perl","tag-software"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":11100,"url":"https:\/\/mamchenkov.net\/wordpress\/2008\/03\/21\/compromised\/","url_meta":{"origin":7572,"position":0},"title":"Compromised!","author":"Leonid Mamchenkov","date":"March 21, 2008","format":false,"excerpt":"It appears that this blog has been recently compromised.\u00c2\u00a0 Big thanks to one of the readers for bringing it up and letting me know.\u00c2\u00a0 Especially, since the compromise was hard to notice - one of the recent posts was modified with a blog of hidden markup that contained some SPAM\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9863,"url":"https:\/\/mamchenkov.net\/wordpress\/2006\/01\/25\/spam-karma-rules-the-wordpress-world\/","url_meta":{"origin":7572,"position":1},"title":"Spam Karma rules the WordPress world","author":"Leonid Mamchenkov","date":"January 25, 2006","format":false,"excerpt":"If I would have a choice to install the only one plugin for my WordPress (how glad I am that I don't have to make this choice, by the way), I'd go with Spam Karma. Last week I installed it to see if it was any good. It is. I\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9218,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/07\/09\/spam-isnt-all-that-bad\/","url_meta":{"origin":7572,"position":2},"title":"SPAM isn&#8217;t all that bad","author":"Leonid Mamchenkov","date":"July 9, 2005","format":false,"excerpt":"Where I look on the web, everyone is complaining about SPAM. \"My Inbox is full of SPAM\", \"I am lacking behind because of SPAM\", \"My site was SPAMed\" and stuff like that. I beileve that everything in the world has its good and bad sides. Such situation with SPAM when\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8900,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/04\/26\/fighting-spam-in-comments\/","url_meta":{"origin":7572,"position":3},"title":"Fighting spam in comments","author":"Leonid Mamchenkov","date":"April 26, 2005","format":false,"excerpt":"I've been getting some spam in the comments recently. I must say that since the upgrade to WordPress the amount of spam I am getting has drastically decreased, but it hasn't disappeared. Fighting spam in comments and trackbacks, it turns out, is yet another area where WordPress rules. WordPress has\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9492,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/09\/24\/blog-spam-fighting-let-it-start\/","url_meta":{"origin":7572,"position":4},"title":"Blog SPAM fighting.  Let it start.","author":"Leonid Mamchenkov","date":"September 24, 2005","format":false,"excerpt":"WordPress has excellent support for SPAM fighting. I was satisfied with the default functionality so far. The only thing I did was setting up pre-moderation of comments that match the list of words. No SPAM comments were posted on the site since I migrated to WordPress and that says something.\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9870,"url":"https:\/\/mamchenkov.net\/wordpress\/2006\/01\/28\/4th-tooth-is-out\/","url_meta":{"origin":7572,"position":5},"title":"4th tooth is out","author":"Leonid Mamchenkov","date":"January 28, 2006","format":false,"excerpt":"While the thrill is gone, both Olga and I are still waiting for each Maxim's tooth. The fourth one tricked us though. We thought it would be the second tooth on the top, but it turned out to be the third one on the bottom (on Maxim's left). Now that\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/7572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=7572"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/7572\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=7572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=7572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=7572"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=7572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}