TechKnowSurge
VideoSecurityFree

Reverse Proxy Server

A reverse proxy server sits in front of backend infrastructure to protect servers, balance loads, and offload processing tasks such as encryption, compression, and caching. Unlike a forward proxy, which shields clients from external servers, a reverse proxy shields backend servers from direct client exposure.

Complete this video to capture a CTF flag worth 1 point.

About this video

Proxy servers function as intermediaries between clients and servers, and their placement within a network determines whether they protect the client side or the server side of a connection. A forward proxy sits between internal users and the internet, routing outbound traffic through a single point where web filtering, malware scanning, and client identity concealment can be applied. External servers see only the proxy, not the individual clients behind it, which provides both security and centralized traffic control for the organization. A reverse proxy operates from the opposite direction, positioning itself in front of backend server infrastructure rather than in front of users. Clients connect to the reverse proxy directly, typically over a standard port such as 443, while the actual backend servers remain hidden and inaccessible to those clients. This separation protects backend systems from direct exposure and creates a single controlled entry point for all inbound requests. Beyond security, reverse proxies serve a wide range of operational purposes that reduce the burden on backend servers. Load balancing distributes incoming requests across multiple servers to prevent any single machine from becoming a bottleneck. Caching stores frequently requested content closer to the client to speed up delivery, functioning similarly to a content delivery network. Encryption and compression can be handled entirely at the reverse proxy layer, freeing backend servers from those processing demands. Additional capabilities include web application firewalling to filter malicious traffic, authentication enforcement before requests reach protected resources, and A/B testing by routing traffic to servers running different application versions to compare performance outcomes.

What you'll learn

What's covered

Reverse Proxy Servers

Key terms

Proxy Server
An intermediary server that handles requests between clients and other servers, providing anonymity and content filtering.
Forward Proxy
A proxy server that sits between clients and the internet, forwarding client requests to external servers on the client's behalf.
Reverse Proxy
A proxy server positioned in front of backend servers that intercepts client requests to provide load balancing, anonymity, or protection for those servers.
Load Balancer
A device or software that distributes incoming network traffic across multiple servers to ensure availability and performance.
Web Application Firewall
WAF
A firewall that filters and monitors HTTP traffic to and from a web application to prevent attacks.
SSL Offloading
The practice of terminating SSL/TLS encryption at a proxy or load balancer so that backend servers are relieved of encryption processing overhead.
Caching
The process of storing copies of content on a server so future requests can be served faster without retrieving the original source.

Topics

Reverse Proxy Forward Proxy Load Balancing Ssl Offloading Web Application Firewall Caching Networking

Transcript

A proxy server creates an in-between, in between a user and a server. Largely what it does is help protect those end users by doing maybe some sort of web filtering, or perhaps it's doing some sort of malware filtering, or there are other services that it provides. But we can also use it on the server side, and that's what we're going to talk about here: a reverse proxy server.

The forward proxy

If I wanted to set up some sort of web filtering, then maybe I would set up a proxy server. I would block all other web traffic from going through the firewall unless it's coming from the proxy server. Now users on my network have to go through the proxy server in order to get out to the outside world, and then I can do web filtering on this proxy server. It's just one example of how we can protect our network and our infrastructure and our organizations.

In this scenario, what's happening is that the client is actually connecting to the proxy server, and the proxy server is creating a connection to the web server. So now what the web server sees is just the information coming from the proxy server. They don't see the client — it obfuscates the client on the back end. So not only are we doing web filtering, but we're protecting this client. This would be what we call just a forward proxy server.

The reverse proxy

But there are reverse proxy servers as well. That's where the proxy server is sitting out in front of the server. So now, as an organization, we do see the end client here and we're communicating with the end client, but the end client doesn't see the server on the back end. It's just a different perspective of this. It's still sitting between the client and the server, but it's working to protect the servers on the back end, not necessarily protecting the client on the front end.

Here would be a common reverse proxy setup. We have our server right here that's set up in front — this is the proxy server. End users would then be connecting, maybe, if this is a web server, to port 443 on this front end, and then this is making a connection to other back-end servers.

Why you would put a proxy in front

There are many reasons why we would want to set up a proxy server in front of this bank of servers that we have.

  • Maybe we're using it for a content delivery network, so that it can be cached at other locations.
  • Maybe we're doing it for some sort of load balancing, so we can load balance between many servers on the back end.
  • Maybe it's doing some sort of caching, like a CDN would do caching. Maybe it's just doing some caching on the front end, offloading some of the duties that these web servers have onto some front-end server.
  • It could be doing something like compression or encryption, so the web servers don't have to handle it. It can be handled on the proxy server instead, as it makes a connection to those end users.
  • Maybe it's doing some sort of application firewall, a web application firewall up front.
  • Or maybe it's doing some sort of A/B testing. Each one of these servers could actually be hosting a different website, and we could test which one is actually producing the best results. That's what A/B testing is.
  • And then maybe it's doing some sort of authentication.

There are lots of things that we could offload to this proxy server. Whatever the case may be, a lot of this is just offloading some sort of aspect. For instance, these servers may be overtaxed and have a lot going on on them, and so instead of sending clients directly to these machines, this might offload some of those aspects, like doing the encryption or compression or those types of duties.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →