Solved Cách chặn IP VN với forum Xenforo

Hi,
Em có forum làm bằng Xenforo, các bác cho em hỏi có cách nào chặn IP VN truy cập vào được ko? Em có xài .htaccess nhưng mà ko chặn được, vẫn truy cập vào bt (có thể em làm ko đúng). Hoặc có add-on nào chặn IP VN ko cho truy cập được vào (ko phải chặn reg nick hay post new topic). Chờ cao kiến của các bác.
 

ckv2015

Hero
Verified
Joined
May 26, 2014
Messages
1,915
Solutions
2
Reactions
1,245
MR
3.445
Hi,
Em có forum làm bằng Xenforo, các bác cho em hỏi có cách nào chặn IP VN truy cập vào được ko? Em có xài .htaccess nhưng mà ko chặn được, vẫn truy cập vào bt (có thể em làm ko đúng). Hoặc có add-on nào chặn IP VN ko cho truy cập được vào (ko phải chặn reg nick hay post new topic). Chờ cao kiến của các bác.

Thả ip ko đúng thì nó ko chặn được thoai.
Chắc chơi 3 con ếch hả
:D:D
Thử cái này đi:
PHP:
# Copyright 2014 Country IP Blocks LLC
#all rights reserved.
#This list may not be redistributed in any form.
#this list includes network data on the following countries:
#VIET NAM
<Limit GET POST>
order allow,deny
deny from 1.52.0.0/14
deny from 5.10.84.184/29
deny from 14.0.16.0/20
deny from 14.160.0.0/11
deny from 14.224.0.0/11
deny from 27.0.12.0/22
deny from 27.2.0.0/15
deny from 27.64.0.0/12
deny from 27.118.16.0/20
deny from 42.1.64.0/18
deny from 42.96.0.0/18
deny from 42.112.0.0/13
deny from 49.156.52.0/22
deny from 49.213.64.0/18
deny from 49.236.208.0/22
deny from 49.246.128.0/18
deny from 49.246.192.0/19
deny from 58.186.0.0/15
deny from 61.11.224.0/19
deny from 61.28.224.0/19
deny from 101.53.0.0/18
deny from 101.96.12.0/22
deny from 101.96.64.0/18
deny from 101.99.0.0/18
deny from 103.1.200.0/22
deny from 103.1.208.0/22
deny from 103.1.236.0/22
deny from 103.2.220.0/22
deny from 103.2.224.0/22
deny from 103.2.228.0/22
deny from 103.3.244.0/22
deny from 103.3.248.0/22
deny from 103.3.252.0/22
deny from 103.4.128.0/22
deny from 103.5.30.0/23
deny from 103.5.204.0/22
deny from 103.5.208.0/22
deny from 103.7.36.0/22
deny from 103.7.40.0/22
deny from 103.7.172.0/24
deny from 103.7.174.0/23
deny from 103.7.177.0/24
deny from 103.7.196.0/24
deny from 103.8.13.0/24
deny from 103.9.0.0/22
deny from 103.9.4.0/22
deny from 103.9.76.0/22
deny from 103.9.80.0/22
deny from 103.9.84.0/22
deny from 103.9.196.0/22
deny from 103.9.200.0/22
deny from 103.9.204.0/22
deny from 103.9.208.0/22
deny from 103.9.212.0/22
deny from 103.10.88.0/22
deny from 103.10.212.0/22
deny from 103.11.172.0/22
deny from 103.12.104.0/22
deny from 103.13.76.0/22
deny from 103.15.48.0/22
deny from 103.16.0.0/22
deny from 103.17.88.0/22
deny from 103.17.236.0/22
deny from 103.18.4.0/22
deny from 103.18.176.0/22
deny from 103.19.96.0/22
deny from 103.19.164.0/22
deny from 103.19.220.0/22
deny from 103.20.144.0/22
deny from 103.20.148.0/22
deny from 103.21.120.0/22
deny from 103.21.148.0/22
deny from 103.23.144.0/22
deny from 103.23.156.0/22
deny from 103.24.244.0/22
deny from 103.26.252.0/22
deny from 103.27.60.0/22
deny from 103.27.64.0/22
deny from 103.27.236.0/22
deny from 103.28.32.0/22
deny from 103.28.36.0/22
deny from 103.28.136.0/22
deny from 103.28.172.0/22
deny from 103.30.36.0/22
deny from 103.31.120.0/22
deny from 103.31.124.0/22
deny from 103.241.248.0/22
deny from 103.242.52.0/22
deny from 103.243.104.0/22
deny from 103.243.216.0/22
deny from 103.244.136.0/22
deny from 103.245.148.0/22
deny from 103.245.244.0/22
deny from 103.245.248.0/22
deny from 103.245.252.0/22
deny from 103.246.104.0/24
deny from 103.246.220.0/22
deny from 103.248.160.0/22
deny from 103.248.164.0/22
deny from 103.249.20.0/22
deny from 103.249.100.0/22
deny from 103.250.24.0/22
deny from 103.252.0.0/22
deny from 103.252.252.0/22
deny from 103.253.88.0/22
deny from 103.254.12.0/22
deny from 103.254.16.0/22
deny from 103.254.40.0/22
deny from 103.254.216.0/22
deny from 110.35.64.0/21
deny from 110.35.72.0/21
deny from 110.44.184.0/21
deny from 111.65.240.0/20
deny from 111.91.232.0/22
deny from 112.72.64.0/18
deny from 112.78.0.0/20
deny from 112.109.88.0/21
deny from 112.137.128.0/20
deny from 112.197.0.0/16
deny from 112.213.80.0/20
deny from 113.20.96.0/19
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 116.212.32.0/19
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 118.107.64.0/18
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.102.112.0/22
deny from 122.129.0.0/18
deny from 122.201.8.0/21
deny from 123.16.0.0/12
deny from 124.157.0.0/18
deny from 124.158.0.0/20
deny from 125.58.0.0/18
deny from 125.212.128.0/17
deny from 125.214.0.0/18
deny from 125.234.0.0/15
deny from 125.253.112.0/20
deny from 171.224.0.0/11
deny from 175.103.64.0/18
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 182.161.80.0/20
deny from 182.236.112.0/22
deny from 182.237.20.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 192.95.41.112/28
deny from 192.95.49.172/30
deny from 192.95.53.80/28
deny from 192.95.58.176/30
deny from 202.0.79.0/24
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.9.79.0/24
deny from 202.9.80.0/24
deny from 202.9.84.0/24
deny from 202.37.86.0/23
deny from 202.43.108.0/22
deny from 202.44.137.0/24
deny from 202.47.87.0/24
deny from 202.47.142.0/24
deny from 202.52.39.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.59.238.0/23
deny from 202.59.252.0/23
deny from 202.60.104.0/21
deny from 202.74.56.0/24
deny from 202.74.58.0/23
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.94.82.0/24
deny from 202.94.88.0/23
deny from 202.124.204.0/24
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.8.127.0/24
deny from 203.8.172.0/24
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.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.163.128.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.195.0.0/18
deny from 203.201.56.0/22
deny from 203.205.0.0/18
deny from 203.209.180.0/22
deny from 203.210.128.0/18
deny from 203.210.192.0/18
deny from 210.2.64.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
deny from 223.27.104.0/21
allow from all
</Limit>
 
