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
- Copy the module to
app/code/Magenable/CaptchaBypass - 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
- Go to Stores → Configuration → Advanced → Captcha Bypass
- Set Enabled to Yes
- 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 WebDriverorCypress/12.0)
- Whitelisted IP addresses: Comma-separated IPs (e.g.,
- 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?
-
Verify module is enabled:
bin/magento module:status Magenable_CaptchaBypass
-
Check Amasty is installed:
bin/magento module:status Amasty_InvisibleCaptcha
-
Clear all caches:
bin/magento cache:flush
-
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 Stores → Configuration → Advanced → Captcha Bypass
- Check Magento logs:
var/log/system.log
Documentation
- Integration Guide - Technical details and testing
- Changes Summary - What was modified for Amasty compatibility
- Changelog - Version history
Support
For issues or questions:
- Check AMASTY_INTEGRATION.md troubleshooting section
- Review Magento logs
- 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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 petrevsky/amasty-captcha-bypass 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Russian Language Pack for Magento 2
DPD Magento2 Shipping extension
Testing Suite For Lumen like Laravel does.
The PHP SDK for Checkmango
Auto generate related products for Magento 2
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-05