{"id":3461,"date":"2020-08-20T17:41:21","date_gmt":"2020-08-20T15:41:21","guid":{"rendered":"https:\/\/da-software.net\/?p=3461"},"modified":"2020-08-20T17:41:21","modified_gmt":"2020-08-20T15:41:21","slug":"spam-protection-for-formmail-script","status":"publish","type":"post","link":"https:\/\/da-software.net\/en\/2020\/08\/spam-protection-for-formmail-script\/","title":{"rendered":"Spam protection for formmail script"},"content":{"rendered":"<p>Spam protection in Formmail-Script<\/p>\n<p>In the Formmail-Script there is the possibility to configure a spam protection. The filtering is based on 3 criteria:<\/p>\n<ul>\n<li>blacklist (terms that are on the list)<\/li>\n<li>link spam, check for above-average number of links<\/li>\n<li>HTML spam, HTML links that appear in e-mails, typical guestbook and forum spam<\/li>\n<\/ul>\n<p>The blacklist is simply a file with entries. If an entry occurs in an e-mail, the e-mail is recognized as spam and rejected.<\/p>\n<p>The spam protection is activated in the <code>config.php<\/code> file: <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/08\/spamschutz_1.png\" alt=\"\" width=\"784\" height=\"211\" class=\"aligncenter size-full wp-image-3456\" srcset=\"\/wp-content\/uploads\/2020\/08\/spamschutz_1.png 784w, \/wp-content\/uploads\/2020\/08\/spamschutz_1-300x81.png 300w, \/wp-content\/uploads\/2020\/08\/spamschutz_1-768x207.png 768w, \/wp-content\/uploads\/2020\/08\/spamschutz_1-600x161.png 600w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/p>\n<p>Here you also have the possibility to have mails that are detected as spam sent to a special e-mail address. This allows you to test if the correct e-mails are filtered.<\/p>\n<h2>Creating the blacklist<\/h2>\n<p>The blacklist is maintained with the file &#8220;_blacklist.php&#8221; in the formmail directory. Open the file with a text editor. One entry per line:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/08\/spamschutz_2.png\" alt=\"\" width=\"273\" height=\"148\" class=\"aligncenter size-full wp-image-3458\" \/><\/p>\n<p>Then load the file into the formmail directory.<\/p>\n<h2>Blacklist from DA-Software<\/h2>\n<p>We ourselves maintain a blacklist for our formmail scripts. This list is updated daily and thus contains current spam terms.<\/p>\n<p>You can download them here:<\/p>\n<p><a href=\"https:\/\/ekiwi-scripts.de\/antispam\/spam.php\">https:\/\/ekiwi-scripts.de\/antispam\/spam.php<\/a><\/p>\n<p>We recommend updating the list regularly.<\/p>","protected":false},"excerpt":{"rendered":"<p>Spam protection in Formmail-Script In the Formmail-Script there is the possibility to configure a spam protection. The filtering is based<\/p>\n","protected":false},"author":1,"featured_media":3460,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[202],"tags":[210,213,203],"class_list":["post-3461","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-faq-and-support","tag-faq-en","tag-spam-en","tag-support"],"_links":{"self":[{"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/posts\/3461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/comments?post=3461"}],"version-history":[{"count":0,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/posts\/3461\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/media\/3460"}],"wp:attachment":[{"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/media?parent=3461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/categories?post=3461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/tags?post=3461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}