# Website Unavailable for maintenace code

**URL:** <https://forum.kirupa.com/t/website-unavailable-for-maintenace-code/238512>\
**Category:** Uncategorized\
**Created:** [September 12, 2007, 7:30am UTC](https://forum.kirupa.com/t/website-unavailable-for-maintenace-code/238512 "2007-09-12T07:30:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishalraj9](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vishalraj9](https://forum.kirupa.com/u/vishalraj9)\
**Post date:** [September 12, 2007, 7:30am UTC](https://forum.kirupa.com/t/website-unavailable-for-maintenace-code/238512/1 "2007-09-12T07:30:16Z")

</div>

Hi all,  
Iam looking to make a “Website Unavailable for maintenace” kind of a code in PHP. This is how I planned:  
Whenever I have to update the website (which is in PHP), I can just set an option from Admin saying that the website is down & no one will be able to access the website until I restore it back from my Admin panel. Can anyone please tell me how to do this? In my searches, I came across 503 error but it did not really help me very much.

Any help is highly appreciated.

Thank you in advance.
