Skip to content

Inspects web server logs and blocks IPs by hits or traffic

Notifications You must be signed in to change notification settings

ryzhovau/autoblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Autoblock

This is a bash script to filter web server logs and ban some IPs which is consumed too much traffic or done too much hits. By default, IPs are banned for one day.

Requirements

  • goaccess to parse logs,
  • ferm or other firewall to apply changes,
  • cron. To do it periodically.

Installation

  • Install dependencies,
  • Download script to /usr/local/bin and make it executable,
  • Edit script for your needs,
  • Make cron job to run it once per hour.

About

Inspects web server logs and blocks IPs by hits or traffic

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages