2016-10-11 28 views
0

我們有一個請求,總是在URL重寫模塊的IIS中卡住以下URL。最終,這些請求中的很多要求備份它使我們的網站崩潰。BotDetectCaptcha卡在URL重寫

我們正在使用rewriterules.config文件,並且具有以下規則,但是網址不斷卡住。只是想知道如果規則是正確的 -

URL - /項目/T3-blast-blast-fx/BotDetectCaptcha.ashx?get=sound & C = c_default_dnn_ctr23193_dynamicforms_captcha_435f5d28b7d5405fb41703f249afe63c & T = 7817e716b7544f79922d4facdd74025a

規則 -

<rule name="BotDetectStop" > 
    <match url="(.*)" /> 
    <conditions> 
    <add input="{URL}" negate="true" pattern="\.ashx$" /> 
    <add input="{URL}" negate="true" pattern="BotDetectCaptcha\.ashx$" /> 
    </conditions> 
</rule> 

回答

0

不確定這是否會解決問題,但爲了安全起見,請確保條件按照您希望使用邏輯分組的方式工作 - MatchAll或MatchAny。您可能需要:

<conditions logicalGrouping="MatchAll"> 

此外,指定當您的規則和條件匹配時應該發生的操作。例如。你是否想要重定向該請求,重寫它或什麼都不會發生。例如。

<action type="Rewrite" url="seethisinstead.aspx" /> 

<action type="None" />