可以这样: 在网站根目录里找到.htaccess文件,没有就建一个。 加入这段代码: order allow,deny deny from 192.168.44.201 deny from 224.39.163.12 allow from all 上面的IP address你自己更换了。