复制代码 代码如下: <Directory “/var/www/html”> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all Deny from 124.114.0. Deny from 124.115.0. </Directory>
.htaccess文件法(在网站根目录下建立或打开.htaccess文件,加入如下内容) 复制代码 代码如下: Order allow,deny Allow from all Deny from 124.114.0. Deny from 124.115.0.