Recently, this site ran into some problems with comment spammers. In order to stop this, I needed to block their IP address to prevent them from posting bogus comments.
Begin by logging into Drupal and navigating to:
Administer > User management > Access rules
Click “Add Rule” and enter the following information:
- Access type: Deny
- Rule type: Host
- Mask: <IP address to block>
Add the rule and the user should be blocked. If you want to block entire class of IP addresses, you can use a ‘%’ such as “xxx.xxx.xxx.%”.