A vpn works by acting as a gateway between you and your connection provider. For instance, lets take it this way, your internet connection - a vpn gateway that hides your IP and converts it into any other country's IP - Web. It secures your anonymity and saves you from the snooping eyes of hackers who can follow your browsing trail.