Indeed there are other ways to do this as well, but here's an .htaccess method which is really simple -> Yet effective
Create a new .htaccess file (or open existing .htaccess and edit) and paste the following code into it
<Files .htaccess>
order allow,deny
deny from all
</Files>
#Hostnames
deny from ibforums.com
deny from invisionpower.com
deny from community.invisionpower.com
deny from ipslink.com
deny from ips-spam-service.com
deny from ipshosting.net
#IPs
deny from 70.33.186.224/30
deny from 70.33.186.228/30
deny from 208.67.212.0/22