How can I download an entire website to static files and harden my CMS?

You can easily harden your wordpress/CMS installation by downloading it to static files and only publishing those static files to the internet. Security vulnerabilities are regularly found in all common used CMS systems – if you just need your CMS to publish content (no interaction like comments) then the following is an option to really harden your website.

Assuming that you disabled your interactive site elements you can use wget to download your website from an internal web-server and save it to your public web-server.

wget --mirror -p --html-extension --convert-links