DALTCORE / laravel-tarpit

HTTP-Tarpit integration for Laravel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP-Tarpit

HTTP-Tarpit blocklist package for Laravel

Install

Via Composer

$ composer require daltcore/tarpit

Usage

In your config/app.php at Service Providers

DALTCORE\Tarpit\TarpitServiceProvider::class,

In your config/app.php at Aliasses

'Tarpit' => DALTCORE\Tarpit\Facade::class,

In your app/Exceptions/Handler.php under function render() just before return parent::render($request, $exception);

/**
 * Tarpit Exception Helper
 */
\DALTCORE\Tarpit\Services\ExceptionHelper::handleTarpitCommunication($request, $exception);

In your .env file you have to add the following parameters

# To enable the tarpit
TARPIT_ENABLE=false

# Your website domain
TARPIT_DOMAIN=basis-cms.vm

# Tarpit API Key
TARPIT_API_KEY=af4ae3fe3ff09dbba45a601619ca783455cfeb4d

# Tarpit endpoint
TARPIT_ENDPOINT=api.http-tarpit.org

# Tarpit API Version
TARPIT_VERSION=v2

# Direct sync or with cache (30 minutes)
TARPIT_HANDLER=realtime

If you discover any security related issues, please contact Ramon Smit.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

HTTP-Tarpit integration for Laravel

License:MIT License


Languages

Language:PHP 100.0%