There may be occasions when you will make your WordPress website completely unavailable to visitors for a short time. There is a simple switch in the Administrator back-end that enables you to take your website offline very quickly. It can be returned to service at a later time just as easily.
To make your WordPress website unavailable to visitors, replacing it with a simple message, do this:
The site will appear offline only when you aren't logged in to you WordPress site.