How do I protect my forum against spam?

前端 未结 14 1657
既然无缘
既然无缘 2020-12-28 23:46

I have a forum on a website I master, which gets a daily dose of pron spam. Currently I delete the spam and block the IP. But this does not work very well. The list of block

相关标签:
14条回答
  • 2020-12-29 00:15

    Don't let anybody post until they respond to an email sent to their registered email address. You'll see lots of forums and mailing lists generate a unique email address or web url that is sent to the new user's given email address, and they have to respond to the email or click on the link to finalize their registration.

    0 讨论(0)
  • 2020-12-29 00:18

    Include a CAPTCHA that is always "orange".

    0 讨论(0)
  • 2020-12-29 00:22

    You might want to look at this question, which has several answers that describe how you could implement a non-intrusive captcha.

    Another thing to consider is to require time between posts to prevent massive spamming.

    0 讨论(0)
  • 2020-12-29 00:22

    The easiest thing I've done to stop spammers with (so far) 100% consistency is to validate the text that was submitted. If you use the php function strstr() to check for "a href" or even a non-clickable http or www, you can then just reroute the spammer elsewhere. I actually have a script then write to my .htaccess file to deny the offending IP address. Not sure if there's any other kind of spam to be concerned about, but links are all I've seen so far.

    0 讨论(0)
  • 2020-12-29 00:23

    I want to say that in most time, a CAPTCHA is enough for you to prevent SPAMers. But do use a strong one, like http://www.captcha.net/.

    Remember that SPAMers do not want to spend much time to deal with a particular site(except heavy traffic sites), they use a tool to post AD on a lot of sites. So make your FORM a little unusual, (e.g. give the user a image says '1.5+2.4=?' and let users to answer, this will block most of the spam tools :) )

    0 讨论(0)
  • 2020-12-29 00:25

    The spams may be by bots or humans - bots are more likely.

    To stop the bots, put in a hidden field populated by Javascript - there is a 99.5% chance that a standard, stupid bot that isn't customised to your site will fail to fill that in.

    If they fail to fill it in correctly, give them a message that Javascript is required or something, and give them an opportunity to post some other way (e.g. with a captcha or registration). That way anonymous users who aren't spambots can (mostly) still post with no problems, and most spambots (which haven't been tailored for your specific site) won't.

    Don't bother blacklisting IP addresses or using third party blacklists, that will just generate false positives. Almost all bots use the same IP addresses as (some) legitimate users.


    Another trick is to put in a text field with a plausible sounding name, which is made difficult to see with CSS - anyone filling this field in with anything is considered to be a bot.

    0 讨论(0)
提交回复
热议问题