woff 發表於 2011-2-4 21:38:39

以.htaccess限制IP的存取

1. 修改httpd.conf內的設定, 針對"/var/www/html/abc"這個目錄做設定
Options MultiViews
AllowOverride All
Order allow,deny
Allow from all


2. 在"/var/www/html/abc"目錄內加上".htaccess"這個檔案, 內容如下
order deny,allow
allow from 192.168.1.2
deny from all

r2394319 發表於 2013-11-8 01:10:16

好阿,謝版主

sceqi 發表於 2013-11-8 01:10:16

支持你一下下。。

彦长垒卿 發表於 2013-11-8 01:10:16

自己知道了
頁: [1]
查看完整版本: 以.htaccess限制IP的存取