header match
Matches on a request header passed from the client’s browser (or User Agent).
Arguments
- header
- The name of the header to match on.
- match
- The pattern to match on. This pattern is a standard .NET regular expression.
Remarks
This condition allows you to optionally forbid or allow access to URL’s based on the user agent or other header information.
Examples
To forbid access to any client with “MSIE” in the User-Agent header, use:
<if header="User-Agent" match="MSIE" /> <forbidden /> </if>