Order allow,deny
Allow from all
Deny from xxx.xxx.xxx.xxx
</Directory>
<LocationMatch "^/$>
Options -Indexes
ErrorDocument 403 /error/noindex.html
아래와 같이 설정을 했을때 xxx.xxx.xxx.xxx로 해당하는 아이피가
noindex.html을 볼 수 있엇습니다[테스트 페이지]
그리고 noindex.html이 아닌 다른 오류 문서를 넣어 보았습니다.
Order allow,deny
Allow from all
Deny from xxx.xxx.xxx.xxx
</Directory>
<LocationMatch "^/$>
Options -Indexes
ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var