apify / proxy-chain

Node.js implementation of a proxy server (think Squid) with support for SSL, authentication and upstream proxy chaining.
https://www.npmjs.com/package/proxy-chain
Apache License 2.0
804 stars 138 forks source link

Proxy only certain requests #534

Closed johnwpz closed 1 week ago

johnwpz commented 2 months ago

Is there a way to proxy only certain requests?

jirimoravcik commented 2 months ago

You can try to omit upstreamProxyUrl from the return value of prepareRequestFunction, this way, no upstream proxy will be used.