2017 © Pedro Peláez
 

library expose-bundle

image

floriansemm/expose-bundle

  • Friday, August 11, 2017
  • by floriansemm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

ExposeBundle

Integrates the expose project into symfony. It allows you to register handlers to respond to reports for the current request. (to block users/ips, send notifications, etc.), (*1)

The bundle add a "suspend request" feature. If is the impact for the current request greater than the configured threshold (default is 7), then an IntrusionException will be thrown. All registered handlers will be executed before this check throws the exception., (*2)

Installation

composer require floriansemm/expose-bundle, (*3)

Register the bundle:, (*4)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FS\ExposeBundle\FSExposeBundle(),
    );
}

Add the configuration to your config.yml, (*5)

fs_expose: ~

Configuration

If you want to allow all requests no matter what impact occurs, set the impact option to 0:, (*6)

fs_expose:
    request_suspension:
        impact: 0

Add a intrusion-handler

  1. create a service which implements IntrusionHandlerInterface
  2. tag the service with expose.intrusion_handler

The Versions

11/08 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Avatar floriansemm

11/08 2017

v0.1.1

0.1.1.0

  Sources   Download

MIT

The Requires

 

by Avatar floriansemm

26/07 2017

v0.1

0.1.0.0

  Sources   Download

MIT

The Requires

 

by Avatar floriansemm