Member-only story
Why is Nginx called a “reverse” proxy?
3 min read 5 days ago
Both forward proxies and reverse proxies act as intermediaries in network communications, but they serve different purposes. Let’s break them down.
🔹 What is a Forward Proxy?
A forward proxy (or just proxy server) is a server that sits between a client (such as a web browser) and the internet. It intercepts client requests, forwards them to the destination server, and then returns the response back to the client.
🔸 How a Forward Proxy Works:
- A user makes a request to access a website (e.g.,
example.com
). - The request is first sent to the forward proxy server.
- The forward proxy evaluates the request and decides whether to allow or block it.
- If allowed, the proxy forwards the request to
example.com
. example.com
responds to the proxy, and the proxy then returns the response to the user.
🔹 Why Use a Forward Proxy?
A forward proxy is commonly used for:
1️⃣ Protecting Clients (Anonymity and Security)
- Masks the client’s IP address, making it difficult for websites to track the user.