Share via


<bypasslist> Element

Lists addresses that do not use a proxy.

<configuration>
   <system.net>
      <defaultProxy>
         <bypasslist>

<bypasslist>
</bypasslist>

Child Elements

Element Description
<add> Adds an address to the bypass list.
<clear> Clears the bypass list.
<remove> Removes an address from the bypass list.

Remarks

The bypass list contains regular expressions that describe URIs that WebRequest instances access directly instead of through the proxy server.

Example

The following example adds two addresses to the bypass list. The first bypasses the proxy for all servers in the contoso.com domain; the second bypasses the proxy for all servers whose IP addresses begin with 192.168.

<configuration>
   <system.net>
      <defaultProxy>
         <bypasslist>
            <add address="[a-z]+\.contoso\.com" />
            <add address="192\.168\..*" />
         </bypasslist>
      </defaultProxy>
   </system.net>
</configuration>

Configuration File

This element can be used in the application configuration file, the machine configuration file (Machine.config), and the publisher policy file.

See Also

<add> Element for <bypasslist> | <defaultproxy> Element | Network Settings Schema