php - How do I protect my forum against spam? -


I have a forum on the master's website, which receives a daily dose of spam spam. I currently remove spam I block and block IP. But this does not work very well, the list of blocked IPs is growing fast, but there is also a number of spam posts in the forum.

The forum is completely my own code, it is built in PHP and MySQL.

What are some concrete ways to stop spam?

Edit The thing I forgot to mention is that the forum requires unregistered users to open a post, just like to comment on a blog.

In a guestbook app I wrote, I have implemented two attributes:

< Ul>
  • Do not allow posts for the first time in a session

  • Requires a valid HTTP (s) / P>


  • Comments