Understanding Web Security: A Comprehensive Guide for Developers