Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I got the error "A potentially dangerous Request.Path value was detected from the client (<)" while pass some special character like <,>,: etc at website url.But my 404 page is working fine if i put wrong url. I tried more at google but still am searching. All replies welcome.

T&R,
Dhinesh VelMayil
Posted

1 solution

Any request which includes "<" and ">" characters is "potentially dangerous" as it could involve HTML Injection and / or cross site scripting attacks.

Check your requests, and if you have such characters legitimately in them, consider changing them to underscores to avoid the message. If you don't, then you need to look at what is going on in a lot more detail!
 
Share this answer
 
Comments
Dhinesh kumar.V 22-Dec-14 7:26am    
Thanks for your suggestion buddy. here mostly my url with out special character. But testing team manually check url with special character. I wants to redirect my site to error.aspx page if url contain such characters. Is there any possibilities please let me know.
OriginalGriff 22-Dec-14 7:33am    
Are you catching custom errors and redirecting them all to an error page?
If you are and it isn't working, you need to look at either using a try...catch in your C# / VB code round the request, or using HTML encode to convert them to "normal" data.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900