Bảo mật AdminCP hiệu quả bằng .htaccess

Làm sao để bảo mật tài khoản AdminCP của bạn? Trong bài này mình sẽ hướng dẫn bạn bảo mật AdminCP hiệu quả bằng .htaccess để chặn IP không cho phép truy suất vào AdminCP. 

bao-mat
Bảo mật AdminCP hiệu quả bằng .htaccess

 

Ví dụ dành cho mã nguồn WordPress, với tập tin request đến AdminCP là wp-login.php, đối với các mã nguồn khác bạn chỉ cần edit lại là xong ngay.

AdminCP của một số mã nguồn phổ biến:

WordPress – /wp-login.php
Xenforo – /admin.php
Joomla – /administrator/index.php
vBulletin – /admincp/index.php

Ngoài ra, bạn muốn chặn IP nước nào hoặc chấp nhận IP nước nào truy suất tới thì tham khảo link này.

Còn đây là danh sách dãy IP tại Việt Nam để bạn tham khảo:

# Day IP tai Viet Nam
1.52.0.0 – 1.55.255.255
14.0.16.0 – 14.0.31.255
14.160.0.0 – 14.191.255.255
14.224.0.0 – 14.255.255.255
27.0.12.0 – 27.0.15.255
27.2.0.0 – 27.3.255.255
27.64.0.0 – 27.79.255.255
27.118.16.0 – 27.118.31.255
42.1.64.0 – 42.1.127.255
42.96.0.0 – 42.96.63.255
42.112.0.0 – 42.119.255.255
46.36.200.211 – 46.36.200.215
49.156.52.0 – 49.156.55.255
49.213.64.0 – 49.213.127.255
49.236.208.0 – 49.236.211.255
49.246.128.0 – 49.246.223.255
58.186.0.0 – 58.187.255.255
61.11.224.0 – 61.11.255.255
61.28.224.0 – 61.28.255.255
63.218.185.0 – 63.218.185.255
63.218.187.0 – 63.218.187.255
63.218.197.0 – 63.218.197.255
101.53.0.0 – 101.53.63.255
101.96.12.0 – 101.96.15.255
101.96.64.0 – 101.96.127.255
101.99.0.0 – 101.99.63.255
103.1.200.0 – 103.1.203.255
103.1.208.0 – 103.1.211.255
103.1.236.0 – 103.1.239.255
103.2.220.0 – 103.2.231.255
103.3.244.0 – 103.3.255.255
103.4.128.0 – 103.4.131.255
103.5.30.0 – 103.5.31.255
103.5.204.0 – 103.5.211.255
103.7.36.0 – 103.7.43.255
103.7.172.0 – 103.7.172.255
103.7.174.0 – 103.7.175.255
103.7.177.0 – 103.7.177.255
103.7.196.0 – 103.7.196.255
103.8.13.0 – 103.8.13.255
103.9.0.0 – 103.9.7.255
103.9.76.0 – 103.9.87.255
103.9.196.0 – 103.9.215.255
103.10.88.0 – 103.10.91.255
103.10.212.0 – 103.10.215.255
103.11.172.0 – 103.11.175.255
103.12.104.0 – 103.12.107.255
103.13.76.0 – 103.13.79.255
103.15.48.0 – 103.15.51.255
103.16.0.0 – 103.16.3.255
103.17.88.0 – 103.17.91.255
103.17.236.0 – 103.17.239.255
103.18.4.0 – 103.18.7.255
103.18.176.0 – 103.18.179.255
103.19.96.0 – 103.19.99.255
103.19.164.0 – 103.19.167.255
103.19.220.0 – 103.19.223.255
103.20.144.0 – 103.20.151.255
103.21.120.0 – 103.21.123.255
103.21.148.0 – 103.21.151.255
103.23.144.0 – 103.23.147.255
103.23.156.0 – 103.23.159.255
103.24.244.0 – 103.24.247.255
103.26.252.0 – 103.26.255.255
103.27.60.0 – 103.27.67.255
103.27.229.128 – 103.27.229.255
103.27.231.0 – 103.27.231.127
103.27.236.0 – 103.27.239.255
103.28.32.0 – 103.28.39.255
103.28.136.0 – 103.28.139.255
103.28.172.0 – 103.28.175.255
103.30.36.0 – 103.30.39.255
103.31.120.0 – 103.31.127.255
103.37.28.0 – 103.37.35.255
103.38.136.0 – 103.38.139.255
103.39.92.0 – 103.39.99.255
103.42.56.0 – 103.42.59.255
103.224.168.0 – 103.224.171.255
103.225.236.0 – 103.225.239.255
103.226.108.0 – 103.226.111.255
103.226.248.0 – 103.226.251.255
103.227.112.0 – 103.227.115.255
103.227.216.0 – 103.227.219.255
103.228.20.0 – 103.228.23.255
103.229.40.0 – 103.229.43.255
103.229.192.0 – 103.229.195.255
103.231.148.0 – 103.231.151.255
103.232.52.0 – 103.232.63.255
103.232.120.0 – 103.232.123.255
103.233.48.0 – 103.233.51.255
103.234.36.0 – 103.234.39.255
103.234.88.0 – 103.234.91.255
103.235.208.0 – 103.235.215.255
103.237.60.0 – 103.237.67.255
103.237.96.0 – 103.237.99.255
103.237.144.0 – 103.237.151.255
103.238.68.0 – 103.238.83.255
103.238.208.0 – 103.238.215.255
103.239.32.0 – 103.239.35.255
103.239.116.0 – 103.239.123.255
103.241.248.0 – 103.241.251.255
103.242.52.0 – 103.242.55.255
103.243.104.0 – 103.243.107.255
103.243.216.0 – 103.243.219.255
103.244.136.0 – 103.244.139.255
103.245.148.0 – 103.245.151.255
103.245.244.0 – 103.245.255.255
103.246.104.0 – 103.246.104.255
103.246.220.0 – 103.246.223.255
103.248.160.0 – 103.248.167.255
103.249.20.0 – 103.249.23.255
103.249.100.0 – 103.249.103.255
103.250.24.0 – 103.250.27.255
103.252.0.0 – 103.252.3.255
103.252.252.0 – 103.252.255.255
103.253.88.0 – 103.253.91.255
103.254.12.0 – 103.254.19.255
103.254.40.0 – 103.254.43.255
103.254.216.0 – 103.254.219.255
103.255.84.0 – 103.255.87.255
103.255.236.0 – 103.255.239.255
110.35.64.0 – 110.35.79.255
110.44.184.0 – 110.44.191.255
111.65.240.0 – 111.65.255.255
111.91.232.0 – 111.91.235.255
112.72.64.0 – 112.72.127.255
112.78.0.0 – 112.78.15.255
112.109.88.0 – 112.109.95.255
112.137.128.0 – 112.137.143.255
112.197.0.0 – 112.197.255.255
112.213.80.0 – 112.213.95.255
113.20.96.0 – 113.20.127.255
113.22.0.0 – 113.23.127.255
113.52.32.0 – 113.52.63.255
113.61.108.0 – 113.61.111.255
113.160.0.0 – 113.191.255.255
115.72.0.0 – 115.79.255.255
115.84.176.0 – 115.84.183.255
115.146.120.0 – 115.146.127.255
115.165.160.0 – 115.165.167.255
116.68.128.0 – 116.68.135.255
116.96.0.0 – 116.111.255.255
116.118.0.0 – 116.118.127.255
116.193.64.0 – 116.193.79.255
116.212.32.0 – 116.212.63.255
117.0.0.0 – 117.7.255.255
117.103.192.0 – 117.103.255.255
117.122.0.0 – 117.122.127.255
118.68.0.0 – 118.71.255.255
118.102.0.0 – 118.102.7.255
118.107.64.0 – 118.107.127.255
119.15.160.0 – 119.15.191.255
119.17.192.0 – 119.17.255.255
119.18.128.0 – 119.18.143.255
119.18.184.0 – 119.18.191.255
119.82.128.0 – 119.82.143.255
120.50.184.0 – 120.50.191.255
120.72.80.0 – 120.72.87.255
120.72.96.0 – 120.72.127.255
120.138.64.0 – 120.138.79.255
122.102.112.0 – 122.102.115.255
122.129.0.0 – 122.129.63.255
122.201.8.0 – 122.201.15.255
123.16.0.0 – 123.31.255.255
124.157.0.0 – 124.157.63.255
124.158.0.0 – 124.158.15.255
125.58.0.0 – 125.58.63.255
125.212.128.0 – 125.212.255.255
125.214.0.0 – 125.214.63.255
125.234.0.0 – 125.235.255.255
125.253.112.0 – 125.253.127.255
155.254.243.0 – 155.254.243.255
171.224.0.0 – 171.255.255.255
172.205.0.0 – 172.205.127.255
174.136.105.192 – 174.136.105.199
175.103.64.0 – 175.103.127.255
175.106.0.0 – 175.106.3.255
180.93.0.0 – 180.93.255.255
180.148.0.0 – 180.148.7.255
180.148.128.0 – 180.148.143.255
180.214.236.0 – 180.214.239.255
182.161.80.0 – 182.161.95.255
182.236.112.0 – 182.236.115.255
182.237.20.0 – 182.237.23.255
183.80.0.0 – 183.81.127.255
183.90.160.0 – 183.90.167.255
183.91.0.0 – 183.91.31.255
183.91.160.0 – 183.91.191.255
192.253.249.128 – 192.253.249.255
202.0.79.0 – 202.0.79.255
202.4.168.0 – 202.4.168.255
202.4.176.0 – 202.4.176.255
202.6.2.0 – 202.6.2.255
202.6.96.0 – 202.6.97.255
202.9.79.0 – 202.9.80.255
202.9.84.0 – 202.9.84.255
202.37.86.0 – 202.37.87.255
202.43.108.0 – 202.43.111.255
202.44.137.0 – 202.44.137.255
202.47.87.0 – 202.47.87.255
202.47.142.0 – 202.47.142.255
202.52.39.0 – 202.52.39.255
202.55.132.0 – 202.55.135.255
202.56.57.0 – 202.56.57.255
202.58.245.0 – 202.58.245.255
202.59.238.0 – 202.59.239.255
202.59.252.0 – 202.59.253.255
202.60.104.0 – 202.60.111.255
202.74.56.0 – 202.74.56.255
202.74.58.0 – 202.74.59.255
202.78.224.0 – 202.78.231.255
202.79.232.0 – 202.79.239.255
202.87.212.0 – 202.87.215.255
202.92.4.0 – 202.92.7.255
202.93.156.0 – 202.93.159.255
202.94.82.0 – 202.94.82.255
202.94.88.0 – 202.94.89.255
202.124.204.0 – 202.124.204.255
202.130.36.0 – 202.130.37.255
202.134.16.0 – 202.134.23.255
202.134.54.0 – 202.134.54.255
202.151.160.0 – 202.151.175.255
202.158.244.0 – 202.158.247.255
202.160.124.0 – 202.160.125.255
202.172.4.0 – 202.172.5.255
202.191.56.0 – 202.191.59.255
203.8.127.0 – 203.8.127.255
203.8.172.0 – 203.8.172.255
203.34.144.0 – 203.34.144.255
203.77.178.0 – 203.77.178.255
203.79.28.0 – 203.79.28.255
203.89.140.0 – 203.89.143.255
203.99.248.0 – 203.99.251.255
203.113.128.0 – 203.113.191.255
203.119.8.0 – 203.119.11.255
203.119.36.0 – 203.119.39.255
203.119.44.0 – 203.119.47.255
203.119.58.0 – 203.119.75.255
203.128.240.0 – 203.128.247.255
203.160.0.0 – 203.160.1.255
203.160.96.0 – 203.160.103.255
203.161.178.0 – 203.161.178.255
203.162.0.0 – 203.162.255.255
203.163.128.0 – 203.163.191.255
203.170.26.0 – 203.170.27.255
203.171.16.0 – 203.171.31.255
203.176.160.0 – 203.176.167.255
203.189.28.0 – 203.189.31.255
203.190.160.0 – 203.190.175.255
203.191.8.0 – 203.191.15.255
203.191.48.0 – 203.191.55.255
203.195.0.0 – 203.195.63.255
203.201.56.0 – 203.201.59.255
203.205.0.0 – 203.205.63.255
203.209.180.0 – 203.209.183.255
203.210.128.0 – 203.210.255.255
206.125.171.16 – 206.125.171.23
210.2.64.0 – 210.2.127.255
210.86.224.0 – 210.86.239.255
210.211.96.0 – 210.211.127.255
210.245.0.0 – 210.245.127.255
218.100.10.0 – 218.100.10.255
218.100.14.0 – 218.100.14.255
218.100.60.0 – 218.100.60.255
220.231.64.0 – 220.231.127.255
221.121.0.0 – 221.121.63.255
221.132.0.0 – 221.132.63.255
221.133.0.0 – 221.133.31.255
222.252.0.0 – 222.255.255.255
223.27.104.0 – 223.27.111.255

Hy vọng với cách bảo mật AdminCP hiệu quả bằng .htaccess trên sẽ giúp bạn tạo an toàn tối đa cho tài khoản của mình.

Chúc các bạn thành công!