Forum Moderators: coopster

Message Too Old, No Replies

Shoutbox Spam - who can code my simple solution?

shoutbox spam

         

kevinoneill

5:00 am on Jul 25, 2006 (gmt 0)

10+ Year Member



Hey guys, I have a shout box recieving spam, you know the stuff, viagra etc... , this and that. I see 2 ways to rid it of my site.

1) if string has more than 1 url, don't submit
2) if string has any (insert list of words) occur, don't submit

But unfortunately I can't code PHP much at all.

Any help out there? I can install code already written, but can't free-hand it.

barns101

12:13 pm on Jul 25, 2006 (gmt 0)

10+ Year Member



You could install a captcha script (image containing alphanumeric characters that must be entered in order to submit a post).

A very simple way of doing it is to have one image containing a word and/or numbers. The user must submit this phrase in order to submit their post. Then your script has code like this when a post is submitted:


<?php
if($_POST['captcha'] == 'abc123') // Replace with real phrase!
{
// Add comments to shoutbox
}
else
{
// Don't add comments!
}
?>

This is a VERY simple solution and wont stop a real live person from spamming, but it virtually eliminated automated spam signups on my forum. :)

dreamcatcher

7:14 pm on Jul 25, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi kevinoneill,

You might also find this thread useful:

[webmasterworld.com...]

dc

kevinoneill

10:49 pm on Jul 26, 2006 (gmt 0)

10+ Year Member



Oh boy, little too advanced for me... but thanks.

jatar_k

3:58 pm on Jul 27, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



that thread as a whole may be a bit much to digest but there are some tips and tricks in there that could help address this specific issue.

at least bookmark it for later ;)