恶意IP检测API接口,恶意IP威胁情报查询,通过大数据查询IP是否存在威胁或恶意。_恶意ip分析查询(1)

img
img

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化资料的朋友,可以戳这里获取

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

'参数名' => '参数值',

);

//签名校验的 SK:(在用户控制台https://www.youwk.cn/user/key的秘钥安全设置->签名校验 开启后才会生效,没开启签名校验留空即可。)
$sk = ‘2ac4751d4649e18851d8733e22ae9947’;

/*发起请求API接口:
第1个参数:API接口地址URL,跟上面的同名变量相对应,无需更改。
第2个参数:API接口参数数组,跟上面的同名变量相对应,无需更改。
第3个参数:请求协议(GET或POST),一般默认GET,部分接口需要POST请求,根据实际情况修改为POST即可。
第4个参数:是否验证签名,true验证签名,否则false不验证签名,根据用户控制台 https://www.youwk.cn/user/key 的 秘钥安全设置->签名校验 开启后才会生效,如没开启,填写false即可。
第5个参数:如果第4个参数开启验证签名,此处必须填写 SK ,跟上面的同名变量相对应,无需更改。
*/
r e s d a t a = a p i : : s e n d ( resdata = api::send( resdata=api::send(API_URL, $get_post_data, ‘GET’, true, $sk); //发起请求,注意这里要选择接口支持的协议,默认GET,可选POST

//打印请求结果
print($resdata);
///你的业务代码可写在这里处理API返回的数据

/**

  • API请求类
    */
    class api
    {
    public static function send($API_URL, $get_post_data, $type, $ifsign, $sk)
    {
    g e t p o s t d a t a = h t t p b u i l d q u e r y ( get_post_data = http_build_query( getpostdata=httpbuildquery(get_post_data);
    if ($ifsign) {
    s i g n = m d 5 ( sign = md5( sign=md5(get_post_data . $sk);
    r e s = s e l f : : s e n d c u r l ( res = self::send_curl( res=self::sendcurl(API_URL, $type, $get_post_data, $sign);
    } else {
    r e s = s e l f : : s e n d c u r l ( res = self::send_curl( res=self::sendcurl(API_URL, $type, $get_post_data, null);
    }
    return KaTeX parse error: Expected 'EOF', got '}' at position 7: res; }̲ //封装好的CURL请求函…API_URL, $type, $get_post_data, $sign)
    {
    c h = c u r l i n i t ( ) ; i f ( ch = curl_init(); if ( ch=curlinit();if(type == ‘POST’) {
    curl_setopt($ch, CURLOPT_URL, A P I U R L ) ; c u r l s e t o p t ( API_URL); curl_setopt( APIURL);curlsetopt(ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, KaTeX parse error: Expected 'EOF', got '}' at position 22: …st_data); }̲ elseif (type == ‘GET’) {
    curl_setopt($ch, CURLOPT_URL, $API_URL . ‘?’ . KaTeX parse error: Expected 'EOF', got '}' at position 22: …st_data); }̲ if (sign) {
    curl_setopt($ch, CURLOPT_HTTPHEADER, [‘sign:’ . KaTeX parse error: Expected 'EOF', got '}' at position 14: sign]); }̲ curl_seto…ch, CURLOPT_REFERER, A P I U R L ) ; c u r l s e t o p t ( API_URL); curl_setopt( APIURL);curlsetopt(ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt( c h , C U R L O P T T I M E O U T , 10 ) ; c u r l s e t o p t ( ch, CURLOPT_TIMEOUT, 10); curl_setopt( ch,CURLOPTTIMEOUT,10);curlsetopt(ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
    r e s d a t a = c u r l e x e c ( resdata = curl_exec( resdata=curlexec(ch);
    curl_close($ch);
    return $resdata;
    }
    }




![img](https://img-blog.csdnimg.cn/img_convert/0bc518454833b0e7f22205719138d052.png)
![img](https://img-blog.csdnimg.cn/img_convert/f4a7165bed2e895e0c917e94bf236634.png)
![img](https://img-blog.csdnimg.cn/img_convert/8f9482d206af588a83d156265663ff21.png)

**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上大数据知识点,真正体系化!**

**由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新**

**[需要这份系统化资料的朋友,可以戳这里获取](https://bbs.csdn.net/topics/618545628)**

路线、讲解视频,并且后续会持续更新**

**[需要这份系统化资料的朋友,可以戳这里获取](https://bbs.csdn.net/topics/618545628)**

  • 30
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值