View Single Post
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#3
It can be done easier by using the fact that sshd (and httpd) record the addresses whence connections originate. So most of your script can be replaced by a simple ssh (or wget) to a server that you can read its logs.
 

The Following 2 Users Say Thank You to Matan For This Useful Post: