What is Firewall?
Definition
A firewall is a security system that monitors and controls incoming and outgoing network traffic based on predetermined rules. In web hosting, firewalls protect your server from unauthorised access, hacking attempts, malware, and malicious traffic. Web Application Firewalls (WAFs) specifically protect websites from common attacks like SQL injection and cross-site scripting.
Why It Matters
- First line of defence against hacking attempts
- Blocks malicious traffic before it reaches your site
- Prevents data breaches and unauthorised access
- WAFs protect against common web vulnerabilities
- Essential for meeting security compliance standards
How It Works
Firewalls sit between your server and the internet, inspecting every incoming request. Network firewalls filter traffic by IP address, port, and protocol. Web Application Firewalls (WAFs) go deeper, examining HTTP request content for malicious patterns like SQL injection, XSS attacks, and file inclusion exploits. When suspicious traffic is detected, the firewall blocks it while allowing legitimate visitors through. Rules can be customised and are constantly updated to address new threats.
Pros & Cons
Advantages
- Blocks attacks before they reach your application
- Reduces server load from malicious traffic
- Protects against known vulnerabilities
- Can be managed or automated by your host
- Logs provide valuable security intelligence
Disadvantages
- Can occasionally block legitimate traffic (false positives)
- Advanced WAFs can be expensive
- Misconfigured rules may break functionality
- Not a complete security solution on its own
- Some attacks bypass basic firewalls
Common Misconceptions
- !A firewall makes you completely secure (It's one layer of many)
- !All firewalls are the same (Network vs. application firewalls serve different purposes)
- !Free firewalls are adequate (Paid WAFs offer significantly better protection)
- !Firewalls slow down websites (Modern firewalls add negligible latency)
Do You Need Firewall? Checklist
Consider firewall if any of these apply to you:
- Your host provides server-level firewall protection
- A WAF is active for your website
- Firewall rules are regularly updated
- You've reviewed firewall logs for suspicious activity
- Custom rules are configured if needed
- False positive handling is in place
Recommended Hosts for Firewall
Kinsta
Google Cloud Armor WAF with enterprise-grade protection
SiteGround
Custom WAF with AI-driven threat detection
Frequently Asked Questions
What is the difference between a firewall and a WAF?
Do I need a firewall if my host provides one?
Does Cloudflare act as a firewall?
Can a firewall block legitimate users?
What is a WAF rule set?
How do I know if my firewall is working?
What attacks does a WAF prevent?
Related Terms
Need Help Choosing?
Use our calculator to find the perfect hosting plan for your needs.
Try Calculator