Nginx如何隐藏和伪造版本号
发表于:2024-10-21 作者:千家信息网编辑
千家信息网最后更新 2024年10月21日,这篇文章给大家分享的是有关Nginx如何隐藏和伪造版本号的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。1、默认使用curl命令访问:# curl -I http://172
千家信息网最后更新 2024年10月21日Nginx如何隐藏和伪造版本号
这篇文章给大家分享的是有关Nginx如何隐藏和伪造版本号的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。
1、默认使用curl命令访问:
# curl -I http://172.17.0.5
2、修改nginx.conf配置文件,在http配置段中新增如下代码:
# vim /usr/local/nginx/conf/nginx.confserver_tokens off;
3、修改fastcgi.conf配置文件,注释如下代码:
# vim /usr/local/nginx/conf/fastcgi.conffastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
4、重载Nginx:
# nginx -s reload
5、使用curl命令访问:
# curl -I http://172.17.0.5
6、伪造Nginx的名称和版本号:
# vim /usr/src/nginx-1.16.1/src/core/nginx.h,修改如下代码#define NGINX_VERSION "1.16.1" --> #define NGINX_VERSION "2.3.2"#define NGINX_VER "nginx/" NGINX_VERSION --> #define NGINX_VER "Tengine/" NGINX_VERSION# cd /usr/src/nginx-1.16.1# ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-threads --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_image_filter_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-stream --with-stream_ssl_module --with-stream_realip_module --with-stream_geoip_module --with-stream_ssl_preread_module --with-compat --with-pcre# make && make install# cd /usr/local/nginx/conf# vim nginx.conf,删除之前新增的代码:server_tonkens off;# nginx -s stop# nginx
7、使用curl命令访问:
# curl -I http://172.17.0.5
感谢各位的阅读!关于"Nginx如何隐藏和伪造版本号"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!
代码
版本
命令
配置
内容
文件
更多
篇文章
不错
实用
名称
文章
注释
看吧
知识
中新
参考
帮助
有关
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
同创永益数据库
《网络安全责任追究制度》
网络技术部门叫什么名字
铜陵电商软件开发哪家好
中国脑特征码数据库
邹平染整软件开发定制
服务器安装设置启动
下列属于数据库管理系统的
天鸿网络安全插画
批处理备份数据库
网络安全及防火墙技术论文
数据库的网络使用
幻塔当前服务器倍率是什么
地铁网络安全项目
sql数据库查询随机一条信息
游戏网络或服务器异常怎么办
门头沟区品质软件开发介绍
如何判断c 数据库已经连接
历史上有哪些网络安全大战
监控用磁盘阵列还需要服务器吗
中国网络安全相关专业
数据库留言板数据类型
浙江高密度服务器云空间
metasys数据库
小企业网络安全战术
证券服务器
瑞婷网络技术有限公司
数据通信与ip网络技术读后感
对单位网络安全检查
网络安全法 idc