Categories

Featured templates

Magento. 如何启用验证码

Judy Waters December 8, 2015
Rating: 4.3/5. From 3 votes.
Please wait...

本教程将展示如何启用 captcha in Magento.

Magento. 如何启用验证码

Captcha 可以通过Magento Dashboard. 你可以用它来保护用户 login form 进入管理面板. 此外,它还用于避免联系表单 spam. 让我们检查一下如何启用 captcha for them both.

CAPTCHA for the Dashboard Login form. 要激活它,需要执行以下步骤:

  1. Navigate to System> Configuration > Advanced> Admin section in the Dashboard.

  2. Select CAPTCHA 从可用项目列表中. Select YES for ‘Enable CAPTCHA in Admin’ 获取要管理的可用选项列表. 使用的那些外观和功能 CAPTCHA 可控制:

    • Font: 允许选择要用于的字体系列 captcha.

    • Forms: 选择要保护的表单 captcha. 这可能是管理员登录,管理员忘记密码,或两者都有.

    • Displaying Mode: specify if captcha 不断出现或多次登录失败后出现.

    • CAPTCHA Timeout: 的时间段(以分钟为单位) captcha to be valid.

    • 符号数量: 的最小和最大符号范围 captcha.

    • Symbols Used in CAPTCHA: 设置可用于的字符列表(仅限字母和数字) captcha.

    • Case Sensitive: 如果您想要,请选择 captcha 是否区分大小写:

    Magento_How_to_enable_captcha_1

  3. Use ‘Save Config’ button to update the changes.

Captcha 现在根据上面的设置显示在登录页面中.

CAPTCHA for the Contact form. 为了保护 contact form with captcha,应安装和配置额外的扩展. 执行步骤如下:

  1. Navigate to the System > Magento Connect > Magento Connect Manager. 的新扩展 captcha 会通过这个部分安装吗. Magento可能会提示您以管理员身份再次登录.

  2. Open 联系人表单验证码 page. 您必须是注册用户才能获得扩展. 请在 Magento官方网站 to log in at first. 然后执行以下操作:

    1. Click ‘Install Now’ button.

    2. Select Magento Connect 2.0’ 版本并同意 terms of use.

    3. 接下来,你要按 “获取分机键” 按钮,以获得URL的扩展. 复制你将得到的密钥:

    Magento_How_to_enable_captcha_2

  3. 返回到Magento连接管理器 Dashboard. Open the “安装新扩展” tab. 将所选密钥粘贴到 “粘贴扩展密钥以安装” field and click ‘Install’ button to run.

  4. Magento Connect下载扩展后,单击 ‘Proceed’ 开始安装这个扩展.

  5. 安装完成后,单击 ‘Refresh’ button. “contactsformcaptcha” 现在应该出现在“管理现有扩展”下的扩展列表中. 这意味着它已成功安装到您的商店.

  6. 返回到商店的管理面板. Navigate to System> Configuration> General> Contacts> Contacts Form Captcha. 在这里您可以启用 captcha for contact form 然后编辑设置:

    1. Click YES for ‘Enable Captcha first of all;

    2. Public Key: type Google reCAPTCHA site key here;

    3. Private Key: type your Google reCAPTCHA secret key here;

    4. reCaptcha Theme: select the layout 的接口。 captcha form;

    5. ReCaptcha Language: 选择的语言 captcha interface:

    Magento_How_to_enable_captcha_3

    NOTE: sign up for a reCAPTCHA account 获取有效的密钥.

  7. Use ‘Save Config’ button to update 更改并检查网站的联系页面. Captcha 已经成功应用到它了吗.

现在您知道了如何启用 captcha 的登录和联系形式在Magento.

请随时查看下面的详细视频教程:

Magento. 如何启用验证码

响应式Magento模板
这个条目被张贴了出来 Magento Tutorials and tagged captcha, contact, enable, form, Magento. Bookmark the permalink.

Submit a ticket

如果您仍然无法找到关于您的问题的足够的教程,请使用以下链接向我们的技术支持团队提交请求. 我们将在接下来的24小时内为您提供我们的帮助和协助: Submit a ticket