在 Asp.net 应用程序中,它会自动重定向到登录页面。当我选择一个下拉菜单时,它就会引发回发以填充另一个下拉菜单。那时它会一次又一次地发生。以下是我复制此行为所遵循的步骤:
- 登录网站。
- 转到引起问题的此网页。
- 此页面有一个预先填充的下拉菜单。选择此下拉菜单将生成回发。
- 如果它没有重定向到登录页面,则其他下拉菜单重定向到登录页面
此场景没有显示任何异常或错误屏幕。是否有程序员错误需要纠正或服务器问题。
IIS 日志:
+like+Gecko)+Chrome/52.0.2743.116+Safari/537.36 __AntiXsrfToken=ce431a91a91943169e22c320b914cd20;+.AspNet.ApplicationCookie=JxKIhhhPqKTi90ZXk8hmaK7KL4Aeb9ORhpnKdXYp_3zmwh2hcWgC9c2ej1Uw8N-YgVhXXKNvgszx-RQT2widCDgt99pXmzetPcQa841DceWmkBJ8cPN9eG56Cw5gf3TFZZJg1pj0tEbZ0Rr8sVHoklWRsgPkT0TP4HQP7cVhVGgiNvySIYKebWZIpR24u0cjkXz9Wtjr06cb29IegBDnrVCCIfIovoVPpleV1wcG02pRSaVnygsqcXlrB1FB9jrtDAMah5PQowc7CxB0RXMTeDJpPQvciVAJ5X7RDgYAcMZ7axcsWPPaeGX1DfGum1gXdAgvfz5SYkYWFVQM285wj2iWJIMeZmZUo1YokcYRraBE_5ewW1qrd4n_77ex9mD8oiJtFj3w8f5_FA6bW64-zQLzFcz4Ca9fcLfh2uQ-YOhi4o0itUW-A_bEIPVWX3eVPUSK8-pZo6q_FpdAQJbUT1lgpr7fIYiWQwEXmxBq0DjJEnJMTX0LCOP0TpJma5Fwwd8bYr3dFqifUreoJK-iZA http://stellarvendor.com/Users/ProductEntry stellarvendor.com 200 0 0 90250 20432 24880
2016-08-11 20:18:32 W3SVC2957 GET /Users/ProductEntry - - 103.55.89.240 HTTP/1.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/52.0.2743.116+Safari/537.36 __AntiXsrfToken=ce431a91a91943169e22c320b914cd20;+.AspNet.ApplicationCookie=JxKIhhhPqKTi90ZXk8hmaK7KL4Aeb9ORhpnKdXYp_3zmwh2hcWgC9c2ej1Uw8N-YgVhXXKNvgszx-RQT2widCDgt99pXmzetPcQa841DceWmkBJ8cPN9eG56Cw5gf3TFZZJg1pj0tEbZ0Rr8sVHoklWRsgPkT0TP4HQP7cVhVGgiNvySIYKebWZIpR24u0cjkXz9Wtjr06cb29IegBDnrVCCIfIovoVPpleV1wcG02pRSaVnygsqcXlrB1FB9jrtDAMah5PQowc7CxB0RXMTeDJpPQvciVAJ5X7RDgYAcMZ7axcsWPPaeGX1DfGum1gXdAgvfz5SYkYWFVQM285wj2iWJIMeZmZUo1YokcYRraBE_5ewW1qrd4n_77ex9mD8oiJtFj3w8f5_FA6bW64-zQLzFcz4Ca9fcLfh2uQ-YOhi4o0itUW-A_bEIPVWX3eVPUSK8-pZo6q_FpdAQJbUT1lgpr7fIYiWQwEXmxBq0DjJEnJMTX0LCOP0TpJma5Fwwd8bYr3dFqifUreoJK-iZA - stellarvendor.com 302 0 0 2579 943 5387
2016-08-11 20:18:34 W3SVC2957 POST /Users/ProductEntry - - 103.55.89.240 HTTP/1.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/52.0.2743.116+Safari/537.36 __AntiXsrfToken=ce431a91a91943169e22c320b914cd20;+.AspNet.ApplicationCookie=JxKIhhhPqKTi90ZXk8hmaK7KL4Aeb9ORhpnKdXYp_3zmwh2hcWgC9c2ej1Uw8N-YgVhXXKNvgszx-RQT2widCDgt99pXmzetPcQa841DceWmkBJ8cPN9eG56Cw5gf3TFZZJg1pj0tEbZ0Rr8sVHoklWRsgPkT0TP4HQP7cVhVGgiNvySIYKebWZIpR24u0cjkXz9Wtjr06cb29IegBDnrVCCIfIovoVPpleV1wcG02pRSaVnygsqcXlrB1FB9jrtDAMah5PQowc7CxB0RXMTeDJpPQvciVAJ5X7RDgYAcMZ7axcsWPPaeGX1DfGum1gXdAgvfz5SYkYWFVQM285wj2iWJIMeZmZUo1YokcYRraBE_5ewW1qrd4n_77ex9mD8oiJtFj3w8f5_FA6bW64-zQLzFcz4Ca9fcLfh2uQ-YOhi4o0itUW-A_bEIPVWX3eVPUSK8-pZo6q_FpdAQJbUT1lgpr7fIYiWQwEXmxBq0DjJEnJMTX0LCOP0TpJma5Fwwd8bYr3dFqifUreoJK-iZA http://stellarvendor.com/Users/ProductEntry stellarvendor.com 302 0 0 2579 20661 3326
2016-08-11 20:18:43 W3SVC2957 GET /Account/Login ReturnUrl=%2FUsers%2FProductEntry - 103.55.89.240 HTTP/1.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/52.0.2743.116+Safari/537.36 __AntiXsrfToken=ce431a91a91943169e22c320b914cd20;+.AspNet.ApplicationCookie=JxKIhhhPqKTi90ZXk8hmaK7KL4Aeb9ORhpnKdXYp_3zmwh2hcWgC9c2ej1Uw8N-YgVhXXKNvgszx-RQT2widCDgt99pXmzetPcQa841DceWmkBJ8cPN9eG56Cw5gf3TFZZJg1pj0tEbZ0Rr8sVHoklWRsgPkT0TP4HQP7cVhVGgiNvySIYKebWZIpR24u0cjkXz9Wtjr06cb29IegBDnrVCCIfIovoVPpleV1wcG02pRSaVnygsqcXlrB1FB9jrtDAMah5PQowc7CxB0RXMTeDJpPQvciVAJ5X7RDgYAcMZ7axcsWPPaeGX1DfGum1gXdAgvfz5SYkYWFVQM285wj2iWJIMeZmZUo1YokcYRraBE_5ewW1qrd4n_77ex9mD8oiJtFj3w8f5_FA6bW64-zQLzFcz4Ca9fcLfh2uQ-YOhi4o0itUW-A_bEIPVWX3eVPUSK8-pZo6q_FpdAQJbUT1lgpr7fIYiWQwEXmxBq0DjJEnJMTX0LCOP0TpJma5Fwwd8bYr3dFqifUreoJK-iZA - stellarvendor.com 200 0 0 8333 972 11390
2016-08-11 20:18:50 W3SVC2957 GET /Account/Login ReturnUrl=%2FUsers%2FProductEntry - 103.55.89.240 HTTP/1.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/52.0.2743.116+Safari/537.36 __AntiXsrfToken=ce431a91a91943169e22c320b914cd20;+.AspNet.ApplicationCookie=JxKIhhhPqKTi90ZXk8hmaK7KL4Aeb9ORhpnKdXYp_3zmwh2hcWgC9c2ej1Uw8N-YgVhXXKNvgszx-RQT2widCDgt99pXmzetPcQa841DceWmkBJ8cPN9eG56Cw5gf3TFZZJg1pj0tEbZ0Rr8sVHoklWRsgPkT0TP4HQP7cVhVGgiNvySIYKebWZIpR24u0cjkXz9Wtjr06cb29IegBDnrVCCIfIovoVPpleV1wcG02pRSaVnygsqcXlrB1FB9jrtDAMah5PQowc7CxB0RXMTeDJpPQvciVAJ5X7RDgYAcMZ7axcsWPPaeGX1DfGum1gXdAgvfz5SYkYWFVQM285wj2iWJIMeZmZUo1YokcYRraBE_5ewW1qrd4n_77ex9mD8oiJtFj3w8f5_FA6bW64-zQLzFcz4Ca9fcLfh2uQ-YOhi4o0itUW-A_bEIPVWX3eVPUSK8-pZo6q_FpdAQJbUT1lgpr7fIYiWQwEXmxBq0DjJEnJMTX0LCOP0TpJma5Fwwd8bYr3dFqifUreoJK-iZA http://stellarvendor.com/Users/ProductEntry stellarvendor.com 200 0 0 8333 1128 7040
答案1
我遇到过类似情况。根本原因是服务器上的第三方防火墙将部分(但不是全部)回发请求标记为攻击,然后将这些请求重定向到网站的默认(登录)页面。