NO_PROXY (NO_PROXY)
NO_PROXY is an environment-variable convention for destinations that should bypass a configured proxy. Its matching and precedence are client-dependent; it is a routing exception list, not proof that all traffic from a machine is direct.
Explanation
Use the implementation’s definition
HTTPX documents NO_PROXY as a comma-separated list of hostnames or URLs and uses environment variables by default. It also documents trust_env=False for ignoring environment configuration. These are HTTPX behaviors; other tools and versions must be checked rather than assumed to interpret every value identically.
Why a configured proxy can appear unused
An application can have a proxy environment variable while a destination matches its exception list. In that case, successful access may reflect a direct request. A browser using its own settings is also not proof that a separate scheduled process uses the same environment. Inspect the actual application process and target.
An authorized internal-service example
A team may intentionally route external requests through a managed proxy while accessing an approved internal service directly. The exception should express that intended route and be verified against the deployed client. This example describes an administrative routing choice, not a technique for evading organizational controls.
Keep route testing and TLS settings distinct
Record which proxy and exception settings are effective, then compare connection logs or an authorized destination’s observations. Do not disclose credentials embedded in proxy URLs. In HTTPX, ignoring the environment affects more than just one variable, so review the application configuration as a whole before changing trust_env in production.
Related concepts
References
Sources checked on November 19, 2026. Examples illustrate concepts and are not proxy-service measurements.
Frequently Asked Questions
No. It is a convention, and matching details should be checked for the actual client and version.
No. Only applications that read and apply that configuration are affected.
No. A matching exception may have produced a direct connection. Verify the actual path.