What Is a Proxy? A Simple Explanation for Beginners

 

Understanding Proxies – The Simplest Way I Learned It


When I first heard the word proxy, I just thought — "Okay, it’s some kind of middleware between me and the server." But I didn’t really understand how it works, or why it's used.

Now after deep diving, here’s how I understood it — and I’m writing this blog for anyone like me who just wants a simple explanation.


The Basic Idea of a Proxy : 

When you request something from the internet — like visiting google.com — you usually think your device talks directly to Google.
But with a proxy, your request first goes to the proxy server, and then the proxy sends it to Google.
The response comes back to the proxy, and then it sends it to you.

So the proxy is standing between you and the actual server







Real-Life Analogy: Your Home Wi-Fi Router : 

    Let me explain using my home Wi-Fi example:

  • When I connect to my home router, it gives me a private IP like 192.168.x.x.

  • But the internet doesn’t recognize that. The internet only works with public IPs.

  • So my router uses something called NAT (Network Address Translation).

    • It converts my private IP to its own public IP.

    • Then it makes the request on my behalf.

 Guess what?
My router is acting like a mini proxy!


 What Happens When I Search for google.com?

Let’s break it down step-by-step:

  1. I type google.com in my browser.

  2. My device uses DNS to convert that domain name into a public IP like 142.250.182.46.

  3. My device sends a request to that IP.

  4. But I have a private IP (192.168.1.5), so my router converts it to a public IP using NAT.

  5. The internet sends the response (HTML, data, etc.) back to my router’s public IP.

  6. Router sends that back to me.

This whole flow is exactly how a basic forward proxy works.


Why Use a Proxy Then?

While NAT handles private-to-public IP translation, proxies are used for more advanced purposes:

  •  To hide your IP (for privacy)

  • To block websites (in schools or companies)

  • To filter or monitor traffic

  •  To cache data and improve speed

  •  To balance load between servers (in big apps)


Are You Using a Proxy Without Knowing?

If you’re connected to:

  • A company network

  • A  college Wi-Fi

  • A VPN

Then YES, you may be using a proxy already.


What is a Proxy?

A proxy is a middleman between you and the internet server.

You send a request → the proxy forwards it → brings the result back to you.

  1.  It hides your original identity
  2.  It can block or allow requests
  3.  It can monitor what you do
  4.  It can even fake your location (we’ll see how below)

Real-Life Example: TikTok Banned in India — But Still Works with VPN?

We all know that TikTok is banned in India.If you're using normal internet in India, you can’t open the TikTok website or app — it’s blocked at the IP or DNS level.

But some people use VPNs to access TikTok.

So what is really happening here?


 VPN = Encrypted Proxy : 

A VPN (Virtual Private Network) is basically an advanced proxy server with encryption.

Here’s how it works:

  • You open your VPN app (like ProtonVPN, NordVPN).

  • It connects to a server in another country, like the USA.

  • Now, when you open TikTok:

    • TikTok sees the VPN server's IP (from USA)

    • It does not know you’re from India

  • TikTok opens normally.


What About Companies or Colleges?  

If you're using your college Wi-Fi or office network, you might notice that:

  • Some websites are blocked (e.g., YouTube, Instagram)

  • Some apps don’t work properly

  • Everything feels "watched"

That’s because your traffic goes through their proxy servers.

These proxies can:

  • Block sites based on categories

  • Log your browsing history

  • Filter certain keywords

You may not even know this is happening — because some proxies work silently in the background.



Types of Proxy Server :


  1. Reverse Proxy Server
  2. Forward Proxy Server 
  3. Web Proxy Server
  4. Anonymous Proxy Server
  5. Highly Anonymity Proxy
  6. Transparent Proxy
  7. CGI Proxy
  8. Suffix Proxy
  9. Distorting Proxy
  10. Tor Onion Proxy
  11. DNS Proxy
  12. Rotating Proxy

What is Forward Proxy : 

A forward proxy, also referred to as a "proxy server," or simply a "proxy," is a server that sits in front of one or more client computers and serves as a conduit between the clients and the internet. The forward proxy receives the request before sending it on from the client machine to the internet resource. On behalf of the client machine, the forward proxy then sends the request to the internet and returns the response.

A forwards proxy is mostly used for:

  1. Client Anonymity
  2. Caching
  3. Traffic Control
  4. Logging
  5. Request/Response Transformation
  6. Encryption



What is Reverse Proxy : 


A server that sits in front of one or more web servers and serves as a go-between for the web servers and the Internet is known as a reverse proxy. The reverse proxy receives the request before sending it on to the internet resource for the client. After sending the request to one of the web servers, the reverse proxy receives the response from that server. The response is then sent back to the client by the reverse proxy

A reverse proxy is mostly used for:

  1. Server Anonymity
  2. Caching
  3. Load Balancing
  4. DDoS Protection
  5. Canary Experimentation
  6. URL/Content Rewriting



Comments

Post a Comment

Popular posts from this blog

How to Implement API Rate Limiting in a NodeJS Express Application

Optimizing API Performance with NodeCache in Node.js