What is a firewall?
A firewall, named after the fire-resistant wall in buildings, is a security measure that monitors the traffic between a computer, network, server or website and the outside world. Based on rules, the firewall lets traffic through or blocks it. That keeps attackers, malware and unwanted connections out, and often keeps in data that must not leave.
There are several types. A network firewall protects your office network. A software firewall runs on your computer. For websites, the web application firewall or WAF matters most: it specifically protects against attacks on websites and online shops.
How does a firewall work?
A firewall examines every incoming request and compares it against rules. A WAF for your website does the following, among other things:
- Blocking known attacks: attempts to inject code into forms or exploit weaknesses in plugins.
- Limiting login attempts: bots that try thousands of passwords are shut out after a few failed attempts.
- Filtering suspicious traffic: based on origin, behaviour or known malicious IP addresses.
- Absorbing overload: in a DDoS attack, where a site is flooded with traffic, a firewall at the edge of the network stops a lot of it.
A WAF can run on the server, as a plugin in WordPress, or in front of your website, at a service such as Cloudflare. The latter stops attacks before they reach your server.
Why is a firewall important for your business?
Websites are attacked automatically around the clock, not because they are important, but because bots scan the entire internet for weak spots. A hacked website can leak your customer data, send visitors to scam sites or disappear from Google. A firewall catches most of those attacks.
A firewall is only one layer, though. It does not protect against an employee entering their password on a fake page, as in phishing, or against an outdated plugin that is never updated. Updates, strong passwords with two-step verification, backups and good hosting are all part of it. How AI is changing both attack and defence is explained in our article AI and cybersecurity.
Also make sure your firewall does not block useful visitors. Settings that are too strict can block search engines or AI crawlers, making you harder to find. That is a point to watch for GEO.
Example of a firewall
An online shop notices that the login page of its admin area is visited thousands of times every night. These are bots trying passwords. After a web application firewall is switched on, those bots are blocked for a day after five failed attempts, and known malicious addresses are stopped before they reach the website. The server gets quieter and the site faster for real customers.
Firewall or antivirus: what is the difference?
A firewall monitors incoming and outgoing traffic and stops unwanted connections. An antivirus program checks files and programs already on your device or server and looks for malicious software. The firewall is the doorman at the entrance, the antivirus the guard inside. You need both.
Frequently asked questions about firewalls
Does my website need a firewall?
Yes. Every website is scanned and attacked automatically. A web application firewall stops most of those attacks. For WordPress sites with plugins and an admin area, it is definitely recommended.
What is a WAF?
WAF stands for web application firewall. It is a firewall that specifically protects websites and web applications, including against exploited weaknesses, code injection and password guessing.
Does a firewall make my website slower?
You will hardly notice a well-configured firewall. A firewall at the edge of the network, as with Cloudflare, can even make your site faster, because it stops malicious traffic before it puts a load on your server.
Cookie policy