xref: /curl/docs/cmdline-opts/noproxy.md (revision 2494b8dd)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: noproxy
5Arg: <no-proxy-list>
6Help: List of hosts which do not use proxy
7Added: 7.19.4
8Category: proxy
9Multi: single
10See-also:
11  - proxy
12Example:
13  - --noproxy "www.example" $URL
14---
15
16# `--noproxy`
17
18Comma-separated list of hosts for which not to use a proxy, if one is
19specified. The only wildcard is a single `*` character, which matches all
20hosts, and effectively disables the proxy. Each name in this list is matched
21as either a domain which contains the hostname, or the hostname itself. For
22example, `local.com` would match `local.com`, `local.com:80`, and
23`www.local.com`, but not `www.notlocal.com`.
24
25This option overrides the environment variables that disable the proxy
26(`no_proxy` and `NO_PROXY`) (added in 7.53.0). If there is an environment
27variable disabling a proxy, you can set the no proxy list to "" to override
28it.
29
30IP addresses specified to this option can be provided using CIDR notation
31(added in 7.86.0): an appended slash and number specifies the number of
32network bits out of the address to use in the comparison. For example
33`192.168.0.0/16` would match all addresses starting with `192.168`.
34