{"id":2161,"date":"2007-10-29T08:20:50","date_gmt":"2007-10-29T08:20:50","guid":{"rendered":"http:\/\/www.bargh.co.uk\/blog\/?p=19"},"modified":"2007-10-29T08:20:50","modified_gmt":"2007-10-29T08:20:50","slug":"spam-in-punbb-forums","status":"publish","type":"post","link":"https:\/\/bargh.co.uk\/blog\/spam-in-punbb-forums\/","title":{"rendered":"Spam in PunBB forums"},"content":{"rendered":"<p>Spam&#8230;it&#8217;s a pain in the neck. My email in-box is full of it daily. Long  messages about  Viagra (or v.i.a.g.r.a!), dick enlargers, porn films and special wonder drugs. So it really got my livid when I installed PunBB on my site as a forum. Within weeks I was getting dozens of the same spam messages, along with video clips of porn. Well okay I&#8217;m not against watching the odd film or two, but I&#8217;m not about to promote it on my site! So I went into my admin section daily and deleted the posts and put the urls on the banned list. After a week this becomes frustrating. So I searched for an alternative.<\/p>\n<p>First thing I found was some PHP code to fix the proble. Simple just find the file  post.php and add some provided code in the area suggested. I hadn&#8217;t a clue what the code was about to do. But several people had said it worked for them. So I did it. The eager to see if it worked I posted a test message on my forums. Error on line 170! Doh&#8230;good job I backed up my original file&#8230;which was quickly returned.<\/p>\n<p>Back to research&#8230;after several false journeys I found <a target=\"_blank\" href=\"http:\/\/www.punres.org\/viewtopic.php?id=1850\">Akismet  <\/a> on a PunBB resource page. Here was a script written for WordPress that has been modified for PunBB and once installed works well&#8230;so far!<\/p>\n<p>To install click on the download here link below the forum poster&#8217;s PS post (or <a target=\"_blank\" href=\"http:\/\/www.punres.org\/files.php?pid=293\">here)<\/a> which takes you to the zipped folder akismet_punbb.zip. Download and unzip the folder and follow the read me instructions.<\/p>\n<p>You need a WordPress account as you have to modify the supplied PHP code that you add to the post.php file by changing the word AKISMETAPIKEY to your WordPress Akismet api key.<\/p>\n<p>Now when I log in there&#8217;s an Akismet plug in in the admin section of my forum. I simply click on that to see the spam that&#8217;s been blocked &#8211; six in one day! And then click delete or accept! Gone for good and the public don&#8217;t see a thing&#8230;not that I have any visitors to the forums so far. But when I do it will be perfect!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spam&#8230;it&#8217;s a pain in the neck. My email in-box is full of it daily. Long messages about Viagra (or v.i.a.g.r.a!), dick enlargers, porn films and special wonder drugs. So it really got my livid when I installed PunBB on my site as a forum. Within weeks I was getting dozens of the same spam messages, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1296],"tags":[],"class_list":["post-2161","post","type-post","status-publish","format-standard","hentry","category-helping-hand"],"_links":{"self":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=2161"}],"version-history":[{"count":0,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2161\/revisions"}],"wp:attachment":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=2161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=2161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=2161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}