WordPress Plugin to Make your Blog Temporarily Unavailable for Maintenance

By Angsuman Chakraborty, Gaea News Network
Thursday, June 16, 2005

Overview

This Plugin allows you to make your blog temporarily unavailable to your users (with custom message). It is still accessible by the administrators.

It does one thing and does it well. It belongs to the class of zero-configuration plugins. In other words even your grandmother can use it.

Download

Download and follow the instructions in the next section for installation.

Installation

http://codex.wordpress.org/Managing_plugins#Installing_a_plugin

Note: This Plugin supports one-click-install through WordPress Plugin Manager and is also available from WordPress Plugin DB.

  1. Upload unavailable.php to your wp-content/plugins directory. At this point you are done unless you want to make your site unavailable now. Then read on.
  2. Log in to WordPress.
  3. Click Plugins from the main menu.
  4. Scroll to find the name of the plugin - Site Unavailable, and click Activate whenever you want to make your site unavailable.

Configuration and Usage

Install and activate the plugin as described above. You are done!

Now your site is unavailable to all of your users, till the time you decide to deactivate the plugin.

To reiterate the site will remain unavailable to all your users while this plugin is activated.

The Feeds and Trackback requests will be sent HTTP Code 503 indicating that the Server is Unavailable and they will be asked to retry after an hour (configurable).

Administrators can access the administrative section even while this plugin is activated.

Advanced

You do not need to read this section. The plugin will work fine without any changes at all. However if you are compulsive and feel the urge to tinker then read on.

To change the default message ( This blog is currently undergoing scheduled maintenance. Please try after 60 minutes. Sorry for the inconvenience. ) use the plugin editor to edit the plugin. Change the line where $message is specified to a message of your choice.

You can change the Retry-After hint given to Feed and Trackback requests by changing $retry_after. The value is in minutes. The default is 60 minutes. It also tells the users of the site when to retry again.

This is very useful when you do a scheduled maintenance and you want your users to come back after a fixed time.
Remember this is a hint. It has no bearing with when you make your site actually available ( by deactivating the plugin ).

Deactivate the plugin from the Plugin screen to make the site available again to the world.


Uninstallation

  1. Log in to WordPress.
  2. Click Plugins from the main menu.
  3. Scroll to find the name of the plugin - Site Unavailable, and click Deactivate. This disables the plugin and makes the site available again to all.

You can also delete the unavailable.php file from wp-content/plugins directory for permanent removal.

Cost

This plugin is free. However a linkback will be deeply appreciated. Think of it as a LinkWare.

Comments, feedbacks and suggestions are welcome.

Discussion
August 18, 2010: 7:25 am

thanks for the theme n plugin

July 17, 2010: 5:17 am

Thank you very much for yet another first-rate article. I am always searching for original WordPress tips to suggest to my readers. Thanks for creating this article. It’s exactly what I was searching for. Truly great post.

June 9, 2010: 8:28 pm

Nice plugin thanks for the link.

May 25, 2010: 1:20 pm

OK cool to see- useful comments are always sweet! Peace.

May 10, 2010: 8:25 pm

Howdy. Thanks with regard to an incredible website.

May 8, 2010: 9:09 am

Beautiful images! I appreciate the post so much! ;)

March 19, 2010: 7:26 am

hey
very good post
wordpress plugins are always good and powerful
readers of this page may find something interesting on writing dynamixgate wordpress bay on google search.
thanks for sharing


Red Devil
November 5, 2009: 1:54 pm

I can’t acess to control panel, and I cant find them i my plugins folder… mz site is blocked What should I do?
And whne I log in …is tell me, that I dont hawe acess rights …

August 29, 2009: 3:46 am

great! the wordpress plugin is very strong.


obert
May 2, 2009: 11:27 am

how can i develop a site while i’m using this plugin? i can’t get a preview of every pages,but i’m the admin.
illogical

April 30, 2009: 12:05 pm

Hi, thank you for this post. Not so long ago I did try this one cause I needed to hide my blog online cause I think its so private but of course there are viewers that I would want to be seen. This is a big help for future use. Thanks again.

March 28, 2009: 7:39 am

Search in our blog by ‘template’. I am sure you will find plenty of them.

Thanks

Soumya Sinha
Simple Thoughts

March 28, 2009: 4:03 am

i want a template with dual sidebar on both left and rights side of my blog. can anyone tell me where can i find one.

February 11, 2009: 12:04 am

This plugin is exactly what i’m looking for, very useful. Thanks

January 27, 2009: 9:11 pm

[...] Site Unavailable - Publishes a message that your site is down while still allowing admins to login. [...]

December 11, 2008: 7:11 pm

great plugin thank you

November 22, 2008: 12:39 am

Can I enable PHP in that page? Puis-je activer PHP dans cette page? I am planning on using a countdown page (that has Flash and PHP for a mailing list) to launch my website. Je suis de planification sur l’utilisation d’une page à rebours (qui a Flash et PHP pour une liste de diffusion) pour lancer mon site. It will be the only page accessible till I launch my website. Elle sera la seule page accessible jusqu’au je lance mon site.

November 1, 2008: 6:25 am

[...] Site Unavailable: Este plugin permite que usted haga su blog temporalmente inaccesible a sus usuarios (con el mensaje indicado). Sigue siendo accesible por los administradores. [...]

October 9, 2008: 5:53 pm

[...] Site Unavailable - When you are upgrading or performing maintenance, why let your readers or visitors see errors? You can instead show a custom message that your site is offline and will be back shortly. [...]

September 26, 2008: 6:11 pm

This plugin is exactly what i’m looking for, very useful. Thanks :)

August 21, 2008: 9:50 pm

[...] во всплывающем окне выводит полное изображение. Site Unavailable - позволяет отобразить для читателей что сайт [...]

August 21, 2008: 4:53 pm

[...] Site Unavailable: Este plugin permite que usted haga su blog temporalmente inasequible a sus usuarios (con el mensaje de encargo). Sigue siendo accesible por los administradores. Es una cero-configuracio’n plugin. [...]

August 19, 2008: 3:54 am

[...] 通過下拉菜單來簡化tag過程過程,同時可以從你當前的tag插件中進行導入。 Site Unavailable - [...]

May 30, 2008: 12:09 pm

great plugin thank you


Prasannah
April 21, 2008: 9:45 pm

Can I enable PHP in that page? I am planning on using a countdown page (that has Flash and PHP for a mailing list) to launch my website. It will be the only page accessible till I launch my website.

March 30, 2008: 2:32 pm

No. It doesn’t deny access to search engines. However they will see the maintenance page like any other user. This plugin should only be activated when you want to take your blog offline / in maintenance mode.

March 30, 2008: 11:48 am

Plugin denies access to google and search engines?

March 6, 2008: 4:01 pm

I will forward this to all of my friends.

January 17, 2008: 11:44 am

Great, just what i was looking for! Thanks mate!


3gp
January 11, 2008: 2:35 pm

very useful plugin , y put this to my blog and work 100% , IS GREAT MAN !

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :