I was following conversation on LogAnalysis mailing list
(LogAnalysis@lists.shmoo.com) and one of the members suggested
that finding out if a web site is defaced is one of the valuable
things to find out.
Realizing, that all my hosted web sites are stored in a MySQL
table (for automated management) — what would it take to add the
functionality?
Just add one column for the main page "page TEXT" (and a flag
"verify CHAR(1)" in case you don't want checking on a domain)...
and add 50 lines of Perl...
!/usr/bin/perl # NOTE: Your wget needs to be at least v1.8 to handle PHP based pages # NOTE: Could use Algorithm::Diff -- if it was more widely available use strict; use DBI(); my $debug = 0; # Connect to sites database my $dbh = DBI->connect("DBI:mysql:database=floyd;host=localhost", "USERNAME", "PASSWORD", {'RaiseError' => …[Read more]