{"id":702,"date":"2018-01-18T21:31:15","date_gmt":"2018-01-19T04:31:15","guid":{"rendered":"http:\/\/10.0.1.201\/?p=702"},"modified":"2018-01-18T21:31:15","modified_gmt":"2018-01-19T04:31:15","slug":"postfix-pcre-tld-body-check","status":"publish","type":"post","link":"https:\/\/strawhousepig.net\/wordpress\/2018\/01\/18\/postfix-pcre-tld-body-check\/","title":{"rendered":"Postfix PCRE TLD body check"},"content":{"rendered":"<p>This is used to reject spam e-mail containing a URL to the top level domains .date or .loan, and can of course be modified to include others. If you feel your users may ever have a legitimate need to be contacted about these domains it would be best to not use this.<\/p>\n<p>Some familiarity with perl compatible regular expressions in postfix will be helpful.<\/p>\n<p><code>\/https?:\\\/\\\/([a-z,0-9,-]+\\.){1,3}(date|loan)\\\/\/ REJECT<\/code><\/p>\n<p>This pattern matches both http and https protocols, and links containing from 1 to 3 subdomains of the TLD (http:\/\/3.2.example.com\/ or https:\/\/example.com\/ would match were .com the target).<\/p>\n<p>Insert that line into your custom body checks file and no more spam du jour. Enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is used to reject spam e-mail containing a URL to the top level domains .date or .loan, and can of course be modified to include others. If you feel your users may ever have a legitimate need to be contacted about these domains it would be best to not use this. Some familiarity with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7],"tags":[15,19],"class_list":["post-702","post","type-post","status-publish","format-standard","hentry","category-code","category-web","tag-fixit","tag-internets"],"_links":{"self":[{"href":"https:\/\/strawhousepig.net\/wordpress\/wp-json\/wp\/v2\/posts\/702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/strawhousepig.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/strawhousepig.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/strawhousepig.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/strawhousepig.net\/wordpress\/wp-json\/wp\/v2\/comments?post=702"}],"version-history":[{"count":0,"href":"https:\/\/strawhousepig.net\/wordpress\/wp-json\/wp\/v2\/posts\/702\/revisions"}],"wp:attachment":[{"href":"https:\/\/strawhousepig.net\/wordpress\/wp-json\/wp\/v2\/media?parent=702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/strawhousepig.net\/wordpress\/wp-json\/wp\/v2\/categories?post=702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/strawhousepig.net\/wordpress\/wp-json\/wp\/v2\/tags?post=702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}