SQL (Structured Query Language) is a language that allows us to interact with databases. Modern web applications use databases to manage data and display dynamic content to readers.

SQL injection, or SQLi, is an attack on a web application by compromising its database through malicious SQL statements.

As it’s a common attack, let’s try to learn more about what it is, how it happens, and how to defend yourself from it.

Ready? Let’s dive in!