Web

Web Security

Web security is about protecting sites and their users from attacks. A few ideas cover most of the basics every developer should know.

Validate input

Never trust data from a user. Checking and escaping input is how sites prevent injection attacks that would otherwise run unintended code.

Use HTTPS

Encrypting traffic with TLS stops attackers on the network from reading or altering data in transit.

Authentication

Store passwords hashed (never in plain text) and keep sessions safe so accounts can't be hijacked.