1. httpd.conf 內設定可用 .htaccess
<Directory /home/*/www/>
AllowOverride Limit
Order allow,deny
Allow from all
</Directory>
2. 在 /home/*/www/ 之後要保護的目錄下,
新增 .htaccess 檔案,內容如下:
order deny,allow
allow from 163.x.x.x/24
allow from 192.x.x.x/16
allow from 163.x.x.x
deny from all