Blocking access to our site in a country excluding our IP address

Concluído Postado Feb 14, 2011 Pago na entrega
Concluído Pago na entrega

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.

ID do Projeto: #3102131

Sobre o projeto

5 propostas Projeto remoto Ativo em Feb 14, 2011

Concedido a:

cevouk

See private message.

$25.5 USD em 1 dia
(187 Comentários)
7.2

5 freelancers estão ofertando em média $90 nesse trabalho

matfizvw

See private message.

$21.25 USD em 1 dia
(58 Comentários)
6.0
hashdkas

See private message.

$15.3 USD em 1 dia
(8 Comentários)
4.1
biopsy

See private message.

$17 USD em 1 dia
(7 Comentários)
3.4
phpredheads

See private message.

$25.5 USD em 1 dia
(8 Comentários)
1.4
vw7900976vw

See private message.

$361.25 USD em 1 dia
(1 Comentário)
0.0