How to protect your website's admin privileges from unauthorised access?

NOTE: This tutorial is for educational purposes only so the reader is warned to apply this knowledge at their own risk and responsibility. This blog shall not be accounted for any violations or unauthorized actions being practiced by anyone. SQL Injection is one of the most frequent security vulnerabilities on the net. Here I'll try to describe in detail this kind of vulnerabilities with examples of bugs in PHP and possible alternatives. (image source: pixabay.com) If you are not so confident with encoding languages and web solutions you may well be wondering what SQL stay for. Well, is actually an acronym for Organised Query Language (pronounced "sequel"). It's "de facto" the conventional language to access and manipulate data in directories. Nowadays most websites count on the database (usually MySQL) to maintain and gain access to data. Our example will be a common sign in form. Internet surfers see those login forms every day, you put you...