当前位置:论坛首页 > Linux面板 > 讨论

这是误报,请联系宝塔

发表在 Linux面板2020-3-10 12:38 [复制链接] 2 1331

一个验证码图形生成代码


[code]<?php

session_start();
//Settings: You can customize the captcha here
$image_width = 120;
$image_height = 40;
$characters_on_image = 4;
$font = __DIR__.'/arial.ttf';
//$font = 'c:/windows/fonts/arial.ttf';

//The characters that can be used in the CAPTCHA code.
//avoid confusing characters (l 1 and i for example)
$possible_letters = '23456789bcdfghjkmnpqrstvwxyzABCDEFGHJKMNPQRSTWXYZ';
$random_dots = 10;
$random_lines = 30;
$captcha_text_color="0x142864";
$captcha_noice_color = "0x142864";

$code = '';

$i = 0;
while ($i < $characters_on_image) {
$code .= substr($possible_letters, mt_rand(0, strlen($possible_letters)-1), 1);
$i++;
}


$font_size = $image_height * 0.75;
$image = @imagecreate($image_width, $image_height);


/* setting the background, text and noise colours here */
$background_color = imagecolorallocate($image, 255, 255, 255);

$arr_text_color = hexrgb($captcha_text_color);
$text_color = imagecolorallocate($image, $arr_text_color['red'],

使用道具 举报 只看该作者 回复
发表于 2020-3-10 12:40:05 | 显示全部楼层
宝塔网站防火墙
您的请求带有不合法参数,已被网站管理员设置拦截!

可能原因:

您提交的内容包含危险的攻击请求
如何解决:

检查提交内容;
如网站托管,请联系空间提供商;
普通网站访客,请联系网站管理员;
这是误报,请联系宝塔
使用道具 举报 回复 支持 反对
发表于 2020-3-10 12:42:31 | 显示全部楼层
有问题请联系qq 1249648969
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表