One of my Magento servers crashed the other day and I had to restart php-fpm before it would recover. Looking into the problem, I noticed a lot of HTTP requests (around 40) for random file names (tar, zip, gzip, dmp etc) which resulted in the standard 404 page getting returned.
I assume this was a script kiddie looking for source code, or database dumps that a developer may have created. No file was found, but the number of unique 404 requests did crash php-fpm.
What is the best preventative action I could take to stop this type of attach taking out the server again?
The fact that each of the URLs was unique means that none of the page were cached and Magento code had to run which is quite slow. At the moment, the 404 page returns the content of the home page.
Is there a better 404 page that I could use that would not create as much of a load on the server?