Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

DALTCORE/laravel-tarpit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.