Preparing your workspace
Web security protects users, applications, data, and communication from unauthorized access, manipulation, and abuse.
Basic web security starts with understanding secure communication, authentication, authorization, input validation, safe handling of cookies, protection against common attacks, and careful management of secrets. Developers should never trust user-controlled input and should always distinguish between proving who a user is and deciding what that user is allowed to do. More detailed security topics can be studied later in the dedicated Authentication and Security category.
A course platform should use HTTPS, validate submitted data, authenticate users, check permissions before protected actions, and avoid exposing secrets to browser code.
Browser ↓ Untrusted Input Server ↓ Validate ↓ Authenticate ↓ Authorize ↓ Process Safely Response
The application validates untrusted input and applies authentication and authorization before performing protected actions.