<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/j1xdx8k4p" -->

---
title: flowd/phirewall: Phirewall is a PHP based application...
description: Phirewall is a PSR-15 middleware for PHP that provides application-layer security protection against brute force, DDoS, SQL injection, XSS, and bot attacks....
canonical: https://daily.dev/posts/j1xdx8k4p
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: flowd/phirewall: Phirewall is a PHP based application firewall that provides a PSR-15 middleware. | daily.dev
og:description: Phirewall is a PSR-15 middleware for PHP that provides application-layer security protection against brute force, DDoS, SQL injection, XSS, and bot attacks....
og:url: https://daily.dev/posts/j1xdx8k4p
og:image: https://api.daily.dev/og/posts/J1Xdx8K4P.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# flowd/phirewall: Phirewall is a PHP based application firewall that provides a PSR-15 middleware.

**[PHP Dev](https://daily.dev/sources/phpdev)** · [@damienseguy](https://daily.dev/damienseguy) · 2 upvotes · 0 comments

## Summary

Phirewall is a PSR-15 middleware for PHP that provides application-layer security protection against brute force, DDoS, SQL injection, XSS, and bot attacks. It's framework-agnostic, supports multiple storage backends (in-memory, APCu, Redis), and offers features like rate limiting, fail2ban-style auto-banning, OWASP Core Rule Set integration, and PSR-14 event observability. The library includes 15 runnable examples covering common attack scenarios and production deployment patterns.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/flowd/phirewall>

## Similar posts on daily.dev

- [I put a crowd-sourced firewall in front of my exposed homelab, and it started blocking attacks on day one](https://daily.dev/posts/i-put-a-crowd-sourced-firewall-in-front-of-my-exposed-homelab-and-it-started-blocking-attacks-on-da-czyhrpece) · XDA Developers · 1 upvotes · 1 comments
- [Getting started with UFW: The Uncomplicated Firewall strategy](https://daily.dev/posts/getting-started-with-ufw-the-uncomplicated-firewall-strategy-jijztmtg9) · All Things Open · 1 upvotes · 0 comments
- [What Firewalls Really Do and Why Every Network \(Still\) Needs Them](https://daily.dev/posts/what-firewalls-really-do-and-why-every-network-still-needs-them-bpgz1jknd) · freeCodeCamp · 3 upvotes · 0 comments
- [Create Vercel Firewall rules with natural language](https://daily.dev/posts/create-vercel-firewall-rules-with-natural-language-nteq9b4v7) · Vercel · 1 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#cyber](https://daily.dev/tags/cyber), [#php](https://daily.dev/tags/php), [#redis](https://daily.dev/tags/redis)

[View this post on daily.dev](https://daily.dev/posts/j1xdx8k4p)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/j1xdx8k4p","headline":"flowd/phirewall: Phirewall is a PHP based application firewall that provides a PSR-15 middleware.","text":"Shared: flowd/phirewall: Phirewall is a PHP based application firewall that provides a PSR-15 middleware.","url":"https://daily.dev/posts/j1xdx8k4p","datePublished":"2026-02-10T09:32:28.958Z","dateModified":"2026-02-10T09:33:03.863Z","author":{"@type":"Person","name":"Damien seguy","url":"https://daily.dev/damienseguy","image":"https://media.daily.dev/image/upload/s--nPbjKqol--/f_auto,q_auto/v1698422671/avatars/avatar_G85JhYcDxAg024Omc8Rlp","description":"PHP developer passionate about deep language knowledge, testing, static analysis, and sustainable it","worksFor":{"@type":"Organization","name":"Exakat","logo":"https://media.daily.dev/image/upload/s--ibtl6fze--/f_auto/v1749051132/companies/exakat"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":38090}},"image":"https://media.daily.dev/image/upload/s--CxzD6vbw--/f_auto/v1722860399/public/Placeholder%2005","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/MEBRc9kBI"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/phpdev","name":"PHP Dev"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PHP Dev","item":"https://daily.dev/squads/phpdev"},{"@type":"ListItem","position":3,"name":"flowd/phirewall: Phirewall is a PHP based application firewall that provides a PSR-15 middleware."}]}
```