Upvote 0

chosjay5

Newbie
Joined
Nov 24, 2015
Messages
11
Reactions
0
MR
0.000
Thả ip ko đúng thì nó ko chặn được thoai.
Chắc chơi 3 con ếch hả
:D:D
Thử cái này đi:
PHP:
# Copyright 2014 Country IP Blocks LLC
#all rights reserved.
#This list may not be redistributed in any form.
#this list includes network data on the following countries:
#VIET NAM
<Limit GET POST>
order allow,deny
deny from 1.52.0.0/14
deny from 5.10.84.184/29
deny from 14.0.16.0/20
deny from 14.160.0.0/11
deny from 14.224.0.0/11
deny from 27.0.12.0/22
deny from 27.2.0.0/15
deny from 27.64.0.0/12
deny from 27.118.16.0/20
deny from 42.1.64.0/18
deny from 42.96.0.0/18
deny from 42.112.0.0/13
deny from 49.156.52.0/22
deny from 49.213.64.0/18
deny from 49.236.208.0/22
deny from 49.246.128.0/18
deny from 49.246.192.0/19
deny from 58.186.0.0/15
deny from 61.11.224.0/19
deny from 61.28.224.0/19
deny from 101.53.0.0/18
deny from 101.96.12.0/22
deny from 101.96.64.0/18
deny from 101.99.0.0/18
deny from 103.1.200.0/22
deny from 103.1.208.0/22
deny from 103.1.236.0/22
deny from 103.2.220.0/22
deny from 103.2.224.0/22
deny from 103.2.228.0/22
deny from 103.3.244.0/22
deny from 103.3.248.0/22
deny from 103.3.252.0/22
deny from 103.4.128.0/22
deny from 103.5.30.0/23
deny from 103.5.204.0/22
deny from 103.5.208.0/22
deny from 103.7.36.0/22
deny from 103.7.40.0/22
deny from 103.7.172.0/24
deny from 103.7.174.0/23
deny from 103.7.177.0/24
deny from 103.7.196.0/24
deny from 103.8.13.0/24
deny from 103.9.0.0/22
deny from 103.9.4.0/22
deny from 103.9.76.0/22
deny from 103.9.80.0/22
deny from 103.9.84.0/22
deny from 103.9.196.0/22
deny from 103.9.200.0/22
deny from 103.9.204.0/22
deny from 103.9.208.0/22
deny from 103.9.212.0/22
deny from 103.10.88.0/22
deny from 103.10.212.0/22
deny from 103.11.172.0/22
deny from 103.12.104.0/22
deny from 103.13.76.0/22
deny from 103.15.48.0/22
deny from 103.16.0.0/22
deny from 103.17.88.0/22
deny from 103.17.236.0/22
deny from 103.18.4.0/22
deny from 103.18.176.0/22
deny from 103.19.96.0/22
deny from 103.19.164.0/22
deny from 103.19.220.0/22
deny from 103.20.144.0/22
deny from 103.20.148.0/22
deny from 103.21.120.0/22
deny from 103.21.148.0/22
deny from 103.23.144.0/22
deny from 103.23.156.0/22
deny from 103.24.244.0/22
deny from 103.26.252.0/22
deny from 103.27.60.0/22
deny from 103.27.64.0/22
deny from 103.27.236.0/22
deny from 103.28.32.0/22
deny from 103.28.36.0/22
deny from 103.28.136.0/22
deny from 103.28.172.0/22
deny from 103.30.36.0/22
deny from 103.31.120.0/22
deny from 103.31.124.0/22
deny from 103.241.248.0/22
deny from 103.242.52.0/22
deny from 103.243.104.0/22
deny from 103.243.216.0/22
deny from 103.244.136.0/22
deny from 103.245.148.0/22
deny from 103.245.244.0/22
deny from 103.245.248.0/22
deny from 103.245.252.0/22
deny from 103.246.104.0/24
deny from 103.246.220.0/22
deny from 103.248.160.0/22
deny from 103.248.164.0/22
deny from 103.249.20.0/22
deny from 103.249.100.0/22
deny from 103.250.24.0/22
deny from 103.252.0.0/22
deny from 103.252.252.0/22
deny from 103.253.88.0/22
deny from 103.254.12.0/22
deny from 103.254.16.0/22
deny from 103.254.40.0/22
deny from 103.254.216.0/22
deny from 110.35.64.0/21
deny from 110.35.72.0/21
deny from 110.44.184.0/21
deny from 111.65.240.0/20
deny from 111.91.232.0/22
deny from 112.72.64.0/18
deny from 112.78.0.0/20
deny from 112.109.88.0/21
deny from 112.137.128.0/20
deny from 112.197.0.0/16
deny from 112.213.80.0/20
deny from 113.20.96.0/19
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 116.212.32.0/19
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 118.107.64.0/18
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.102.112.0/22
deny from 122.129.0.0/18
deny from 122.201.8.0/21
deny from 123.16.0.0/12
deny from 124.157.0.0/18
deny from 124.158.0.0/20
deny from 125.58.0.0/18
deny from 125.212.128.0/17
deny from 125.214.0.0/18
deny from 125.234.0.0/15
deny from 125.253.112.0/20
deny from 171.224.0.0/11
deny from 175.103.64.0/18
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 182.161.80.0/20
deny from 182.236.112.0/22
deny from 182.237.20.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 192.95.41.112/28
deny from 192.95.49.172/30
deny from 192.95.53.80/28
deny from 192.95.58.176/30
deny from 202.0.79.0/24
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.9.79.0/24
deny from 202.9.80.0/24
deny from 202.9.84.0/24
deny from 202.37.86.0/23
deny from 202.43.108.0/22
deny from 202.44.137.0/24
deny from 202.47.87.0/24
deny from 202.47.142.0/24
deny from 202.52.39.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.59.238.0/23
deny from 202.59.252.0/23
deny from 202.60.104.0/21
deny from 202.74.56.0/24
deny from 202.74.58.0/23
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.94.82.0/24
deny from 202.94.88.0/23
deny from 202.124.204.0/24
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.8.127.0/24
deny from 203.8.172.0/24
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.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.163.128.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.195.0.0/18
deny from 203.201.56.0/22
deny from 203.205.0.0/18
deny from 203.209.180.0/22
deny from 203.210.128.0/18
deny from 203.210.192.0/18
deny from 210.2.64.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
deny from 223.27.104.0/21
allow from all
</Limit>

