You can block IP addresses and ranges via your Control Panel's Protection section. You can find details at the Block by IP section.
To manually block a specific IP address from accessing your site, you should add the following line to your .htaccess file:
deny from xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx is the IP address that you want to block. If the .htaccess file does not exist, you can simply create it.
For example, if you want to block 184.108.40.206, the line in your .htaccess file should be:
deny from 220.127.116.11
To prevent a range of IP addresses from a given network (18.104.22.168) from reaching your site, you can do that in the following way:
deny from 123.234.
This way all addresses that start with 123.234 will be blocked.
You can add as many such rules as you want. You should note that if your .htaccess gets large, it may slow-down the loading of your site, as the file is being processed on each file request.