承接 pbiering/rcguard 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

pbiering/rcguard

Composer 安装命令:

composer require pbiering/rcguard

包简介

Roundcube plugin that enforces requirement of solving a Captcha during login

README 文档

README

Introduction

This plugin logs failed login attempts and requires users to go through a CAPTCHA verification process when the number of failed attempts go too high. It provides protection against automated attacks.

Failed attempts are logged by IP and stored in a database table. IPs are also released after a certain expire amount of time.

Since 2024-01-01 the default config is set to always activate CAPTCHA verification by

$config['failed_attempts'] = 0;

Sources

Repositories

Registrations

Installation

With Composer

Add this plugin pbiering/rcguard to the require section of your Roundcube composer.json, run composer update and enable rcguard in the main Roundcube configuration file.
OR just run:

composer require pbiering/rcguard

Manually

Place the contents of this directory under plugins/rcguard.

Fedora/EL via RPM

until provided by Fedora or EPEL: available via Copr: https://copr.fedorainfracloud.org/coprs/pbiering/InternetServerExtensions/packages/

yum install roundcubemail-plugin-rcguard

Activation

Enable rcguard in the main Roundcube configuration file (e.g. /etc/roundcubemail/config.inc.php) by extension of the plugin config array:

array_push($config['plugins'], 'rcguard');

Configuration

Copy config.inc.php.dist to config.inc.php and modify as necessary.

Use the files under SQL/ to create the database schema required for rcguard. The table should be created in the database used by Roundcube. NOTE: If you use the Roundcube db_prefix config option, you must rename the table rcguard accordingly.

Example for SQLite:

cd /usr/share/roundcubemail/plugins/rcguard
cat SQL/sqlite.initial.sql | sqlite3 /var/lib/roundcubemail/db/sqlite.db

Customizing CAPTCHA

IMPORTANT: This plugin requires CAPTCHA API keys to work properly.
These can be obtained from:

You may customize the following in the config.inc.php file:

  • the API version: v3, v2invisible, v2, v2hcaptcha or v2friendlycaptcha or v2cfturnstile; by $config['recaptcha_api_version']

    • also configure per selected service required $config['recaptcha_api_url'], $config['recaptcha_publickey'], $config['recaptcha_privatekey']
  • the v2 widget theme: light or dark (where supported); by `$config['recaptcha_theme']'

  • the v2 widget size: normal or compact (where supported). by $config['recaptcha_size']

For more information about the widget please check:

The plugin configuration file has several other options you may configure, please take at look.

Since May 2018, you can define a proxy (anonymous or authenticated) to request the CAPTCHA widget.

Since April 2022, support for hCaptcha and Friendly Captcha was added

Since March 2023, support for Cloudflare's Turnstile was added

Supported databases

  • MySQL
  • PostgreSQL
  • SQLite

Contact

The original author of this plugin was Denny Lin.

Diana Soares forked it some years ago to 1) use reCAPTCHA v2.0, 2) add the larry skin and 3) because the project issues were taking too long to be answered. Also, the original project was not updated since 2015 and many things have changed in the meantime in Roundcube's API.

Peter Bieringer forked it 2022 from Diana Soares to add additional Captcha services.

Because of the former fork went also stale in 2021 (dsoares#50), Peter Bieringer will maintain this project now.

Comments and suggestions are welcome via "issues".

License

This plugin is distributed under the GPL-3.0+ license.

This plugin also contains PHP libraries for

  • reCAPTCHA
  • hCaptcha
  • FriendlyCaptcha
  • Cloudflare Turnstile

that are distributed under its own licenses. See the library files for the exact details.

pbiering/rcguard 适用场景与选型建议

pbiering/rcguard 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 323 次下载、GitHub Stars 达 8, 最近一次更新时间为 2023 年 07 月 31 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「mail」 「security」 「captcha」 「roundcube」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 pbiering/rcguard 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 pbiering/rcguard 我们能提供哪些服务?
定制开发 / 二次开发

基于 pbiering/rcguard 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2023-07-31