Class MitmExclusionDefaults
Default hostname exclusions for MITM proxies (Microsoft identity / certificate pinning).
Use with BypassRules and
DecryptSsl.
Inheritance
MitmExclusionDefaults
Namespace: Titanium.Web.Proxy
Assembly: Titanium.Web.Proxy.dll
Syntax
public static class MitmExclusionDefaults
Fields
|
Edit this page
View Source
SystemProxyBypassRules
WinINET / system-proxy bypass patterns for Microsoft identity endpoints (Entra / WAM / RDP).
Declaration
public static readonly string[] SystemProxyBypassRules
Field Value
|
Edit this page
View Source
TunnelOnlyPinningDomains
Pinning hosts that should tunnel (DecryptSsl=false) but stay visible.
Declaration
public static readonly string[] TunnelOnlyPinningDomains
Field Value
Methods
|
Edit this page
View Source
ApplyDecryptExclusions(ExplicitProxyEndPoint, Func<bool>)
Registers per-CONNECT DecryptSsl gating on an explicit endpoint (Merge mode).
Declaration
public static void ApplyDecryptExclusions(ExplicitProxyEndPoint endPoint, Func<bool> decryptHttpsEnabled)
Parameters
|
Edit this page
View Source
ApplyDecryptExclusions(ExplicitProxyEndPoint, Func<bool>, IEnumerable<string>?, IEnumerable<string>?)
Registers per-CONNECT DecryptSsl gating on an explicit endpoint (Merge mode).
Declaration
public static void ApplyDecryptExclusions(ExplicitProxyEndPoint endPoint, Func<bool> decryptHttpsEnabled, IEnumerable<string>? decryptSkipHosts, IEnumerable<string>? decryptOnlyHosts)
Parameters
|
Edit this page
View Source
ApplyDecryptExclusions(ExplicitProxyEndPoint, Func<bool>, IEnumerable<string>?, IEnumerable<string>?, MitmExclusionMode)
Registers per-CONNECT DecryptSsl gating on an explicit endpoint.
Declaration
public static void ApplyDecryptExclusions(ExplicitProxyEndPoint endPoint, Func<bool> decryptHttpsEnabled, IEnumerable<string>? decryptSkipHosts, IEnumerable<string>? decryptOnlyHosts, MitmExclusionMode mode)
Parameters
|
Edit this page
View Source
CreateSystemProxySettings()
Declaration
public static SystemProxySettings CreateSystemProxySettings()
Returns
|
Edit this page
View Source
CreateSystemProxySettings(bool)
Declaration
public static SystemProxySettings CreateSystemProxySettings(bool proxyLoopback)
Parameters
| Type |
Name |
Description |
| bool |
proxyLoopback |
|
Returns
|
Edit this page
View Source
CreateSystemProxySettings(bool, IEnumerable<string>?)
Declaration
public static SystemProxySettings CreateSystemProxySettings(bool proxyLoopback, IEnumerable<string>? additionalBypassRules)
Parameters
Returns
|
Edit this page
View Source
CreateSystemProxySettings(bool, IEnumerable<string>?, MitmExclusionMode)
Declaration
public static SystemProxySettings CreateSystemProxySettings(bool proxyLoopback, IEnumerable<string>? bypassRules, MitmExclusionMode mode)
Parameters
| Type |
Name |
Description |
| bool |
proxyLoopback |
When true, localhost uses the proxy (platform-specific loopback rule).
|
| IEnumerable<string> |
bypassRules |
Extra rules in Merge, or the full authoritative list in
Replace.
|
| MitmExclusionMode |
mode |
Merge factory OS-bypass defaults, or replace them with bypassRules.
|
Returns
|
Edit this page
View Source
HostnameMatches(string, string)
Wildcard-aware hostname match (*.example.com).
Declaration
public static bool HostnameMatches(string hostname, string pattern)
Parameters
Returns
|
Edit this page
View Source
IsBuiltInSslBypass(string)
True when hostname matches factory OS-bypass or tunnel-only defaults.
Declaration
public static bool IsBuiltInSslBypass(string hostname)
Parameters
| Type |
Name |
Description |
| string |
hostname |
|
Returns
|
Edit this page
View Source
ShouldDisableSslDecrypt(string?)
Returns true when CONNECT should use SSL passthrough instead of MITM (Merge mode).
Declaration
public static bool ShouldDisableSslDecrypt(string? hostname)
Parameters
| Type |
Name |
Description |
| string |
hostname |
|
Returns
|
Edit this page
View Source
ShouldDisableSslDecrypt(string?, IEnumerable<string>?, IEnumerable<string>?)
Returns true when TLS should stay opaque (no MITM decrypt) using Merge.
Declaration
public static bool ShouldDisableSslDecrypt(string? hostname, IEnumerable<string>? userSkipHosts, IEnumerable<string>? userOnlyHosts)
Parameters
Returns
|
Edit this page
View Source
ShouldDisableSslDecrypt(string?, IEnumerable<string>?, IEnumerable<string>?, MitmExclusionMode)
Returns true when TLS should stay opaque (no MITM decrypt).
Merge: factory SSO/pinning hosts always skip, then user skip /
optional decrypt-only allowlist.
Replace: only userSkipHosts and optional
userOnlyHosts apply (factory hosts are not forced).
Declaration
public static bool ShouldDisableSslDecrypt(string? hostname, IEnumerable<string>? userSkipHosts, IEnumerable<string>? userOnlyHosts, MitmExclusionMode mode)
Parameters
Returns