Dreamhost provides shell access for users. Sometimes it helps to view the logs for websites created in those users’ names. There are probably a number of scripts out there that already do this, but I thought it might be nice to bring together a number of suggestions from this wiki page to give users a few tools that may help them find out whether someone has been hacking their sites.
No this script does not provide answers — only clues. Hopefully, someone out there will find the script useful. Please make comments below. The script may be downloaded from github here.
The script is really only meant for people on shared hosting with a few sites that don’t have an ocean of traffic. If you do have a lot of traffic and/or a lot of web sites, this scripted solution is not comprehensive enough for your needs.
If you would like to see other capabilities added to the script or would like to suggest changes, please let me know in the comments.