Skip to main content

Padding Tutorials

Security and hardening

Lock down servers, services and applications against the attacks that actually happen.

5 tutorials

All in this category

  • How to Prevent SQL Injection in Python and Node.js

    You will write a login lookup that an attacker can break with one line of input, watch it fail, fix it with parameterised queries in both Python and Node.js, and learn the cases where parameters are not enough.

    Intermediate · 14 min · Security and hardening

  • How to Harden SSH on Ubuntu 26.04: Keys Only, No Root, Custom Limits

    You will switch an Ubuntu 26.04 server's SSH daemon to key-only logins, turn off root login, limit who can connect and how many guesses they get, and test the change without locking yourself out.

    Intermediate · 12 min · Security and hardening

  • How to Block Brute-Force Logins with Fail2ban

    You will install Fail2ban 1.1 on Ubuntu 26.04, set it up to ban any address that keeps failing SSH logins, test the rule against a sample log line, and learn how to see and undo bans.

    Intermediate · 11 min · Security and hardening

  • How to Audit Your Linux Server's Security with Lynis

    You will run a Lynis 3.1 security audit on an Ubuntu 26.04 server, read its hardening score and findings, fix one of them, and run it again to see the score move.

    Intermediate · 11 min · Security and hardening

  • How to Add Security Headers to Your Site in Nginx

    You will add the HTTP security headers every site should send, keep them in one reusable file, avoid the add_header inheritance trap, and roll out Content-Security-Policy and HSTS in the safe order.

    Intermediate · 14 min · Security and hardening