Skip to content

아파치에서 특정 사이트로 특정 네트웍(또는 IP Address)의 웹접속을 제한

MintState November 10, 2008 at 1:07 PM Views 17357

아파치에서 특정 사이트로 특정 네트웍(또는 IP Address)의 웹접속을 제한

이때, 제한된후의 접속을 하게되면 "Forbidden 403"이란 메시지가 나오게 되는데,
이런 접속제한한 작업을 숨기고, 없는 페이지로 보이게하고자 할때에는 다음과 같이 설정한다.

#특정네트웍 접속제한 
<Directory "/home/nice/www"> 
    AllowOverride All 
    Options None 
    Order allow,deny 
    Allow from all 
    Deny from 168.126.42 
</Directory>  

#    2) local redirects 
#특정사이트의 웹접속제한후에 forbidden 403 메시지를 다른메시지로 전환시킴. 
ErrorDocument 403 http://www.jioworld.com/403forbidden/index.html  
Share X Facebook LINE QR code

0 comments

Be the first to comment.