View Full Version : Comment Post robots

January 13th, 2007, 03:10 AM
i've been hit by Comment / forum Post bots, posting all kind of links to casino etc sites, i know i can switch off posting by ungegistered users but this fix is better, and requires a random number input for the post to be successfull

there are only 2 files to edit:

quickcom.tmpl 1st and 4th line are original 2nd and 3rd are new
<input type="hidden" name="post" value="new" />
<img width=120 height=30 src="/button.php" border="1">
<input MAXLENGTH=5 SIZE=5 name="userdigit" type="text" value="">
<input type="submit" value="{$Globals['pp_lang']['submit']}" />

comments.php very top of php file, just below the copyright comments

include "audit.php";

if (audit()) {
// Visitor entered correct number
} else {
echo "wrong number entered, hit back on browser";
// Wrong number

files attached are in txt format, rename them to php

hope this helps
view the script in action here
http://www.afunnysite.com (http://www.afunnysite.com)
try posting a comment with correct and incorrect turing number
(mind they need to be moderated so you won't see the comment right away
but it makes my life easier so i don't have ro remove hundreds of posts)