Em làm rồi mà vẫn ko được bác à, vẫn vào ầm ầm như ko :(. Bác thử trên xenforo chưa? Hình như chạy được trên wordpress thì phải
 
Upvote 0
Bạn dùng nginx hay Apache vậy? Và IP mà bạn dùng để thử là IP nào?

Mình xài Webserver Nginx, IP bác nói là IP gì nhỉ? IP web mình à? Mình muốn banned IP Vietnam. Mình chạy web trên VPS CentOS 7


Cái này mình có đọc qua, nhưng mà mình banned IP nhiều nước lắm, cả China nữa, nên ko thể cứ add từng dải IP 1 được :(
 
Last edited:
Upvote 0
Joined
Feb 11, 2015
Messages
50
Reactions
4
MR
0.000
Dân ta mà còn không tin được dân ta nữa, đúng là làm ăn trên mạng gặp dog nhiều thành ra cũng ngại. Chắc thớt sợ click tặc :D
 
Upvote 0
Mình xài Webserver Nginx, IP bác nói là IP gì nhỉ? IP web mình à? Mình muốn banned IP Vietnam. Mình chạy web trên VPS CentOS 7
Cơ bản là file .htaccess là dùng cho Apache, còn nginx thì cấu hình trong file conf, nên bác dùng file .htaccess mà đòi nginx chạy thì đương nhiên là không thể nào rồi :D
 
Upvote 0
Cơ bản là file .htaccess là dùng cho Apache, còn nginx thì cấu hình trong file conf, nên bác dùng file .htaccess mà đòi nginx chạy thì đương nhiên là không thể nào rồi :D

Bác có thạo Nginx ko chỉ mình cách banned IP VN với, mình cũng vừa có tìm hiểu .htaccess ko chạy với Nginx
 
Upvote 0

kalista

Senior
Joined
Dec 26, 2012
Messages
738
Solutions
1
Reactions
551
MR
1.327
Chat with me via Yahoo Messenger Follow me on Facebook

Attachments

  • Capture.PNG
    Capture.PNG
    13.6 KB · Views: 50
Upvote 0
Nếu dùng Cloudflare thì chặn country được mà. còn dùng Nginx thì không dùng htaccess được.

Trong CloudFlare -->Firewall --> điền 2 chữ VN vào ô Access Rules chọn Block rồi all website là xong :D

List full country code: https://support.cloudflare.com/hc/en-us/articles/205072537

Chặn country thì nó báo lỗi thế này "Countries can only be challenged or whitelisted (Code: 1212)". Nó ko cho Block, chỉ cho Challenged hoặc Whitelisted thôi :(. Challenged thì chỉ nhập Captcha là vào được
 
Upvote 0

Announcements

Forum statistics

Threads
427,374
Messages
7,206,844
Members
179,662
Latest member
go88chiangmai

Most viewed of week

Most discussed of week

Most viewed of week

Most discussed of week

Back
Top Bottom