不希望USER用IP連到我的 apache - Linux

Table of Contents

fedora core 7 以上版本 為了讓apche2.0更有安全性 增加了 Mod_Security
在 /etc/httpd/Mod_Security.d 裡

編輯文件
/etc/httpd/modsecurity.d/modsecurity_crs_21_protocol_anomalies.conf

把 SecRule REQUEST_HEADERS:Host "^[\d\.]+$"
"deny,log,auditlog,status:400,msg:'Host header is a numeric IP address',
severity:'2',id:'960017'

這一行若存在 當client 使用ip連線web site 的時候 會出現 error 400的訊息

希望對你有幫助囉


※ 引述《sunfox (時不我待)》之銘言:
: 大家好..
: 我的web server用apache 2.x架的
: 因為我是固定IP 但我不希望 USER用IP連到我的WEB SITE
: 請問該從什麼地方來下手呢
: 謝謝

--
http://www.wretch.cc/album/tigerlee1006

--

All Comments