augustash/ash_facet_protection
最新稳定版本:1.0.3
Composer 安装命令:
composer require augustash/ash_facet_protection
包简介
Protects Drupal sites from bot abuse of faceted search URLs
README 文档
README
Protects Drupal sites from bot abuse of faceted search URLs. Bots systematically crawl every combination of facet filter parameters, generating expensive uncached queries and bloating database cache tables.
What it does
- Validates facet aliases — rejects requests using facet parameters that don't match any configured facet on the site (400 response). Valid aliases are cached and auto-invalidate when facet config changes.
- Throttles faceted requests — blocks requests with more than 8 facet parameters (429 response)
- Rate limits per IP — 30 faceted requests per minute per IP
- Strips tracking params — removes
srsltidand similar params that fragment cache keys - Blocks crawling — appends
robots.txtrules to disallow faceted URLs via Composer Scaffold
All checks run as lightweight HTTP middleware before Drupal fully bootstraps. Invalid alias requests are rejected before they consume rate limit slots.
Setup
composer config --json --merge extra.drupal-scaffold.allowed-packages '["augustash/ash_facet_protection"]' && composer require augustash/ash_facet_protection
Then enable the module:
drush en ash_facet_protection
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2026-04-01