flowd/typo3-firewall
Composer 安装命令:
composer require flowd/typo3-firewall
包简介
Firewall for TYPO3 - Firewall implements a PSR-15 middleware that helps to protect your website against malicious requests
README 文档
README
This extension adds a simple but powerful firewall to your TYPO3 site. It helps protect your website from unwanted traffic, bots, and attacks. You can block or limit requests based on IP, path, or other patterns.
It is built on top of the phirewall package.
Key Features
- Block requests from specific IPs or patterns
- Limit how often users can access certain pages (rate limiting)
- Temporarily block users after repeated abuse (like Fail2Ban)
- Easy to configure with PHP
- Works with Redis, APCu, or in-memory cache
Installation
Install with Composer:
composer require flowd/typo3-firewall
Quick Start
Add a file at config/system/phirewall.php in your TYPO3 project. This example blocks requests to /wp_admin using APCu as the cache backend.
<?php use Flowd\Phirewall\Config; use Flowd\Phirewall\Store\ApcuCache; use Psr\EventDispatcher\EventDispatcherInterface; return function (EventDispatcherInterface $eventDispatcher): Config { $config = new Config(new ApcuCache(), $eventDispatcher); $config->blocklists->add( name: 'block-wp-admin', callback: fn($request) => str_starts_with(strtolower($request->getUri()->getPath()), '/wp_admin') ); return $config; };
Documentation
- Extension documentation: configuration, examples, and the backend module (source in
Documentation/) - Phirewall reference: all rule types, stores, and advanced features
统计信息
- 总下载量: 2.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 27
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-12-14