承接 petrevsky/amasty-captcha-bypass 相关项目开发

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

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

petrevsky/amasty-captcha-bypass

Composer 安装命令:

composer require --dev petrevsky/amasty-captcha-bypass

包简介

A Magento 2 captcha bypass module for testing purposes - Compatible with Amasty InvisibleCaptcha

README 文档

README

Bypass Google reCAPTCHA for defined IP addresses or User-Agent strings. Useful for automated testing with Selenium, Cypress, or other testing tools.

Compatible with Amasty InvisibleCaptcha extension.

Requirements

  • Magento 2.4+
  • Amasty InvisibleCaptcha extension must be installed and enabled

Installation

Via Composer (Recommended)

composer require petrevsky/amasty-captcha-bypass
bin/magento module:enable Magenable_CaptchaBypass
bin/magento setup:upgrade
bin/magento cache:clean

Manual Installation

  1. Copy the module to app/code/Magenable/CaptchaBypass
  2. Run the following commands:
bin/magento module:enable Magenable_CaptchaBypass
bin/magento setup:upgrade
bin/magento cache:clean

Upgrade

composer update petrevsky/amasty-captcha-bypass
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. Go to StoresConfigurationAdvancedCaptcha Bypass
  2. Set Enabled to Yes
  3. Configure bypass rules:
    • Whitelisted IP addresses: Comma-separated IPs (e.g., 127.0.0.1,192.168.1.100)
    • Whitelisted User-Agent: Exact User-Agent string (e.g., Selenium WebDriver or Cypress/12.0)
  4. Save configuration and clear cache

If one of the conditions is met, the reCAPTCHA will be bypassed.

How It Works

This module intercepts Amasty InvisibleCaptcha's isNeedToShowCaptcha() method. When enabled:

  • If the visitor's IP address matches any in the whitelist, captcha will be bypassed
  • If the visitor's User-Agent matches the configured value, captcha will be bypassed
  • The module respects Amasty's native IP whitelist and adds additional bypass capabilities

Testing Examples

Selenium WebDriver

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument("user-agent=Selenium WebDriver")
driver = webdriver.Chrome(options=options)

Cypress

cy.visit(url, {
    headers: {
        "User-Agent": "Cypress/12.0",
    },
});

cURL

curl -X POST https://your-store.com/customer/account/loginPost \
  -H "User-Agent: TestBot/1.0" \
  -d "login[username]=test@example.com&login[password]=Test123!"

Compatibility

  • ✅ Amasty InvisibleCaptcha v2.5.1+
  • ✅ Magento 2.4.5, 2.4.6, 2.4.7
  • ✅ reCAPTCHA v2 and v3

Security Notes

⚠️ Important: This module bypasses security controls.

Recommended use cases:

  • Development environments
  • Testing/QA environments
  • Automated testing (CI/CD pipelines)

NOT recommended for:

  • Production environments
  • Public-facing stores

If using in production, ensure:

  • Only trusted IPs/User-Agents are whitelisted
  • Alternative security measures are in place
  • Regular security audits are performed

Troubleshooting

Module not working?

  1. Verify module is enabled:

    bin/magento module:status Magenable_CaptchaBypass
  2. Check Amasty is installed:

    bin/magento module:status Amasty_InvisibleCaptcha
  3. Clear all caches:

    bin/magento cache:flush
  4. Recompile (if in production mode):

    bin/magento setup:di:compile

Still showing captcha?

  • Verify IP format is correct (no spaces after commas)
  • Check User-Agent matches exactly (case-sensitive)
  • Ensure module is enabled in StoresConfigurationAdvancedCaptcha Bypass
  • Check Magento logs: var/log/system.log

Documentation

Support

For issues or questions:

  1. Check AMASTY_INTEGRATION.md troubleshooting section
  2. Review Magento logs
  3. Open an issue on GitHub

License

MIT License - see LICENSE file for details

Credits

Original module by Magenable
Amasty compatibility by Petrevsky

petrevsky/amasty-captcha-bypass 适用场景与选型建议

petrevsky/amasty-captcha-bypass 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 05 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 petrevsky/amasty-captcha-bypass 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-05