Protect web applications with a firewall
Thousands of websites are hacked every day due to misconfigurations or weak code. A web application firewall (WAF) is one of the best ways to protect your website from online threats.
If your website is available on the Internet, you can use online tools to scan your website for vulnerabilities and understand how secure it is. Don’t worry if it’s an intranet website. You can use the open source Nikto web scanner.
Commercial WAFs can be expensive, so if you’re looking for a free solution to protect your website using a WAF, the following open source web application firewalls can help.

mod security
TrustWave’s ModSecurity is one of the most popular web application firewalls and supports Apache HTTP, Microsoft IIS, and Nginx.
ModSecurity’s free rules can help you if you’re looking for protection for:
- cross-site scripting
- trojan horse
- Information leak
- SQL injection
- Common web attacks
- malicious activity
ModSecurity does not have a graphical interface. If you are looking for a graphical interface, consider using WAF-FLE . You can save, search, and view events in the console.


nakshi
NAXSI is Nginx Anti-XSS and SQL Injection. As you might expect, this is only for Nginx web servers and is primarily intended to protect against cross-site scripting and SQL injection attacks.
NAXSI only filters GET and PUT requests, and the default configuration acts as a DROP firewall by default, so you must add an ACCEPT rule to function properly.

web night
WebKnight WAF is for Microsoft IIS. This is an ISAPI filter that protects your web server by blocking malicious requests. WebKnight helps ensure the security of:
- buffer overflow
- Directory traversal
- character code
- SQL injection
- block bad robots
- hot link
- Forcible
- Even more…

The default configuration logs all blocked requests and can be customized based on your needs. WebKnight 3.0 adds an administrative web interface that allows you to customize rules and perform administrative tasks such as statistics.
shadow demon
The Shadow Daemon detects, records, and prevents web attacks by filtering requests with malicious parameters. This WAF comes with its own interface that allows you to perform administration and manage it. It supports PHP, Perl, and Python language frameworks.
The following attacks can be detected.
- SQL injection
- XML injection
- code injection
- command injection
- XSS
- backdoor access
- Incorporating local/remote files
Open source is free, but you don’t get support, so you have to rely on expertise and community support. So, if you are looking for a commercial WAF, see below.
- Cloudflare (cloud-based)
- Incapsula (cloud-based)
- F5 ASM
- TrustWave ModSecurity Commercial Rules
- stack path
- SUCURI (cloud type)
I hope this article has given you some ideas about open source web application firewalls for different platforms.