How to intercept and pre-process QueryStrings in Asp.Net
We send out registration urls to clients via email. Some of the email clients are turning the url into url <url> I think it may be happening when users forward the email onto themselves at which point the email client re-formats the original email (maybe) E.g. https://my.app.com/login.aspx?param=var Becomes https://my.app.com/login.aspx?param=var%20%3Chttps://my.app.com/login.aspx?param=var%3E Which rightly produces System.Web.HttpRequestValidationException: A potentially dangerous Request.QueryString value was detected Where in the code should I intercept these instances and santize the url