濮阳杆衣贸易有限公司

主頁 > 知識庫 > Nginx隱藏和偽造版本號的操作方法

Nginx隱藏和偽造版本號的操作方法

熱門標(biāo)簽:400電話干嘛怎么申請信用卡 泰州智能外呼系統(tǒng)排名 400電話申請知乎 外呼系統(tǒng)虛擬號碼 百度地圖標(biāo)注尺寸無法顯示 長春電銷外呼系統(tǒng)代理商 代理外呼系統(tǒng)創(chuàng)業(yè) 接電話機(jī)器人罵人 大連電銷外呼系統(tǒng)運(yùn)營商

1、默認(rèn)使用curl命令訪問:

# curl -I http://172.17.0.5

2、修改nginx.conf配置文件,在http配置段中新增如下代碼:

# vim /usr/local/nginx/conf/nginx.conf
server_tokens off;

3、修改fastcgi.conf配置文件,注釋如下代碼:

# vim /usr/local/nginx/conf/fastcgi.conf
fastcgi_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

總結(jié)

以上所述是小編給大家介紹的Nginx隱藏和偽造版本號的操作方法,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
如果你覺得本文對你有幫助,歡迎轉(zhuǎn)載,煩請注明出處,謝謝!

標(biāo)簽:臺灣 中衛(wèi) 興安盟 清遠(yuǎn) 大慶 雅安 安陽 長治

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Nginx隱藏和偽造版本號的操作方法》,本文關(guān)鍵詞  Nginx,隱藏,和,偽造,版本,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Nginx隱藏和偽造版本號的操作方法》相關(guān)的同類信息!
  • 本頁收集關(guān)于Nginx隱藏和偽造版本號的操作方法的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    右玉县| 五大连池市| 自贡市| 隆回县| 东乡| 顺平县| 万州区| 宣威市| 蒙山县| 神池县| 百色市| 寿阳县| 禹城市| 湛江市| 隆化县| 固原市| 高青县| 寻甸| 大英县| 溧水县| 奈曼旗| 贺州市| 桐城市| 沈阳市| 周至县| 蓬安县| 凤翔县| 拉萨市| 台北市| 彩票| 开封市| 清原| 左贡县| 万盛区| 阳朔县| 临清市| 乌鲁木齐县| 曲靖市| 黄山市| 大邑县| 贵定县|