Proxy Server
- In Turkish
- Proxy Sunucusu
In short
A proxy server is an intermediary that receives network requests on behalf of clients or servers and passes them on, adding control, caching, or privacy.
What is a proxy server?
A proxy server sits between two parties in a network conversation and relays traffic between them. Instead of connecting directly to a website, a client sends its request to the proxy, which makes the request itself and passes the response back. Because all traffic flows through it, the proxy can log, filter, cache, or modify requests and responses.
The key distinction is whose side the proxy is on. A forward proxy works for clients: it sits in front of a group of users, such as a company network, and sends their requests out to the internet, so websites see the proxy's IP address rather than each user's. A reverse proxy works for servers: it sits in front of one or more backend servers, receives requests from the internet, and forwards them inside, often handling TLS, caching, compression, and load balancing so clients never talk to the backends directly.
Think of a forward proxy as a personal assistant who places calls on your behalf, and a reverse proxy as a company switchboard that answers every incoming call and routes it to the right department. Organizations use forward proxies to enforce browsing policies, cache common downloads, and log outbound traffic, and developers often configure one through the HTTP_PROXY and HTTPS_PROXY environment variables. Load balancers, API gateways, and CDNs are all built on the reverse proxy idea.
A proxy is often confused with a VPN. A typical proxy handles traffic for specific applications or protocols, such as a browser's HTTP requests, and doesn't necessarily encrypt it, while a VPN routes all of a device's traffic through an encrypted tunnel. For HTTPS, a forward proxy usually just opens a tunnel with the HTTP CONNECT method and can't read the encrypted content, unless it is set up to intercept TLS with its own trusted certificate.
Key takeaways
- A proxy server relays requests and responses between clients and servers.
- A forward proxy acts for clients and hides their IP addresses from the sites they visit.
- A reverse proxy acts for servers and hides the backend servers from clients.
- Proxies can cache, filter, log, and modify the traffic that passes through them.
- Unlike a VPN, a proxy usually covers specific apps or protocols and may not encrypt traffic.
Example
# Send one request through a forward proxy
curl -x http://proxy.internal.example:3128 https://example.com
# Or set the proxy for every tool that honors these environment variables
export HTTP_PROXY="http://proxy.internal.example:3128"
export HTTPS_PROXY="http://proxy.internal.example:3128"
export NO_PROXY="localhost,127.0.0.1,.internal.example" # skip the proxy for these
curl https://example.com # now goes through the proxy automaticallyReaders ask
What is the difference between a forward proxy and a reverse proxy?
A forward proxy sits in front of clients and makes requests to the internet on their behalf, hiding who the clients are. A reverse proxy sits in front of servers and receives requests from the internet on their behalf, hiding which backend server actually handles each request.
What is the difference between a proxy and a VPN?
A proxy usually relays traffic for specific applications, such as a browser, and may not encrypt it. A VPN routes all of a device's traffic through an encrypted tunnel to the VPN server.
Can a proxy server see my HTTPS traffic?
A normal forward proxy can see which host you connect to, but not the encrypted content, because it only tunnels the TLS connection. Some corporate proxies decrypt and inspect HTTPS traffic by installing their own trusted certificate on employees' devices.
Often compared
- VPN vs Proxy ServerA VPN encrypts all your device's traffic and sends it through a secure tunnel, while a proxy forwards only the traffic of apps set to use it, often unencrypted.
- Proxy vs Reverse ProxyA forward proxy sits in front of clients and sends their requests to the internet; a reverse proxy sits in front of servers and takes requests for them.
See also
- Reverse ProxyDevOps & Cloud, p. 44A reverse proxy is a server that sits in front of web servers, accepts client requests on their behalf, and forwards each request to the right backend server.
- VPNNetworking, p. 36A VPN is a technology that creates an encrypted tunnel between a device and another network, so traffic can travel privately across the public internet.
- Load BalancerDevOps & Cloud, p. 34A load balancer is a server or service that spreads incoming traffic across several backend servers so no single one is overloaded and the app stays available.
- CacheBackend & APIs, p. 8A cache is a fast, temporary storage layer that keeps copies of frequently used data so later requests can be served quickly without repeating slow work.
- IP AddressNetworking, p. 10An IP address is a numeric label assigned to each device on a network so that data can be routed to it, much like a postal address for a house.
- FirewallNetworking, p. 8A firewall is a security system that checks network traffic and allows or blocks it based on rules, acting as a barrier between trusted and untrusted networks.
Spotted a mistake or something missing on this page?Suggest an edit