How to Use?

Just create a new file named maintenance.php inside wp-content directory and paste in the above code in it. maintenance.php is kept as an independent file in the WordPress installation, so it’s not affected by core upgrades. [via Aliso]