Loading ...

IIS7: The request was rejected by the HTTP filter. | CodeAsp.Net

IIS7: The request was rejected by the HTTP filter.

 /5
0 (0votes)

I noticed one of my urls was giving the "The request was rejected by the HTTP filter." error today while accessing it. After spending few minutes to locate the cause I was on the conclusion that the "Right side single quote (’)" in the url was the culprit for it. The reason why I was not able to view the url on my server because "high bit characters" for my site was disallowed in IIS.


It can checked via IIS site >> Request filtering >> Edit feature settings link. Since the "Right side single quote (’)" is considered as a high bit character therefore my server was rejecting the urls (which contain this character) which is confirmed by the response I was getting "The request was rejected by the HTTP filter. Contact the server administrator."

Solution:

  1. Allow high-bit characters
  2. Since allowing high-bit characters is not safe we can change the high bit url segements to some safe segments say hash(-)

Comments (no comments yet)

Top Posts