I'm looking for a good way to block an entire IP range using htaccess.
The problem I'm having is that the block I need to ban is 100 IP ranges big. From a programmers perspective it should be easily doable, but I'm failing to get it done without adding 100 lines in my htaccess, and other techniques I tried did not work.
The IP Address range I need to block is for HUAWEI Clouds: 159.138.100.* - 159.138.199.*
A keen eye spots that basically 159.138.1 is enough to block.
I tried the following without success:
Order Allow,Deny Deny from 159.138.1 Allow from all
I also tried:
Order Allow,Deny Deny from 159.138.1* Allow from all
How can I block this iprange effectively using .htaccess?