Q&A with a question you can't search the answer to. Works very well.
IP banning is no good because they use proxies, don't use the same one twice and it just makes the reg page slow for everyone else while it checks all the IPs on the list. Might as well empty the ones you have.
Please visit Preventing Spam in phpBB3
for various options for fighting spam in phpBB.