Secure web gateways (SWG) filter user-initiated internet activities and enforces security policy compliance. SWG rely on events and network activity to deliver functions such as URL filtering, malicious-code detection and filtering, and control over SaaS applications.