daltcore/tarpit

This package is abandoned and no longer maintained. No replacement package was suggested.

HTTP-Tarpit integration for Laravel

v1.0.2 2017-06-02 15:48 UTC

This package is not auto-updated.

Last update: 2022-02-01 13:07:34 UTC


README

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.