Although web vulnerabilities can seem insurmountable, here are some basic defensive measures that can reduce the risk of attack.

Be aware of the latest trends (OWASP) (Security Sheppard)

Use encryption (SSL/TLS) (Let’s Encrypt)

Sanitize and validate all form inputs

Update!