Click here to Skip to main content
12,821,315 members (33,519 online)
Click here to Skip to main content
Alternatives (2)
Add your own
alternative version

Tagged as


32 bookmarked
Posted 4 Jul 2011

Put the website in Maintenance Mode (Under Construction)

, 25 Dec 2011 CPOL
This Tip/Trick shows how to make the website available only for the local clients


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

6 Jul 2011
There is also the "app_offline.htm" in the root path
27 Dec 2011
Mukund Thakker
Here is the source code for another solution:Global.asax:void Application_BeginRequest(object sender, EventArgs e){ if (ConfigurationManager.AppSettings["MaintenanceMode"] == "true") { if ((ConfigurationManager.AppSettings["ByPassUrl"].Contains( ...


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Bahram Ettehadieh
Web Developer
Iran (Islamic Republic of) Iran (Islamic Republic of)
I hold a BS degree in software engineering and am a Microsoft Certified Solution Developer(MCSD).
I have more than 8 years of experience in .NET developement, mostly web develop using C# and ASP.NET.

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 25 Dec 2011
Article Copyright 2011 by Bahram Ettehadieh
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid