If you use nginx as a transparent proxy, you may want to enable .htaccess IP filtering on one of the down stream servers in your server farm.
Unfortunately, you can just use the normal syntax
Instead you need use the following
If you want to use (IP address range) CIDR you need to do this in following format