Main Content
Preventing forum spam - checks at sign up Archive - Originally posted on "The Horse's Mouth" - 2009-05-12 07:10:10 - Graham Ellis
You may have seen the IP lookup tool we have on our front page (if not, bookmark http://www.wellho.net and it's the bottom right link) which I use extensively to find out a little bit more about addresses that catch my interest - be they generating unusual traffic on our web site, scouring are pages in a "very interested" way, or signing up for a forum.
I told you about projecthoneypot and stopforumspam recently (here ) and I have just added the following code to my front page tool which incorporates the summary of a stopforumspam report (they provide a nice api) within the tool.
$spammer = file_get_contents("http://www.stopforumspam.com/api?ip=$fip");
if (ereg("<appears>yes<appears>",$spammer)) {
ereg("<frequency>([[:digit:]]+)<frequency>",$spammer,$rs);
$spamreport = "$rs[1] report".(($rs[1]>0)?"s - ":" - ");
$spamreport .= "<a href=http://www.stopforumspam.com/".
"ipcheck/$fip target=exfull>more<a>";
} else {
$spamreport = "Clear";
}
(the incoming IP address for this code should be in the $fip variable, and should have been checked for format / cleaned up by the time you use the code snippet above!)
Try it here:
I have not found an automated API on projecthoneypot ... but a URL of the form http://www.projecthoneypot.org/ip_194.8.75.145 gives a result which includes the string "We don't have data on this IP currently" if the IP looks clear to them.
Some other articles
G909 - Spam, Spamming and Spammers No cold sales calls please - but delighted to hear from others! Welcoming genuine forum posters quickly - but turning away off topic advertisers Introducing your product to Well House Consultants - single, personally tuned email please Moving from a warning system to a control system - PHP, forum spammers Sand to Arabia, Coals to Newcastle or Woodburners to Russia Identifying your real customers and keeping them well informed fast Keeping forum and blog comments clean Cold call contacts - preference services and turning off spam sales approaches World Trade Register - Certainly NOT worth 2985 Euros. Twitter Phishing Trips ... and a great new alert service What do the following web sites have in common? Well house is strong - confirmed? The legal considerations of your web presence - revisited Hotlinked images onto adult material sites Email metrics and filtering Websitemediasolution and a goldfish called Carl Johnson Who is Marc Schneider of Multilingual Search Engine Optimization Inc Offers that I can refuse This article Baby Caleb and Fortune City in your web logs? From spam to mod_alias - finding resources Marc Schneider is still having email trouble Co-operating to save, yet we dont Comment spam blocked. Please comment via Forums Ive just received an email from myself. Should I be worried? Unexpected visitors to our site Impact Engineering and Backscatter Email metrics More spam - a success story Telephone Preference Service - we're registered Frightening and from-friend viruses and spams OO techniques are hard to teach An apology to Mr Boneparte Information request forms, cleaning up spam Responding to spam G903 - Running and moderating forums and social media sites Almost so wrong, but perhaps it's right for some? The unbalanced relationship between customer and provider Welcoming genuine forum posters quickly - but turning away off topic advertisers Identifying and clearing denial of service attacks on your Apache server Can a legitimate forum post become illegal a year later? Facebook marketing - early experiences Change to Libel and Defamation laws from 1st January 2014 Handling requests to a forum - the background process Backups, Codebase, Strategy and more - dealing with forum incidents Acceptable User Policy / vexatious interacter Identifying your real customers and keeping them well informed fast Practical Extraction and Reporting - using Python and Extreme Programming Netiquette for forum newcomers The 500 pound question to get you started How to run a successful online poll / petition / survey / consultation Flying tonight A reluctance to move from old shoes to new Computing under the influence of alcohol Forum membership - a privilege not a right This article Admins thoughts on banning a member from a forum Stopping forum spam - control of the signup process Why do we delay new forum members through authorisation? Ask the Tutor - Open Source forum Pettifog and forum boards away from public view Making it all worthwhile While the world sleeps ... Software - changes and delays. But courses must run on time! First Great Western Weekend Please don't shout at me! I dont care - goodbye Guidlines for posting on a forum A forum is not always the best vehicle Comment spam blocked. Please comment via Forums Ive just received an email from myself. Should I be worried? Copyright and theft of images, bandwidth and members. The Horse goes on and on No Thank You Save the Forum - A regular clean sweep Why use BBC code not HTML? Running an on line campaign Why shouldn't I spam? Freedom for X is denial of privacy for Y Forum help - a push in the right direction Freedom of speech and freedom to post Check your user is human. Have him retype a word in a graphic Please Register with Opentalk - but just once! Open source questions? Anyone can ask. How not to run a forum Use me, but use me effectively Feedback as lifeblood The confidence to allow public comments Spelling and grammar Expiration dates or times on web pages Silence is Golden Falling out over the silliest things