Skip to content

Web Security Textbook

A free, self-paced textbook in 6 chapters. Read a chapter, then drill it with the 162 companion flashcards using spaced repetition.

6 chapters · 162 cards · Updated

Chapters

  1. 1Foundations of Web Security

    Web security is the practice of protecting web applications, the users who interact with them, and the data they handle from malicious access, misuse, and disruption. Security fail...

  2. 2Common Web Vulnerabilities

    Despite decades of awareness, the same families of flaws keep appearing in web applications. Injection attacks lead the list. SQL injection happens when untrusted input is concaten...

  3. 3Defensive Coding Practices

    Most web vulnerabilities can be prevented at the point where untrusted data meets code. Input validation is the first line: incoming data should be checked for expected type, forma...

  4. 4Authentication, Sessions, and Password Security

    Authentication verifies identity, and session management maintains that authenticated state across subsequent requests, usually by issuing a session ID cookie. The two must not be...

  5. 5HTTP Headers, CORS, and Transport Security

    The browser is a willing ally when given the right instructions. Security headers are HTTP response headers that add browser-side protections with little implementation effort. Con...

  6. 6Industry References and Token-Based API Security

    Several community references anchor day-to-day security work. The OWASP Top 10 is a regularly updated list of the ten most critical web application security risks, published by the...

← Back to the Web Security deck