This document discusses web architecture, mechanisms, and threats. It describes the basic components of web architecture including HTML, HTTP, URIs, cookies, and the three-tier architecture. It also outlines some common web attacks like injection, XSS, and CSRF. Finally, it discusses security controls at the application layer through input validation, authentication, and sessions management and at the network layer using firewalls, IDS, WAF, and centralized logging.