What is the TYPE of <denystrings> in <filteringRules>'s <requestFiltering>?

别等时光非礼了梦想. 提交于 2020-01-04 16:25:31

问题


<security>
<requestFiltering>
    <filteringRules>
      <filteringRule name="My filter" scanUrl="false" scanQueryString="false">
        <scanHeaders>
          <add requestHeader="User-Agent" />
        </scanHeaders>
        <denyStrings>
          -- I'm talking about the type of string in the following line --
          <add string="Mozilla" />
        </denyStrings>
      </filteringRule>
    </filteringRules>
  </requestFiltering>
</security>

I know that <add string="Mozilla" /> will look up the user agent for "Mozilla". In fact Mozilla will be %Mozilla% (if we talk like SQL).

Now I want to restrict access of the user agent "-" (not %-%).

Tell me are the strings' format, regular expression?

Are the strings Regular Expression? In PHP, I know Perl style regular expressions. Please tell me where can I find information about the type of the strings?

来源:https://stackoverflow.com/questions/20264389/what-is-the-type-of-denystrings-in-filteringruless-requestfiltering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!