order allow,deny
deny from 58.186.*.*
allow from all
, nếu muốn cấm cả 1 nước thì bạn bỏ lớp 4 và 5 đi.
muốn cấm 1 địa chỉ IP là 58.186.101.237 thì nội dung file .htaccess thêm vào là:
order allow,deny
deny from 58.186.101.237
allow from all
Giờ mình muốn cấm luôn cả bọn nheo nhóc bám theo như 58.186.101.235, 58.186.101.236, 58.186.100.237...
thì đoạnt trên chỉ việc:
order allow,deny
deny from 58.186.*.*
allow from all
Đoạn này sẽ cấm tất cả những IP có đầu 58.186.x.x
cấm ip việt nam truy cập :D
# Country: VIET NAM
# ISO Code: VN
# Total Networks: 130
# Total Subnets: 6,915,328
deny from 58.186.0.0/15
deny from 61.28.224.0/19
deny from 110.35.64.0/21
deny from 110.35.72.0/21
deny from 110.44.184.0/21
deny from 111.91.232.0/22
deny from 112.72.64.0/18
deny from 112.78.0.0/20
deny from 112.137.128.0/20
deny from 112.197.0.0/16
deny from 112.213.80.0/20
deny from 113.22.0.0/16
deny from 113.23.0.0/17
deny from 113.52.32.0/19
deny from 113.61.108.0/22
deny from 113.160.0.0/11
deny from 115.72.0.0/13
deny from 115.84.176.0/21
deny from 115.146.120.0/21
deny from 115.165.160.0/21
deny from 116.68.128.0/21
deny from 116.96.0.0/12
deny from 116.118.0.0/17
deny from 116.193.64.0/20
deny from 117.0.0.0/13
deny from 117.103.192.0/18
deny from 117.122.0.0/17
deny from 118.68.0.0/14
deny from 118.102.0.0/21
deny from 119.15.160.0/19
deny from 119.17.192.0/18
deny from 119.18.128.0/20
deny from 119.18.184.0/21
deny from 119.82.128.0/20
deny from 120.50.184.0/21
deny from 120.72.80.0/21
deny from 120.72.96.0/19
deny from 120.138.64.0/20
deny from 122.201.8.0/21
deny from 123.16.0.0/12
deny from 124.158.0.0/20
deny from 125.212.128.0/17
deny from 125.214.0.0/18
deny from 125.234.0.0/15
deny from 175.106.0.0/22
deny from 180.93.0.0/16
deny from 180.148.0.0/21
deny from 180.148.128.0/20
deny from 180.214.236.0/22
deny from 183.80.0.0/16
deny from 183.81.0.0/17
deny from 183.90.160.0/21
deny from 183.91.0.0/19
deny from 183.91.160.0/19
deny from 202.4.168.0/24
deny from 202.4.176.0/24
deny from 202.6.2.0/24
deny from 202.6.96.0/23
deny from 202.43.108.0/22
deny from 202.47.87.0/24
deny from 202.47.142.0/24
deny from 202.55.132.0/22
deny from 202.56.57.0/24
deny from 202.58.245.0/24
deny from 202.60.104.0/21
deny from 202.78.224.0/21
deny from 202.79.232.0/21
deny from 202.87.212.0/22
deny from 202.92.4.0/22
deny from 202.93.156.0/22
deny from 202.130.36.0/23
deny from 202.134.16.0/21
deny from 202.134.54.0/24
deny from 202.151.160.0/20
deny from 202.158.244.0/22
deny from 202.160.124.0/23
deny from 202.172.4.0/23
deny from 202.191.56.0/22
deny from 203.34.144.0/24
deny from 203.77.178.0/24
deny from 203.79.28.0/24
deny from 203.89.140.0/22
deny from 203.99.248.0/22
deny from 203.113.128.0/19
deny from 203.113.160.0/19
deny from 203.119.8.0/22
deny from 203.119.36.0/22
deny from 203.119.44.0/22
deny from 203.119.58.0/23
deny from 203.119.60.0/22
deny from 203.119.64.0/21
deny from 203.119.72.0/22
deny from 203.128.240.0/21
deny from 203.160.0.0/23
deny from 203.160.96.0/21
deny from 203.161.0.0/22
deny from 203.161.178.0/24
deny from 203.162.0.0/21
deny from 203.162.8.0/21
deny from 203.162.16.0/20
deny from 203.162.32.0/19
deny from 203.162.64.0/18
deny from 203.162.128.0/20
deny from 203.162.144.0/20
deny from 203.162.160.0/19
deny from 203.162.192.0/18
deny from 203.170.26.0/23
deny from 203.171.16.0/20
deny from 203.176.160.0/21
deny from 203.189.28.0/22
deny from 203.190.160.0/20
deny from 203.191.8.0/21
deny from 203.191.48.0/21
deny from 203.201.56.0/22
deny from 203.209.180.0/22
deny from 203.210.128.0/18
deny from 203.210.192.0/18
deny from 210.86.224.0/20
deny from 210.211.96.0/19
deny from 210.245.0.0/19
deny from 210.245.32.0/19
deny from 210.245.64.0/18
deny from 218.100.10.0/24
deny from 218.100.14.0/24
deny from 218.100.60.0/24
deny from 220.231.64.0/18
deny from 221.121.0.0/18
deny from 221.132.0.0/18
deny from 221.133.0.0/19
deny from 222.252.0.0/14
# ISO Code: VN
# Total Networks: 130
# Total Subnets: 6,915,328
deny from 58.186.0.0/15
deny from 61.28.224.0/19
deny from 110.35.64.0/21
deny from 110.35.72.0/21
deny from 110.44.184.0/21
deny from 111.91.232.0/22
deny from 112.72.64.0/18
deny from 112.78.0.0/20
deny from 112.137.128.0/20
deny from 112.197.0.0/16
deny from 112.213.80.0/20
deny from 113.22.0.0/16
deny from 113.23.0.0/17
deny from 113.52.32.0/19
deny from 113.61.108.0/22
deny from 113.160.0.0/11
deny from 115.72.0.0/13
deny from 115.84.176.0/21
deny from 115.146.120.0/21
deny from 115.165.160.0/21
deny from 116.68.128.0/21
deny from 116.96.0.0/12
deny from 116.118.0.0/17
deny from 116.193.64.0/20
deny from 117.0.0.0/13
deny from 117.103.192.0/18
deny from 117.122.0.0/17
deny from 118.68.0.0/14
deny from 118.102.0.0/21
deny from 119.15.160.0/19
deny from 119.17.192.0/18
deny from 119.18.128.0/20
deny from 119.18.184.0/21
deny from 119.82.128.0/20
deny from 120.50.184.0/21
deny from 120.72.80.0/21
deny from 120.72.96.0/19
deny from 120.138.64.0/20
deny from 122.201.8.0/21
deny from 123.16.0.0/12
deny from 124.158.0.0/20
deny from 125.212.128.0/17
deny from 125.214.0.0/18
deny from 125.234.0.0/15
deny from 175.106.0.0/22
deny from 180.93.0.0/16
deny from 180.148.0.0/21
deny from 180.148.128.0/20
deny from 180.214.236.0/22
deny from 183.80.0.0/16
deny from 183.81.0.0/17
deny from 183.90.160.0/21
deny from 183.91.0.0/19
deny from 183.91.160.0/19
deny from 202.4.168.0/24
deny from 202.4.176.0/24
deny from 202.6.2.0/24
deny from 202.6.96.0/23
deny from 202.43.108.0/22
deny from 202.47.87.0/24
deny from 202.47.142.0/24
deny from 202.55.132.0/22
deny from 202.56.57.0/24
deny from 202.58.245.0/24
deny from 202.60.104.0/21
deny from 202.78.224.0/21
deny from 202.79.232.0/21
deny from 202.87.212.0/22
deny from 202.92.4.0/22
deny from 202.93.156.0/22
deny from 202.130.36.0/23
deny from 202.134.16.0/21
deny from 202.134.54.0/24
deny from 202.151.160.0/20
deny from 202.158.244.0/22
deny from 202.160.124.0/23
deny from 202.172.4.0/23
deny from 202.191.56.0/22
deny from 203.34.144.0/24
deny from 203.77.178.0/24
deny from 203.79.28.0/24
deny from 203.89.140.0/22
deny from 203.99.248.0/22
deny from 203.113.128.0/19
deny from 203.113.160.0/19
deny from 203.119.8.0/22
deny from 203.119.36.0/22
deny from 203.119.44.0/22
deny from 203.119.58.0/23
deny from 203.119.60.0/22
deny from 203.119.64.0/21
deny from 203.119.72.0/22
deny from 203.128.240.0/21
deny from 203.160.0.0/23
deny from 203.160.96.0/21
deny from 203.161.0.0/22
deny from 203.161.178.0/24
deny from 203.162.0.0/21
deny from 203.162.8.0/21
deny from 203.162.16.0/20
deny from 203.162.32.0/19
deny from 203.162.64.0/18
deny from 203.162.128.0/20
deny from 203.162.144.0/20
deny from 203.162.160.0/19
deny from 203.162.192.0/18
deny from 203.170.26.0/23
deny from 203.171.16.0/20
deny from 203.176.160.0/21
deny from 203.189.28.0/22
deny from 203.190.160.0/20
deny from 203.191.8.0/21
deny from 203.191.48.0/21
deny from 203.201.56.0/22
deny from 203.209.180.0/22
deny from 203.210.128.0/18
deny from 203.210.192.0/18
deny from 210.86.224.0/20
deny from 210.211.96.0/19
deny from 210.245.0.0/19
deny from 210.245.32.0/19
deny from 210.245.64.0/18
deny from 218.100.10.0/24
deny from 218.100.14.0/24
deny from 218.100.60.0/24
deny from 220.231.64.0/18
deny from 221.121.0.0/18
deny from 221.132.0.0/18
deny from 221.133.0.0/19
deny from 222.252.0.0/14
No comments: