I just changed the poll code so that anonymous users can again look at the polls, vote at them and write comments. They cannot however suggest new poll ideas (as that was insanely spammed when we had it open for anonymous users).

With regards the the spammed comments, I will implement a check that hinders anonymous posters from posting URLs (if anyone knows a good perl Regex to check for URLs that would be helpful). We will see how much this helps and if additional measures are necessary.


Comments

s/http.*?\s//g

That should be good enough for this purpose.
Don't use a regexp, use HTML::Parser. Just set it up to write out HTML as it parses it, and have it filter out anything undesirable.
Re: 6918 posted by SpoonMeiser on Oct 16 2006 6:08 AM
It's not enough to filter things out - if a spambot is attacking the site, the author might not even care to check that it's working properly. Posts need to be refused, preferably with a helpful reason displayed to the user so that they can ammend their post, and re-submit.
Re: 6918 posted by kaol on Oct 16 2006 6:14 AM
I'll leave coming up with a good policy to someone else, whether that will be filtering or printing warnings or something else.

But I just wanted to say that trying to match regexpes on HTML will quickly lead to insanity and using a proper parser is a better way. Trust me, I've been there.

Re: 6918 posted by SpoonMeiser on Oct 16 2006 6:20 AM
OK, granted. I totally agree with that.
Hi,
maybe you should try the cpan-Module Regexp::Common. That should do all the work for you. Never tried the uri-Part for myself, but the manpage looks rather simple for me ;)

Greetings Herbert

man Regexp::Common::URI::http

Regexp::Common::URI::http
Section: User Contributed Perl Documentation (3)
NAME
Regexp::Common::URI::http -- Returns a pattern for HTTP URIs.
SYNOPSIS
use Regexp::Common qw /URI/;

while (<>) {
/$RE{URI}{HTTP}/ and print "Contains an HTTP URI.\n";
}
Why not a simple Image check like everyone is using nowadays? "Please type the numbers in the field.." it doesn't have to be hard to read like MS's, just a simple plain image. Thus anonymous can still post while making life much harder for simple spammers. And looking into an image and typing the content's takes about.. 3 or 4 seconds ;)
Re: Image check posted by anonymous on Oct 19 2006 2:09 AM
stuff like that is easy to crack. http://sam.zoy.org/pwntcha/
Re: Image check posted by Irrevenant on Oct 27 2006 10:14 PM
If you're not blind (or even colour-blind for some CAPTCHAs). Blocking legitimate human traffic is a very high price to pay for blocking bots.
You curently have 27712 registered forum users, you seem to get something like 5 spammer registrations a day because their www link appears on the "memberlist" page. The standard phpBB captcha is easily broken, but:
http://www.phpbb.com/phpBB/viewtopic.php?t=382890&postdays=0&postorder=asc&start=0&sid=745cba2eaa7a98245291c7b6b0eaa120 is easy to install and works much better.

Log in or register to post a comment.