<?php
include "/home/vhosts/crusher.dk/common.inc.php";

page_header("CrusherLand: watch-file script and ban script");
page_open();
?>
<h1>watch-file.pl</h1>
<p>I really needed a small script capable of executing another script whenever
a file change - eg. when watching a log file of Apache for changes. Therefore
I tried a couple of different approaches but ended up with
<a href="watch-file.pl">this</a> which is quite easy on the resouces of the
CPU.</p>
<pre>
<?php
include "watch-file.pl";
?>
</pre>
<h1>ban.pl</h1>
<p>Another this I noticed was the many attempts at logging in on the server
with invalid user names and/or bad passwords, so I created <a href="ban.pl">
this</a> script.

<p>So feel free to use this config or any variants you might create and 
please forward then to me so I may learn from them.</p>

<p>Keywords: SSH, watch, file, notification, monitor, invalid user, ban, crack, hack</p>

<?php
page_close("2007-04-30");
?>

