How do I protect my forum against spam?

前端 未结 14 1632
既然无缘
既然无缘 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: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.

提交回复
热议问题