In order to block IP address to post comments in wordpress blog one need to perform below mentioned steps:
1. Login into WordPress admin section.
2. Click on Settings from dashboard.
3. Click on discussion settings.
4. Enter the IP address/es in ‘Comment Blacklist’ to block it.
5. Click on save changes to apply it.