proxy server in networking

What is a Proxy server in networking? | How it works?


The word proxy means pretend to something else than actual.  In some cases, the actual identity should be hidden for security and other reasons.  A proxy server in networking is a solution for hiding client identity to the server.  On a daily basis you might be browsing sites, but never know how your information is captured by the network.   A company may provide you access via VPN so that there will not be any exposure of the confidential information. 

What is a Proxy server?

A proxy server is an intermediate machine between the two communicating parties.  One side connects to the private network, such as a company LAN, and another side it connects to the internet.   When you make a request to browse a website, the HTTP request routes via proxy towards the server on the public internet. The response comes via the same proxy server to your web browser.  Looks a simple job, but in a real scenario, a proxy server provides many functionalities to add values to a business or end-user.

How does a proxy server work?

Till now maybe you are not aware whether you have used a proxy server or not. As this is transparent for you.  To understand how it operates, lets first understand what happens when you type a web address in the browser and hit the enter key? 

A request message goes to the server via the internet. On the internet, each machine has an IP address (maybe more than one).  An IP address is similar to the real-world postal address. When someone needs to send a post to you, the sender mentions your address on the envelope and posts via a post office.  May also mentions his own address, so that if the courier guy can not deliver, you will get a return of the same.

Similarly, on the internet, a request has a destination IP address (webserver)  and source IP address (client or your machine).  The server process the request and sends the response back to you.  Till here no proxy. 

With a proxy, requests go to the proxy server first. For that, the proxy server has its own IP address and browser (or router in office) knows, to forward to the proxy.   Then the proxy server initiates a new request with your data towards the webserver. Gets the response and forwards the same to you. So that you can see the response content.

Looks the same isn’t? So what the hell proxy server is doing?  The magic is in the way, it can modify the request and deliver the same response. A proxy can change the source IP address, to that server never know about you.  It can block access to some websites or other resources. May use encryption before sending a request, to secure communication.

What are the advantages of a proxy server?

When using a middle man with great qualities and intelligence. It always adds values.  Companies providing proxies generally covers all use cases for a company or an Individual.   Depends on your need you can enable or disable a function.  Here we will cover the advantages mainly from a company’s point of view.  A company is always at a high risk of the security breach. So a good proxy can add many advantages to the operations.

Privacy –  The very basic advantage.  A company may choose to hide the identity of its employees and itself to some web servers.  Suppose a marketing company wants to get details from a server.  With a proxy, the server can not find who is requesting the information.

Content filtering –  A proxy server can parse the response from the server and it may stop content going to the client.  It may be because content may have sensitive or unauthorized data.

Better Bandwidth Utilization –   The response may be cached by the proxy. So that is any other request comes, the same content can be delivered to the client without any request to the internet.  This looks simple, but it requires intelligence, as all responses can not be cached. e.g any live update of the cricket score can’t.

Restrict uploads –  An employee in a company may try to upload a local file to a personal server.  It may be direct FTP or an attachment in a mail.  The proxy can detect such kind of content and stop uploading the file to any public server.

Access to restricted resources –  Restrict resources means, you can not access an outer server from your computer.  This may be because of server has blocked the IPs you are using. But if you use a proxy, your actual IP will be hidden and you get access to resources.

Is Proxy use always good?

The answer is in use case why you need a proxy?   If yes, then go for a well-known proxy. The cheaper options may capture your information and will use for any other purpose.  Generally, a normal home user may not need a proxy at any time.  But maybe due to any virus attack from your computer, your IP has been blacklisted by some of the servers you were working on.  One option change an IP, or just use a proxy for time being until IPs are again whitelisted.