how to down a website for a particular time in IIS?

Posted by Prabu_Spark under ASP.NET on 7/18/2014 | Points: 10 | Views : 375 | Status : [Member] | Replies : 1
Hi sir,
I hosted the website in IIS 8.1, its working fine. I need to down the particular website between 10pm to 12 pm for maintenance purpose. Is it possible? Kindly give me the solution for this problem.

[Note: Need to down the hosted website for the particular time in IIS WebServer]

With regards,


Posted by: Sheonarayan on: 7/19/2014 [Administrator] HonoraryPlatinum | Points: 25

Hi Prabu,

Thanks for asking question.

I would not recommend completely down the website for a particular period as if its a public website it gives wrong impression. Instead you can do following.

In the Global.asax, in Application_onBeginRequest or alike event, check for the time before allowing to proceed further and if the time falls in between your specified time, redirect the user to a default error page to maintenance page.

This should be the ideal solution, making the website completely unavailable is not good either for end user or for search engines.


Sheo Narayan

Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response