可以這樣: 在網站根目錄裏找到.htaccess文件,沒有就建一個。 加入這段代碼: order allow,deny deny from 192.168.44.201 deny from 224.39.163.12 allow from all 上麵的IP address你自己更換了。