물론 네트웍장비 등으로도 동일한 처리가 가능합니다. (CentOS)
1. 특정IP만 허용
1) httpd-vhosts.conf (버추얼호스팅수정)
<Directory "/">
Order deny,allow
Allow from xxx.xxx.xxx.xxx
Deny from all
</Directory>
Order deny,allow
Allow from xxx.xxx.xxx.xxx
Deny from all
</Directory>
2. 특정IP만 차단
1) httpd-vhosts.conf (버추얼호스팅수정)
<Directory "/">
Order deny,allow
Allow from xxx.xxx.xxx.xxx
Deny from all
</Directory>
Order deny,allow
Allow from xxx.xxx.xxx.xxx
Deny from all
</Directory>
※ apaceh 2 test page 가 노출되는 경우
mv /var/www/error/noindex.html /var/www/error/noindex_bak.html