Home > bash, BashScripts > monitor site IPS

monitor site IPS

February 23rd, 2017 Leave a comment Go to comments

I am sick and tired of my site going down, even know its once in a while it just bother me a lot.
So I spent 20m to write this script and block bad IPs even know I use modeavsive to block more then X concurrent connections from one IP my site keeps going down!

Check if my site is down if so add the bad guy IP to my iptables and e-mail me
I adapted this script for monitoring my local site running lighttpd

Here is the script:

Categories: bash, BashScripts Tags:
  1. No comments yet.
  1. No trackbacks yet.