【问题标题】:Removing link from botdetect captcha in code igniter从 codeigniter 中的 botdetect 验证码中删除链接
【发布时间】:2017-02-24 18:27:00
【问题描述】:

我正在使用 Botdetect 验证码,但我需要删除他们在图像验证码下方提供的链接,如何删除它

<a href="//captcha.org/captcha.html?codeigniter" title="BotDetect CAPTCHA Library for CodeIgniter" style="display: block !important; height: 10px !important; margin: 0 !important; padding: 0 !important; font-size: 9px !important; line-height: 9px !important; visibility: visible !important; font-family: Verdana, DejaVu Sans, Bitstream Vera Sans, Verdana Ref, sans-serif !important; vertical-align: middle !important; text-align: center !important; text-decoration: none !important; background-color: #f8f8f8 !important; color: #606060 !important;">BotDetect CAPTCHA Library for CodeIgniter</a>

这是图片

【问题讨论】:

标签: codeigniter captcha


【解决方案1】:

添加代码顶部站点

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("a[title ~= 'BotDetect']").removeAttr("style");
    $("a[title ~= 'BotDetect']").removeAttr("href");
    $("a[title ~= 'BotDetect']").css('visibility', 'hidden');

});
</script>

【讨论】:

    【解决方案2】:

    我曾将 botdetect 验证码用于非商业用途,

    我能够成功删除链接和标题的地方。

    要修改的文件路径,

    vendor/captcha-com/examples/captcha/lib/botdetect/CaptchaInculdes.php

    private static function iqy23{
    return '';
    }
    

    还有

    public static function GetHelpLinkText($_1qfl5bimwvnl8fd7, $_iitpwcsaaap742gstb7q5) {
    return '';
    }
    

    以上两个函数返回空白。

    希望对寻求非商业用途或愿意了解算法的人有所帮助,

    始终建议购买付费版本用于商业用途。

    干杯:)

    【讨论】:

      【解决方案3】:

      阅读以下链接。我建议您可以将帮助链接模式转换为图像。它将隐藏文本以防止显示,而验证码将是可点击的。

      https://captcha.com/doc/java/captcha-options.html#captcha_help_link_mode

      https://captcha.com/license/captcha-free-version-limitations.html#link

      【讨论】:

        【解决方案4】:

        您可以在图例上创建一个 div:

        <botDetect:captcha id="miCaptcha" userInputID="captchaCode" codeLength="4" imageWidth="150" imageStyle="GRAFFITI2"/>
        <div id="tapa" style="background-color: #ffffd9;height: 10px;width: 150px;position: relative;top: -10px;"></div>
        

        【讨论】:

          猜你喜欢
          • 2019-10-05
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2017-01-27
          相关资源
          最近更新 更多