美文网首页
程序日记2018-05-25

程序日记2018-05-25

作者: Purson | 来源:发表于2018-06-20 07:18 被阅读0次

禁止在header中出现服务器版本,防止黑客利用版本漏洞攻击

server_tokens off;
#如果是全站 HTTPS 并且不考虑 HTTP 的话,可以加入 HSTS 告诉你的浏览器本网站全站加密,并且强制用 HTTPS 访问
#add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";

相关文章

网友评论

      本文标题:程序日记2018-05-25

      本文链接:https://www.haomeiwen.com/subject/qzdpjftx.html