29.11.2021
Si usted es victima continuamente de ataques a su sitio web y/o aplicaciones y los usuarios con permiso para publicar están solamente en Colombia, puede darle permisos de publicación en su dominio solo a las ips de Colombia. Todos los paises podrán ver el sitio pero solo desde ips en Colombia podrán enviar publicaciones.
Para realizar este tipo de bloqueo, debe crear un archivo ".htaccess" en la carpeta que desee bloquear con el siguiente contenido:
<Limit POST>
order deny,allow
deny from all
allow from 127.0.0.1
allow from 66.231.64.0/20
allow from 157.253.0.0/16
allow from 168.176.0.0/16
allow from 181.48.0.0/13
allow from 181.68.0.0/16
allow from 181.69.0.0/16
allow from 181.128.0.0/13
allow from 181.144.0.0/13
allow from 186.0.0.0/18
allow from 186.0.64.0/18
allow from 186.1.160.0/19
allow from 186.1.248.0/21
allow from 186.27.128.0/17
allow from 186.28.0.0/16
allow from 186.29.0.0/16
allow from 186.30.0.0/16
allow from 186.31.0.0/16
allow from 186.43.0.0/17
allow from 186.80.0.0/14
allow from 186.84.0.0/14
allow from 186.97.0.0/18
allow from 186.97.64.0/18
allow from 186.97.128.0/17
allow from 186.98.0.0/16
allow from 186.99.0.0/16
allow from 186.102.0.0/16
allow from 186.103.0.0/17
allow from 186.112.0.0/14
allow from 186.116.0.0/14
allow from 186.121.0.0/17
allow from 186.144.0.0/14
allow from 186.154.0.0/16
allow from 186.159.0.0/18
allow from 186.159.64.0/19
allow from 186.159.112.0/22
allow from 186.168.0.0/16
allow from 186.169.0.0/16
allow from 186.170.0.0/16
allow from 186.171.0.0/16
allow from 186.180.0.0/16
allow from 186.181.0.0/16
allow from 190.0.0.0/19
allow from 190.0.32.0/19
allow from 190.0.240.0/21
allow from 190.1.64.0/19
allow from 190.1.128.0/19
allow from 190.1.160.0/19
allow from 190.1.192.0/19
allow from 190.1.224.0/19
allow from 190.3.160.0/21
allow from 190.3.192.0/19
allow from 190.3.224.0/19
allow from 190.5.192.0/20
allow from 190.6.160.0/20
allow from 190.6.176.0/20
allow from 190.7.64.0/20
allow from 190.7.80.0/20
allow from 190.7.96.0/20
allow from 190.7.112.0/20
allow from 190.7.128.0/20
allow from 190.7.144.0/20
allow from 190.8.176.0/22
allow from 190.8.192.0/19
allow from 190.8.224.0/19
allow from 190.9.64.0/19
allow from 190.9.96.0/19
allow from 190.9.192.0/19
allow from 190.9.224.0/19
allow from 190.12.128.0/19
allow from 190.13.0.0/19
allow from 190.13.32.0/19
allow from 190.13.96.0/20
allow from 190.13.192.0/20
allow from 190.14.224.0/20
allow from 190.14.240.0/20
allow from 190.15.0.0/19
allow from 190.24.0.0/16
allow from 190.25.0.0/16
allow from 190.26.0.0/16
allow from 190.27.0.0/16
allow from 190.28.0.0/16
allow from 190.29.0.0/16
allow from 190.52.0.0/19
allow from 190.60.0.0/16
allow from 190.61.0.0/16
allow from 190.65.0.0/16
allow from 190.66.0.0/16
allow from 190.67.0.0/16
allow from 190.68.0.0/16
allow from 190.69.0.0/16
allow from 190.70.0.0/17
allow from 190.70.128.0/17
allow from 190.71.0.0/16
allow from 190.84.0.0/16
allow from 190.85.0.0/16
allow from 190.90.0.0/16
allow from 190.93.128.0/19
allow from 190.96.128.0/19
allow from 190.96.160.0/19
allow from 190.96.192.0/20
allow from 190.96.208.0/20
allow from 190.96.224.0/19
allow from 190.97.64.0/20
allow from 190.97.80.0/20
allow from 190.97.128.0/19
allow from 190.97.192.0/19
allow from 190.99.128.0/17
allow from 190.102.160.0/19
allow from 190.102.192.0/20
allow from 190.102.208.0/20
allow from 190.103.96.0/20
allow from 190.103.112.0/20
allow from 190.109.128.0/19
allow from 190.109.160.0/19
allow from 190.110.64.0/19
allow from 190.112.128.0/19
allow from 190.112.160.0/20
allow from 190.120.128.0/20
allow from 190.121.128.0/20
allow from 190.121.144.0/20
allow from 190.124.96.0/19
allow from 190.125.0.0/16
allow from 190.126.0.0/16
allow from 190.127.0.0/16
allow from 190.128.0.0/19
allow from 190.128.32.0/19
allow from 190.128.64.0/18
allow from 190.130.64.0/18
allow from 190.131.192.0/18
allow from 190.143.0.0/18
allow from 190.143.64.0/18
allow from 190.144.0.0/14
allow from 190.151.192.0/18
allow from 190.156.0.0/16
allow from 190.157.0.0/16
allow from 190.158.0.0/16
allow from 190.159.0.0/16
allow from 190.165.0.0/18
allow from 190.165.64.0/18
allow from 190.165.128.0/17
allow from 190.182.0.0/18
allow from 190.182.64.0/18
allow from 190.184.200.0/21
allow from 190.211.140.0/22
allow from 190.240.0.0/18
allow from 190.240.64.0/18
allow from 190.240.128.0/17
allow from 190.242.0.0/16
allow from 190.243.0.0/16
allow from 190.248.0.0/16
allow from 190.249.0.0/16
allow from 190.250.0.0/16
allow from 190.251.0.0/16
allow from 190.252.0.0/14
allow from 198.51.71.0/24
allow from 200.0.0.0/21
allow from 200.0.187.0/24
allow from 200.0.201.0/24
allow from 200.1.64.0/19
allow from 200.1.96.0/21
allow from 200.1.124.0/24
allow from 200.1.126.0/24
allow from 200.1.127.0/24
allow from 200.1.173.0/24
allow from 200.1.175.0/24
allow from 200.1.192.0/21
allow from 200.2.64.0/21
allow from 200.3.128.0/20
allow from 200.3.144.0/23
allow from 200.3.147.0/24
allow from 200.3.148.0/22
allow from 200.3.152.0/22
allow from 200.3.156.0/22
allow from 200.3.160.0/21
allow from 200.3.192.0/23
allow from 200.3.244.0/22
allow from 200.4.16.0/20
allow from 200.6.160.0/20
allow from 200.6.176.0/20
allow from 200.9.16.0/20
allow from 200.9.72.0/24
allow from 200.11.40.0/21
allow from 200.12.170.0/24
allow from 200.12.175.0/24
allow from 200.12.176.0/20
allow from 200.13.192.0/19
allow from 200.13.224.0/19
allow from 200.14.40.0/21
allow from 200.14.112.0/23
allow from 200.16.79.0/24
allow from 200.16.117.0/24
allow from 200.16.118.0/23
allow from 200.21.0.0/16
allow from 200.24.0.0/21
allow from 200.24.8.0/24
allow from 200.24.9.0/24
allow from 200.24.16.0/20
allow from 200.24.32.0/20
allow from 200.24.48.0/20
allow from 200.24.96.0/20
allow from 200.24.112.0/20
allow from 200.25.0.0/17
allow from 200.25.224.0/20
allow from 200.25.240.0/20
allow from 200.26.128.0/19
allow from 200.29.96.0/20
allow from 200.29.112.0/20
allow from 200.29.232.0/21
allow from 200.30.64.0/20
allow from 200.30.80.0/20
allow from 200.30.96.0/19
allow from 200.31.64.0/19
allow from 200.31.192.0/20
allow from 200.31.208.0/20
allow from 200.35.32.0/20
allow from 200.35.48.0/20
allow from 200.58.192.0/20
allow from 200.58.208.0/20
allow from 200.58.224.0/20
allow from 200.61.128.0/19
allow from 200.69.96.0/20
allow from 200.69.112.0/20
allow from 200.71.32.0/20
allow from 200.71.48.0/20
allow from 200.71.64.0/20
allow from 200.71.96.0/20
allow from 200.73.0.0/18
allow from 200.73.64.0/19
allow from 200.73.216.0/21
allow from 200.74.128.0/19
allow from 200.75.32.0/19
allow from 200.75.64.0/19
allow from 200.80.0.0/18
allow from 200.81.56.0/21
allow from 200.85.224.0/20
allow from 200.85.240.0/20
allow from 200.89.96.0/20
allow from 200.89.112.0/20
allow from 200.89.192.0/20
allow from 200.89.208.0/20
allow from 200.89.224.0/20
allow from 200.89.240.0/20
allow from 200.91.192.0/19
allow from 200.91.224.0/19
allow from 200.93.128.0/19
allow from 200.93.160.0/19
allow from 200.106.128.0/20
allow from 200.106.160.0/19
allow from 200.106.192.0/19
allow from 200.110.128.0/19
allow from 200.110.168.0/21
allow from 200.112.208.0/21
allow from 200.114.0.0/20
allow from 200.114.16.0/20
allow from 200.114.32.0/19
allow from 200.115.112.0/20
allow from 200.116.0.0/17
allow from 200.116.128.0/17
allow from 200.118.0.0/17
allow from 200.118.128.0/17
allow from 200.119.0.0/19
allow from 200.119.32.0/19
allow from 200.119.64.0/18
allow from 200.122.192.0/19
allow from 200.122.224.0/20
allow from 200.122.240.0/20
allow from 200.124.124.0/23
allow from 201.184.0.0/16
allow from 201.185.0.0/16
allow from 201.190.64.0/18
allow from 201.216.0.0/19
allow from 201.216.32.0/19
allow from 201.217.192.0/19
allow from 201.219.192.0/19
allow from 201.220.32.0/20
allow from 201.220.48.0/20
allow from 201.220.64.0/20
allow from 201.220.80.0/20
allow from 201.221.128.0/20
allow from 201.221.144.0/20
allow from 201.221.160.0/20
allow from 201.221.176.0/20
allow from 201.228.0.0/17
allow from 201.228.128.0/17
allow from 201.232.0.0/17
allow from 201.232.128.0/17
allow from 201.233.0.0/17
allow from 201.233.128.0/17
allow from 201.236.192.0/19
allow from 201.236.224.0/19
allow from 201.244.0.0/16
allow from 201.245.0.0/16
allow from 206.223.124.0/24
allow from 216.241.0.0/19
#
</Limit>
En caso de querer bloquear el acceso totalmente, puede cambiar la primera linea por:
<Limit GET POST>
21 Dec, 2023 | 0
10 Nov, 2023 | 0
08 Nov, 2023 | 0
13 May, 2023 | 0