最近發現有些來意不明的ip位址針對特定網站一直在連線存取,先是使用hosts.deny鎖特定IP.但發現成效不彰

所以找了 google 大神 發現可以修改httpd.conf

-----------------------------------------------------------------------------------------------------------------

<VirtualHost *:80>
    ServerName test.diary.tw
    Document /usr/home/www/test    .....
</VirtualHost>
<Directory "/usr/home/www/test">
    order deny,allow
    deny from 1.2.3.4 (要鎖定特定的IP位置)
</Directory>

arrow
arrow
    全站熱搜

    翰 發表在 痞客邦 留言(0) 人氣()