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

By Joe
at 2008-10-10T15:47
at 2008-10-10T15:47
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
--
在 /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
--
Tags:
Linux
All Comments
Related Posts
RealPlayer11 for linux

By Eartha
at 2008-10-10T14:01
at 2008-10-10T14:01
RealPlayer11 for linux

By Bethany
at 2008-10-10T12:56
at 2008-10-10T12:56
Ubuntu 下 crontab -e 無法寫入

By Robert
at 2008-10-10T09:35
at 2008-10-10T09:35
Ubuntu 下 crontab -e 無法寫入

By Bethany
at 2008-10-10T09:01
at 2008-10-10T09:01
Ubuntu 下 crontab -e 無法寫入

By Bennie
at 2008-10-10T07:07
at 2008-10-10T07:07