I am looking for a good way to block a full IP range using htaccess.
The problem I have is that the block I need to ban is 100 large IP ranges. From the programmers perspective, it should be easily feasible, but I can't do it without adding 100 lines in my htaccess, and other techniques I tried didn't work.
The range of IP addresses that I need to block is for HUAWEI clouds: 159,138,100. * – 159,138,199. *
Sharp spots on the eyes that basically 159,138.1 are 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?