xref: /aosp_15_r20/external/curl/docs/cmdline-opts/noproxy.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: noproxy
5*6236dae4SAndroid Build Coastguard WorkerArg: <no-proxy-list>
6*6236dae4SAndroid Build Coastguard WorkerHelp: List of hosts which do not use proxy
7*6236dae4SAndroid Build Coastguard WorkerAdded: 7.19.4
8*6236dae4SAndroid Build Coastguard WorkerCategory: proxy
9*6236dae4SAndroid Build Coastguard WorkerMulti: single
10*6236dae4SAndroid Build Coastguard WorkerSee-also:
11*6236dae4SAndroid Build Coastguard Worker  - proxy
12*6236dae4SAndroid Build Coastguard WorkerExample:
13*6236dae4SAndroid Build Coastguard Worker  - --noproxy "www.example" $URL
14*6236dae4SAndroid Build Coastguard Worker---
15*6236dae4SAndroid Build Coastguard Worker
16*6236dae4SAndroid Build Coastguard Worker# `--noproxy`
17*6236dae4SAndroid Build Coastguard Worker
18*6236dae4SAndroid Build Coastguard WorkerComma-separated list of hosts for which not to use a proxy, if one is
19*6236dae4SAndroid Build Coastguard Workerspecified. The only wildcard is a single `*` character, which matches all
20*6236dae4SAndroid Build Coastguard Workerhosts, and effectively disables the proxy. Each name in this list is matched
21*6236dae4SAndroid Build Coastguard Workeras either a domain which contains the hostname, or the hostname itself. For
22*6236dae4SAndroid Build Coastguard Workerexample, `local.com` would match `local.com`, `local.com:80`, and
23*6236dae4SAndroid Build Coastguard Worker`www.local.com`, but not `www.notlocal.com`.
24*6236dae4SAndroid Build Coastguard Worker
25*6236dae4SAndroid Build Coastguard WorkerThis option overrides the environment variables that disable the proxy
26*6236dae4SAndroid Build Coastguard Worker(`no_proxy` and `NO_PROXY`) (added in 7.53.0). If there is an environment
27*6236dae4SAndroid Build Coastguard Workervariable disabling a proxy, you can set the no proxy list to "" to override
28*6236dae4SAndroid Build Coastguard Workerit.
29*6236dae4SAndroid Build Coastguard Worker
30*6236dae4SAndroid Build Coastguard WorkerIP addresses specified to this option can be provided using CIDR notation
31*6236dae4SAndroid Build Coastguard Worker(added in 7.86.0): an appended slash and number specifies the number of
32*6236dae4SAndroid Build Coastguard Workernetwork bits out of the address to use in the comparison. For example
33*6236dae4SAndroid Build Coastguard Worker`192.168.0.0/16` would match all addresses starting with `192.168`.
34