Login   Register  
PHP Classes
elePHPant
Icontem

PHP Block Host: Parse logs and block suspicious hosts

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-03-04 (9 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 305 All time: 6,579 This week: 1,311Up
Version License PHP version Categories  
block-host 0.1GNU General Public Lice...5.4PHP 5, Unix, Security
Description Author  

This class can parse logs and block suspicious hosts.

It can parse log files of Apache, sshd or Linux system logs to find traces of suspicions activities of malicious remote computers.

The class can create a black list of addresses suspicious hosts so they can be blocked from further accesses in .htaccess files or /etc/hosts.deny files.

Innovation Award  
PHP Programming Innovation award winner
February 2014
Winner


Prize: One copy of the Zend Studio
Accesses from suspicious hosts may cause several types of harm like overloading a server or other types of security problems.

This class can help detecting accesses from suspicious hosts by analyzing the access logs of Apache, sshd and Linux system logs.

The class can generate configuration for blocking those hosts using Apache .htaccess files or the /etd/hosts.deny file.

Manuel Lemos
Picture of Rolands Kusins
Name: Rolands Kusins <contact>
Classes: 2 packages by
Country: Latvia Latvia
Age: 28
All time rank: 30668 in Latvia Latvia
Week rank: 971 Up2 in Latvia Latvia Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Files folder image Files  
File Role Description
Files folder imageconfig (1 file)
Files folder imageinclude (6 files)
Files folder imageinit.d (1 file)
Accessible without login Plain text file hostblock.php Appl. Application
Accessible without login Plain text file LICENSE Lic. License
Accessible without login Plain text file README.md Doc. Readme

  Files folder image Files  /  config  
File Role Description
  Accessible without login Plain text file hostblock.ini Data Main configuration file

  Files folder image Files  /  include  
File Role Description
  Accessible without login Plain text file AccessUpdate.php Class Class that is used to update Apache access files and hosts.deny file
  Accessible without login Plain text file ApacheAccessLogParser.php Class Class that is used to parse Apache access log files
  Accessible without login Plain text file dist-cfg-gentoo.php Conf. Gentoo specific configuration
  Accessible without login Plain text file Log.php Class Class for application log writing
  Accessible without login Plain text file SshdLogParser.php Class Class that is used to parse SSHd log file
  Accessible without login Plain text file Stats.php Class Class for statistic calculation

  Files folder image Files  /  init.d  
File Role Description
  Accessible without login Plain text file gentoo-hostblock.sh Data Init.d script for Gentoo

 Version Control Unique User Downloads Download Rankings  
 100%Total:305All time:6,579
 This week:0This week:1,311Up