前言大概内容:
安全系统渗透测试出host头攻击漏洞,下面是解决步骤,本人已测过无问题。
server_name aaabbb.com;if ($http_Host !~* ^127.0.0.1|aaabbb.com|localhost$) { return 403; }