DEV Community

Cover image for What exactly is the best way to keep your API secure

What exactly is the best way to keep your API secure

Helio on April 08, 2024

In this article, we will discuss several possible ways to protect the API from abuse. As the old saying goes, there is no such thing as a completel...
Collapse
 
go4webdev profile image
Go4WebDev • Edited

I have played with isolate API, auth and database servers from the internet. Which means there is no direct access from the browser to the API etc. You must contact the Web server and then forward the query to the "isolated safe box" by using internal IP-addresses.

This does not mean that encryption is unnecessary, but it adds an extra layer of security...