Linux WEB

WEB에 특정 IP접근 차단

2015.09.10 13:50

호스트웨이 조회 수:10056

WEB을 통해 비정상적인 접속 시도를 하는 경우를 발견 합니다.


서버에 독립 적인 방화벽이 없을 경우 아래와 같이 OS단에서 설정 변경 하여 해당 IP를 차단 합니다.


1. iptables

 - [root@hostway ~]# iptables -A INPUT -s 192.168.0.100 -j DROP


2. apache

 - [root@hostway ~]# vi httpd.conf


     <Directory /var/www/>
                Options FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                Allow from all
             deny from 192.168.0.100
        </Directory>






감사합니다.