• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Status
Not open for further replies.

Admin

Well-Known Member
Staff member
Administrator
Bạn đã từng là một admin bạn làm gì khi diễn đàn bị Spam, chửi tục.
Bạn Banned nick họ, họ lập nick mới vào, Ban Ip thì lại có Ip mới
Vậy lúc đó chúng ta cần dùng đến
Đó là chặn IP nước ngoài vào website của mình bằng file .htaccess. Bắt đầu nào
TRước tiên tạo một file tênlà .htaccess có nội dung
PHP:
RewriteEngine on
order deny , allow
deny from all
allow from 58.186.0.0 / 15
allow from 61.28.224.0 / 19
allow from 110.35.64.0 / 21
allow from 110.35.72.0 / 21
allow from 110.44.184.0 / 21
allow from 111.91.232.0 / 22
allow from 112.72.64.0 / 18
allow from 112.78.0.0 / 20
allow from 112.137.128.0 / 20
allow from 112.197.0.0 / 16
allow from 112.213.80.0 / 20
allow from 113.22.0.0 / 16
allow from 113.23.0.0 / 17
allow from 113.52.32.0 / 19
allow from 113.61.108.0 / 22
allow from 113.160.0.0 / 11
allow from 115.72.0.0 / 13
allow from 115.84.176.0 / 21
allow from 115.146.120.0 / 21
allow from 115.165.160.0 / 21
allow from 116.68.128.0 / 21
allow from 116.96.0.0 / 12
allow from 116.118.0.0 / 17
allow from 116.193.64.0 / 20
allow from 117.0.0.0 / 13
allow from 117.103.192.0 / 18
allow from 117.122.0.0 / 17
allow from 118.68.0.0 / 14
allow from 118.102.0.0 / 21
allow from 119.15.160.0 / 19
allow from 119.17.192.0 / 18
allow from 119.18.128.0 / 20
allow from 119.18.184.0 / 21
allow from 119.82.128.0 / 20
allow from 120.50.184.0 / 21
allow from 120.72.80.0 / 21
allow from 120.72.96.0 / 19
allow from 120.138.64.0 / 20
allow from 122.201.8.0 / 21
allow from 123.16.0.0 / 12
allow from 125.212.128.0 / 17
allow from 125.214.0.0 / 18
allow from 125.234.0.0 / 15
allow from 169.211.5.0 / 24
allow from 180.93.0.0 / 16
allow from 202.6.2.0 / 24
allow from 202.6.96.0 / 23
allow from 202.43.108.0 / 22
allow from 202.47.142.0 / 24
allow from 202.55.132.0 / 22
allow from 202.56.57.0 / 24
allow from 202.60.104.0 / 21
allow from 202.78.224.0 / 21
allow from 202.79.232.0 / 21
allow from 202.87.212.0 / 22
allow from 202.92.4.0 / 22
allow from 202.93.156.0 / 22
allow from 202.130.36.0 / 23
allow from 202.134.16.0 / 21
allow from 202.151.160.0 / 20
allow from 202.158.244.0 / 22
allow from 202.160.124.0 / 23
allow from 202.172.4.0 / 23
allow from 202.191.56.0 / 22
allow from 203.34.144.0 / 24
allow from 203.77.178.0 / 24
allow from 203.89.140.0 / 22
allow from 203.99.248.0 / 22
allow from 203.113.128.0 / 19
allow from 203.113.160.0 / 19
allow from 203.119.8.0 / 22
allow from 203.119.36.0 / 22
allow from 203.119.44.0 / 22
allow from 203.119.58.0 / 23
allow from 203.119.60.0 / 22
allow from 203.119.64.0 / 21
allow from 203.119.72.0 / 22
allow from 203.128.240.0 / 21
allow from 203.160.0.0 / 23
allow from 203.160.96.0 / 21
allow from 203.161.0.0 / 22
allow from 203.162.0.0 / 21
allow from 203.162.8.0 / 21
allow from 203.162.16.0 / 20
allow from 203.162.32.0 / 19
allow from 203.162.64.0 / 18
allow from 203.162.128.0 / 20
allow from 203.162.144.0 / 20
allow from 203.162.160.0 / 19
allow from 203.162.192.0 / 18
allow from 203.170.26.0 / 23
allow from 203.171.16.0 / 20
allow from 203.176.160.0 / 21
allow from 203.189.28.0 / 22
allow from 203.190.160.0 / 20
allow from 203.191.8.0 / 21
allow from 203.191.48.0 / 21
allow from 203.201.56.0 / 22
allow from 203.209.180.0 / 22
allow from 203.210.128.0 / 18
allow from 203.210.192.0 / 18
allow from 210.86.224.0 / 20
allow from 210.245.0.0 / 19
allow from 210.245.32.0 / 19
allow from 210.245.64.0 / 18
allow from 218.100.10.0 / 24
allow from 218.100.14.0 / 24
allow from 218.100.60.0 / 24
allow from 220.231.64.0 / 18
allow from 221.121.0.0 / 18
allow from 221.132.0.0 / 18
allow from 221.133.0.0 / 19
allow from 222.252.0.0 / 14
Upload file này lên thư mụcmà không muốn cho IP vào.
Có nghĩa là chỉ cho phép các dải IP trên là vào được thư mục gốc đặt file.htaccess . Còn IP khác ko vào đc. Sẻ có lỗi 403. Để tạo trang lổi cho đẹp thì bà con tự ngâm cứu hoặc sẻ post vào bài sau.
Vài tý kinh nghiệm cho forum chia sẻ cùng anh em
 
Admin ơi cho code này vào khung cho mobile đi.em đang dùng điện thoại copy không được.giúp em với nha thank admin nhiều
 
Em đang dùng code chát lưu bút của tinhhoa.info cho cái này vào chặn ip được không anh
 
Status
Not open for further replies.

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top