如何在Apache中完全隐藏标头信息

发布于 2025-01-21 22:53:29 字数 1126 浏览 1 评论 0 原文

I am trying to hide the Apache Web Server Information for security reasons, Previously we were getting following output on running curl command,

< Server: Apache/2.4.53 (Win64) OpenSSL/1.1.1n

But i made the changes to my conf file and added below following lines,

ServerSignature Off ServerTokens Prod

After adding above lines in the conf file I am not getting following web server header output while running the curl command.

&lt; Server: Apache

To get rid of the "Apache" information I followed the below link and updated ap_release.h file under Include folder of apache install directory as mentioned in the below Stack Overflow Link.

Can someone guide me how to compile the source code, Also do we have to compile all the available source code or just the source code where I have made the modification.

问候, d

I am trying to hide the Apache Web Server Information for security reasons, Previously we were getting following output on running curl command,

< Server: Apache/2.4.53 (Win64) OpenSSL/1.1.1n

But i made the changes to my conf file and added below following lines,

ServerSignature Off
ServerTokens Prod

After adding above lines in the conf file I am not getting following web server header output while running the curl command.

< Server: Apache

To get rid of the "Apache" information I followed the below link and updated ap_release.h file under Include folder of apache install directory as mentioned in the below Stack Overflow Link.

How to change Apache's 'Server:' header without mod_security?

Can someone guide me how to compile the source code, Also do we have to compile all the available source code or just the source code where I have made the modification.

Regards,
D

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文