Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Preventing Duplicate Request URLs

$
0
0

Hi,

I am currently faced with an issue where the request URL is popping up twice and I am recieving "potentially dangerous request.path" exceptions in my event viewer.

Here is the request information from one of these exceptions

Request information:

Request URL: https://mydomain.mysite.com:443/my-controller/my-view/https:/mydomain.mysite.com/my-controller/my-view/

Request path: /my-controller/my-view/https:/mydomain.mysite.com/my-controller/my-view/

It appears that my URL is being tacked onto the end of the request starting with the https:/  

I do find it strange that it is not https://. My idea to solve this is by using a UrlReWrite rule until I am able to find out which link/redirect could be doing this.

I am not very experienced with RegEx's or IIR URL ReWrites, so unfortunately I am having a rather difficult time getting this to work.

Here is how I am trying to do it:

<rule name="Remove appended URL"><match url="^https:/([0-9a-z]+)/([_0-9a-z-]+)" /><action type="Rewrite" url="" /></rule>

I think this may work, but I am not quite sure what to put in the url attribute.

Question: How can I Rewrite to following request URL?

from: https://mydomain.mysite.com:443/my-controller/my-view/https:/mydomain.mysite.com/my-controller/my-view/

to: https://mydomain.mysite.com:443/my-controller/my-view/


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>