2 trailing dots in URL crashing 403 Forbidden

Viewed 45

When any page on my site built in MVC has 2 trailing dots the page crashes and the user receives a 403 forbidden error.

Example:

This url will load correctly: https://www.example.com/folder/

When google tags a link with the google click id, sometimes the querystrings contain 2 trailing dots causing the site to crash.

https://www.example.com/folder/?_gl=1*1c8z2ya*_g*ODcxNzE5OTQ1LjE2NM3MDUyNjc.*_ga_9HHLV212BL*MTY2MzcwNTI2Ny4xLjAuMTY2MzcwNTI2Ny4wLjAuMA..

I have researched and cannot find that anyone else has had this issue in MVC.

I tried adding the following to the web.config but it did not fix the problem.

<system.web>    
  <httpRuntime relaxedUrlToFileSystemMapping="true"/>
</system.web>

Any help would be appreciated.

0 Answers
Related