drupal/varbase_security_base 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drupal/varbase_security_base

Composer 安装命令:

composer require drupal/varbase_security_base

包简介

A recipe to manage default security configurations including password policy, username enumeration prevention, security kit, CAPTCHA, honeypot, antibot, and flood control.

README 文档

README

A recipe to manage default security configurations for Varbase.

This recipe provides comprehensive security features including:

  • Password policy with character type requirements, length, and username checks
  • Username enumeration prevention
  • Security Kit (SecKit) for XSS, CSRF, and clickjacking protection
  • CAPTCHA and reCAPTCHA for form protection
  • Honeypot for spam prevention
  • Antibot for additional bot protection
  • Flood control to prevent brute force attacks

Installation

Add the recipe using composer:

composer require drupal/varbase_security_base:~1.0.0

Change directory to /web or /docroot

Run the Drupal recipe bash script:

bash core/scripts/drupal recipe recipes/contrib/varbase_security_base

or

Run the Drush recipe command:

drush recipe recipes/contrib/varbase_security_base

Security Features

Password Policy

The default password policy requires:

  • Minimum 8 characters
  • At least 1 uppercase letter
  • At least 1 lowercase letter
  • At least 1 number
  • At least 1 special character
  • Password different from username

Honeypot

Protected forms include:

  • User registration form
  • User login form
  • Password reset form
  • Webform submissions
  • Comment forms

Flood Control

  • IP-based login attempt limits: 5 attempts per 30 minutes
  • User-based login attempt limits: 4 attempts per 30 minutes

Security Kit

  • XSS protection enabled
  • Clickjacking protection via X-Frame-Options
  • Autocomplete disabled for sensitive forms

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-09