2017 © Pedro Peláez
 

project phpdenyhosts

Analyzes unwanted traffic and blocks spam using htaccess

image

zwiazeksyndykalistowpolski/phpdenyhosts

Analyzes unwanted traffic and blocks spam using htaccess

  • Sunday, July 1, 2018
  • by blackandred
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 5 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

PhpDenyhosts

Build Status, (*1)

Inspired by the denyhosts and fail2ban projects created to secure cheap shared hostings where is no access to the shell, but there is still an access.log and Apache htaccess accessible from PHP side., (*2)

History of creation

Creation of simple Wordpress blog to allow adding information about pickets, strikes and other direct actions by a regional/brand section of workers union is an easier way to create an elegant card, a personalized portfolio., (*3)

The problem is that Wordpress is very often attacked by various bots, they are brute forcing different parts like the administration panel, the login page, xmlrpc just to gain the access and infect and send their shitty spam., (*4)

This project was created to ban unwanted traffic, so the server could be more responsive and more secure., (*5)

Created originally by Wolnościowiec team for Związek Syndykalistów Polski (Polish section of International Workers Association )., (*6)

Installation

# via git
git clone https://github.com/zwiazeksyndykalistowpolski/php-denyhosts.git
composer install

# via composer
composer require create-project zwiazeksyndykalistowpolski/phpdenyhosts phpdenyhosts

Configuration

In configuration directory there is a possibility to place multiple configuration files for every domain/project, please use the config.default.php.example as an example., (*7)

See more: - More documentation about the configuration - Technical information about variables meaning, and a template of configuration, (*8)

Good practices

To secure installation of PhpDenyhosts you may want to generate a strong token in every of your environment. Proposed length is 64 characters., (*9)

Other thing - you can place this application in a directory with random prefix or suffix. Example: denyhosts_9zbnKILG7e9HnVhW. So the bots would have it more difficult to find out that you are using this project., (*10)

Testing from shell

To simulate logs parsing you can add an environment variable "PDH_SIMULATE" that would tell to not save anything, just print the logs., (*11)

Example:, (*12)

PDH_SIMULATE=true env=default php index.php

TODO

  • unit tests

The Versions

01/07 2018

dev-dependabot/composer/symfony/var-dumper-4.1.1

dev-dependabot/composer/symfony/var-dumper-4.1.1

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

01/07 2018

dev-dependabot/composer/phpunit/phpunit-7.2.6

dev-dependabot/composer/phpunit/phpunit-7.2.6

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

01/06 2018

dev-dependabot/composer/league/flysystem-1.0.45

dev-dependabot/composer/league/flysystem-1.0.45

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

01/05 2018

dev-dependabot/composer/league/flysystem-1.0.44

dev-dependabot/composer/league/flysystem-1.0.44

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

01/05 2018

dev-dependabot/composer/symfony/var-dumper-4.0.9

dev-dependabot/composer/symfony/var-dumper-4.0.9

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

01/04 2018

dev-dependabot/composer/league/flysystem-1.0.43

dev-dependabot/composer/league/flysystem-1.0.43

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

01/04 2018

dev-dependabot/composer/kassner/log-parser-1.4.0

dev-dependabot/composer/kassner/log-parser-1.4.0

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

01/04 2018

dev-dependabot/composer/symfony/var-dumper-4.0.6

dev-dependabot/composer/symfony/var-dumper-4.0.6

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

28/02 2018

dev-dependabot/composer/league/flysystem-1.0.42

dev-dependabot/composer/league/flysystem-1.0.42

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

28/02 2018

dev-dependabot/composer/symfony/var-dumper-4.0.4

dev-dependabot/composer/symfony/var-dumper-4.0.4

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

28/02 2018

dev-dependabot/composer/monolog/monolog-1.23.0

dev-dependabot/composer/monolog/monolog-1.23.0

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

28/02 2018

dev-dependabot/composer/kassner/log-parser-1.3.1

dev-dependabot/composer/kassner/log-parser-1.3.1

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires

12/05 2017

dev-master

9999999-dev

Analyzes unwanted traffic and blocks spam using htaccess

  Sources   Download

LGPLv3

The Requires

 

The Development Requires