Blocking access to our site in a country excluding our IP address
$30-100 USD
Paid on delivery
We wanted to block access to our site in a country. We will be doing this through .htaccess and giving country's IP ranges/CIDR.
e.g
*ErrorDocument 403 [url removed, login to view]
<Limit GET HEAD POST>
order allow,deny
deny from 14.192.128.0/19
deny from 27.54.120.0/22
deny from 27.96.88.0/22
deny from 27.255.0.0/18
deny from 58.27.128.0/17
allow from all
</LIMIT>*
Now the issue is our own 1 IP address (static) lies in the ranges (e.g in *14.192.128.0/19)* and we wanted to exclude our IP address from ban list however the rest of IPs in the range should remained ban.
P.S: Our webserver is apache.
Project ID: #3102131