環境(?):有潛在危險的Request的值
IIS 8.5
.NET Framework版本:4.6.2(使用Web窗體)
的Windows Server 2012 R2
問題:
以下異常被報告:
BASE EXCEPTION: System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (?).
at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)
BASE EXCEPTION HRESUT: -2147467259
EXCEPTION: System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (?).
at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)
在我們的日誌顯示的其他信息:
PATH_INFO
/cities/index.aspx?locid=4163
----
QUERY_STRING
----
REMOTE_ADDR
66.249.65.204
----
REMOTE_HOST
66.249.65.204
----
REQUEST_METHOD
GET
----
SCRIPT_NAME
/cities/index.aspx?locid=4163
----
URL
/cities/index.aspx?locid=4163
----
HTTP_FROM
googlebot(at)googlebot.com
----
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
如果我剪切和粘貼在我的瀏覽器的路徑是什麼我不明白的是,呈現頁面就好了沒有錯誤。
問題:
- 爲什麼Googlebot的爬行網頁時產生這個錯誤,但是當我進入瀏覽器的路徑不會產生錯誤? (我發現奇怪的是,即使它存在,錯誤日誌也沒有顯示查詢字符串的值)。
- 爲什麼「?」性格被認爲有潛在危險
任何意見,將不勝感激,因爲我試圖瞭解這種特殊的「錯誤」是如何提出的,當路徑實際上是有效的。
在此先感謝。