What is the difference between Firewall, WAF and IPS🤔?

☝️ Firewall: ▪️ Controls traffic between networks ▪️ Allows or blocks communication according to IP, port, or protocol ▪️ Works on the Network Layer and Transport Layer only 🟩 Example: protecting a company’s network from unauthorized entry 🔐 Where is it used? ▪️ It is used as the first line of defense to protect networks ▪️ Prevents intruders from internal access ⚠️ But it does not understand the content of data at the application level (Application Layer) ✌️ Web Application Firewall (WAF): ▪️ Specializes in protecting websites ▪️ Detects attacks such as: ✳️ SQL Injection ✳️ XSS ▪️ Works on Layer 7 (Application Layer) 💻 Where is WAF used? ▪️ Ideal for protecting e-commerce sites ▪️ Prevents the exploitation of application vulnerabilities 🟩 Example: A site has been subjected to a database injection attack - WAF protects it. 👌 Intrusion Prevention System (IPS): ▪️ Monitors data traffic and prevents attacks in real time ▪️ Detects threats through hash signatures and behavior analysis ▪️ Protects against: ✳️ DDoS ✳️ Malware ✳️ Exploiting vulnerabilities ⚔️ Scope of protection: ▪️ Works on more than one layer (Network + Transport+ Application) ▪️ It is widely used in sensitive environments to prevent advanced attacks 🟩 Example: Preventing a DDoS attack on a company network