This is the best way to do it…. as I have found from running a SMF Forum. For example, 92.241.160-255.*
I have had great pleasure in seeing users from that range then trying to Register and it coming up with a message, saying:
Sorry Guest, you are banned from using this forum!
Spam
?action=register
Just thought I’d share my satisfaction with you all.