Wordpress Maintenance Mode Without a Plugin (4 Ways)

Blog WordPress
Zee Ahmed
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Do you want to put your WordPress blog into maintenance mode without a plugin?

Two traditional methods have been depicted in this blog, but I have also included one unique method that is only known to a few people, Cloudflare Edgy. Not sure what it is? Please continue reading.

Do you know? Over 2,000 maintenance mode plugins are available for WordPress, which is shocking. Most websites are hacked through plugins, so you are recommended not to use them.


2000 Maintenance Plugins For WordPress


In this guide, you’ll learn:

  • What is WordPress maintenance mode?
  • Why activate WordPress maintenance mode without a plugin?
  • 3 ways to put your WordPress site in maintenance mode

What Is WordPress Maintenance Mode?

WordPress is an excellent platform for building websites, but even the best software needs maintenance. That’s where WordPress maintenance mode comes in.

WordPress Maintenance Mode refers to the webmaster repairing, servicing, and fixing the WordPress website. The webmaster uses it to inform visitors that he or she is working on the site. In addition, it provides an estimation of when the site will go live.

Furthermore, maintenance mode has a server status of 503, which indicates that the server is currently unable to handle the request due to temporary overloading or maintenance.

Why Activate WordPress Maintenance Mode Without a Plugin?

One of the most common ways that WordPress websites are hacked is by attackers exploiting vulnerabilities in plugins or themes. By putting your WordPress site into maintenance mode without a plugin, you can reduce the risk of being hacked by making it more difficult for attackers to access your site.


Plugins Are The Main Reason WordPress Gets Hacked


Hackers have sometimes exploited vulnerabilities in maintenance mode plugins to access websites. This can be a severe security issue, as maintenance mode is supposed to be a way to secure a site while it’s being updated.


Maintenance Plugins Got Hacked


Hackers exploit the majority of vulnerabilities in plugins because they are not frequently updated.

Generally, hackers do not attempt to discover vulnerabilities within the core of WordPress; rather, they focus on plugins and themes since these are easier to attack.

As a result of the above reasons, I strongly recommend that you should enable WordPress maintenance mode without the use of a plugin because of this reason.

How to Put Your WordPress Site in Maintenance Mode

Let me explain the three methods in detail so that you can easily put them into practice:

1. Hardest Way – .htaccess

This method creates a simple HTML file that loads when a user visits your site.

It looks like this:



You can also download the maintenance HTML file for free as shown above from here.

Otherwise, you can copy and paste the below code to make your maintenance HTML file.


Upload in the root directory of your website.

Once you’ve uploaded it, paste the following code into your access.

2. Easiest Way – Function.php

Function.php is a very user-friendly file since it doesn’t require any complex work on your part.

Go to Appearance and click Theme Editor.


Funtion.php For Maintenance Mode


Paste the code at the bottom of the file.

It looks like this:


Maintenance Example



If your theme consists of parent and child themes, you have to paste it into the child’s theme function.

You can type any message that will appear to the users upon visiting any page on your blog.

3. Easy Way – Cloudflare Edge App

Cloudflare is a popular content delivery network (CDN), but it offers much more than that. It provides a variety of applications that can help improve your website’s security, performance, and reliability. So whether you’re looking for improved security, faster page loading times, or better reliability, Cloudflare has an app for you.

Go to Cloudflare Apps and explore apps you can use without slowing down your server.


Cloudflare Apps


Find the Edgy app that can be used to put our website in maintenance mode.


Cloudflare Edgy App For Maintenance Purpose


It’s crucial to install Cloudflare on your WordPress site so that Edgy can work.

Is Cloudflare not installed? Sign in to Cloudflare and click to +Add a Site


Cloudflare Add A Site


Enter your domain name in the box below. Be sure to check spelling and spacing before hitting enter. Once you have typed in your domain name, hit the Enter key.


Enter Your Site In Cloudflare

You can select the free plan if you’d like. This is an excellent option for those who are on a budget. If you need more features, we have paid plans available as well.


Selecting A Free Plan For Cloudflare

Your DNS records will be scanned and captured by Cloudflare. Click Continue.


Click Continue In Cloudflare That Show All DNS Records

We recommend that you change your nameservers to Cloudflare.


Change Nameservers To Cloudflare


To change the nameservers, log in to your domain registrar, and find the name servers field. Change the nameservers found on your old hosting provider to the Cloudflare nameservers.


Name Change Name Servers From Your Registrar


Don’t worry; your website will not face any downtime since Cloudflare has received your DNS records.

Wait a few minutes until your website runs on Cloudflare.

Once activated, go to the Apps section and search for Edgy.


Edge Cloudflare App


Click on Preview on your site.


Preview Edgy


Now enter your email address; not crucial to be true 🙂


Type Email To Edgy


Scroll down a little; you’ll see Activate Maintenance Mode. Please enable it and save the changes.


Activate Maintenance Mode In Edgy Without A Plugin


It will show the maintenance page like this:


Maintenance Exmaple Of Edgy


You can create your custom maintenance page if you’re not conformable to the above maintenance page.

You can add your HTML code as well in the Edgy app.

Select the option “Render an HTML template that I provide” and paste the HTML code.


Render A HTML Template That I Provide

4. Simplest Method – Created Page as the Homepage

First, log in to the WordPress dashboard using your username and password.

WordPress Dashboard

Once you’re logged in, take a look at the left sidebar. You’ll see an option called “Pages.” Click on that, and it will take you to a page where you can manage existing pages and create new ones.

Pages In Wordpress

Now, in order to create a new page, look for the “Add New” button and click on it. This will take you to the page editor, where you can create your new page.

Add New Page In WordPress

You’ll be prompted to give your new page a title in the page editor. I suggest calling it “Under Construction.” Feel free to name it whatever you like, though.

Under Construction

Once you’ve entered the title, don’t forget to hit the “Publish” button to create the page and make it live on your website.

Now that the page is created let’s set it as the homepage. Go to “Settings” > “Reading” in the left sidebar. Change the settings for the front page to the “Under Construction” page.

Page Selection From Reading In WordPress

Finally, don’t forget to hit the “Save Changes” button to apply the changes and set the “Under Construction” page as the homepage. And that’s it; you’re all set!

Page Created

Final Thoughts

Several methods can put your WordPress blog into maintenance mode without a plugin.

If you’re already using Cloudflare, Edgy is recommended since it’s the fastest and doesn’t strain your servers. The best part? You don’t need to add or edit anything.

If you aren’t a fan of Cloudflare, you should go for the function.php method, which is quick and easy. You need to paste the maintenance code into the function.php, and you’re ready.

Are you a developer? I hope you’ll use the maintenance.html way since it suits your lifestyle and can change any design aspect.

Do you have any other way to put WordPress maintenance mode without a plugin? Did the above ways work for you? Let us know in the comment section.