我想从 http 请求中删除 Apache Web 服务器信息。我已经实施了ServerTokens Prod
,这将信息减少到:
Server: Apache
现在,我也想从请求中删除这些信息。我怎样才能做到这一点?
yum install mod_security
Run Code Online (Sandbox Code Playgroud)
编辑文件 /etc/httpd/conf.d/mod_security.conf
<IfModule mod_security2.c>
# This is the ModSecurity Core Rules Set.
SecServerSignature " " ## add this
# Basic configuration goes in here
Include modsecurity.d/*.conf
Include modsecurity.d/base_rules/*.conf
Run Code Online (Sandbox Code Playgroud)
SecServerSignature " "会将 Server: apache 隐藏到 Server 中:
参考:http : //forums.cpanel.net/f5/disable-serversignature-off-not-working-78468.html
归档时间: |
|
查看次数: |
13330 次 |
最近记录: |