如果我的页面显示从客户端(<)检测到潜在危险的request.path值,如何重定向到custome错误页面 [英] How to redirect to custome error page if my page says potentially dangerous request.path value was detected from the client(<)

查看:55
本文介绍了如果我的页面显示从客户端(<)检测到潜在危险的request.path值,如何重定向到custome错误页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已输入< script>在我的url.SO错误发生。怎么解决这个



我尝试过:



使用asp.net C#我输入了< script>在我的url.SO错误发生。如何解决这个

I have entered <script> in my url.SO error occurred.How to solve this

What I have tried:

using asp.net C# I have entered <script> in my url.SO error occurred.How to solve this

推荐答案

你可以尝试这种方式

you can try this way
<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration


这篇关于如果我的页面显示从客户端(&lt;)检测到潜在危险的request.path值,如何重定向到custome错误页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