How do you block ip address of user in drupal?

Not sure. This is not smart as IPs can change on their own and they can be changed by typing this into command prompt

ipconfig /release

ipconfig /renew

It really easy to trick sites.