abuseio/findcontact-ripe

Ripe中IP查找的AbuseIO模块

1.0.2 2016-08-16 09:28 UTC

This package is auto-updated.

Last update: 2024-09-23 05:50:58 UTC


README

使用Ripe Stat Api进行IP查找的findcontact模块

安装

composer require abuseio/findcontact-ripe

使用findcontact-ripe模块

extra/config/main.php复制到您环境中的配置覆盖目录(例如,生产环境)

生产环境

cp vendor/abuseio/findcontact-ripe/extra/config/main.php config/production/main.php

开发环境

cp vendor/abuseio/findcontact-ripe/extra/config/main.php config/development/main.php

在文件config/app.php中的提供者数组中添加以下行

'AbuseIO\FindContact\Ripe\RipeServiceProvider'

配置

强烈建议使用RIPEStat应用程序ID进行API请求,请参阅RIPEStat使用规则。您可以在$ABUSEIOPATH/vendor/abuseio/findcontact-ripe/config中进行配置。

'appid' => null,中的null值替换为您的应用程序ID,例如:

<?php

return [
    'findcontact-ripe' => [
        // it is highly recommended to use an application id in production environments
        // see https://stat.ripe.net/docs/data_api
        'appid'          => 'MyAppId,
        'enabled'        => true,
        'auto_notify'    => false,
    ],
];