编辑网站目录下的.htaccess
Order Allow,Deny Deny from 43.247.199.1 Deny from 43.247.199.0/24
以下代码适合apache 2.4
<RequireAll> require all granted require not ip 43.247.199.1 require not ip 43.247.199.0/24 </RequireAll>
注册