我们对我们的 PHP 代码进行了安全审查,他们的团队在他们的报告中建议了这一点(除其他外):
/appdir/
Details
The HTTP header user-agent has been set to \" .
Request
GET /appdir/ HTTP/1.0
Accept: */*
User-Agent: \"
Host: localhost
Cookie: PHPSESSID=08rtvlq03bd9d57qor4abjg7q4
Connection: Close
Pragma: no-cache
Response
HTTP/1.1 200 OK
Date: Sat, 18 Dec 2010 09:35:40 GMT
Server: Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html
可以将 HTTP 标头用户代理设置为 \" 是否重要?