Home » WordPress Tutorials » Maintenance » How to Make WordPress Site Private

How to Make WordPress Site Private

Maintenance

There are plenty of reasons you might want to know how to make a WordPress site private.

Say, you got your first WordPress Hosting, and dived right into our WordPress tutorials, to find out how to create a WordPress website. That is the best thing you can do if you don’t have the knowledge needed. Probably you won’t be pleased to find out that WordPress is designed in such a way, that from the moment the CMS is installed, the website is up and running. We, the users, need to find out how to make WordPress private.  Of course, it is worth noting that it is rarely the case that a new website will get any visitors before it is marketed the right way.

Still, as far as I am concerned, every website should be accessible only by the developers, while the construction process lasts.

In this article, we’ll cover two ways of making a WordPress website private. The first will show you how to put WordPress site under construction. Thus, the website will be inaccessible only while  you are crafting it, and whenever you decide that you are ready to mesmerize the world, you’ll be able to publish it with a few clicks.

The second part of this tutorial will show you how to set a WordPress blog to private, so you’ll be the only one that will be able to access the website. It could be your online diary. With your own domain and hosting account.

 

How to Make WordPress Private While Working on It

While you are creating your website, it doesn’t need to be public. No one needs to see your unfinished product. That way, you’ll feel more comfortable while working. You’ll be able to make mistakes while learning.

The best, or at least the easiest, solution for making your WordPress private while working on it, is by adding a plugin, that will do that for you.

I have a favorite plugin to do that with every website that I am creating. Of course, you can use whichever plugin you want that will help you achieve the same result. Still, the plugin that I’ll recommend you has a simple but versatile settings menu, and a great image to greet the users that have landed on your website one way or another.

If you know how to install a WordPress plugin, you need to type “under construction” in the plugin search field. The first result is the one you’ll need. In the search result, look for this plugin:

 

 

Once you’ve installed and activated the plugin, you’ll be able to access it in the sidebar menu. To find it there, hover over the Settings option, and look at the bottom of the sub-menu that emerged.

 

 

By clicking on the Under Construction option, you’ll trigger a new page to load. On that page, you’ll be presented with all the options of the plugin, that will help you make your WordPress private while working on it. Here is what the page looks like:

 

 

It’s here on that page where all (or at least most of the) magic happens.

What you need to do is just click on the first big red OFF button. It will change to a big green one, saying ON. 

Like so:

 

That is all, now click on Save Changes, and your website will be made private while you are working on it.

Don’t miss to click around the options and to customize the under construction page that the users will see, when trying to access your website.

 

How to make WordPress Site Private

I honestly believe that the whole purpose of being online is to be publicly visible. Yet, you may like the design of a WordPress theme, or just want to have a website, that will only be accessed by yourself.

Whatever the reasons are, here is how to make a WordPress site private.

  1. Enter your Hosting Admin Panel.
  2. Find and enter the File Manager
  3. Once there, get into your website’s file directory
  4. Find and open the .htaccess file.

    NB! There is a chance that your installation won’t have a .htaccess file in that directory. If so, you’ll need to create it, by using Sublime, Notepad ++ or another code editing software.

  5. When you enter your .htaccess file, you’ll need to add the following code piece

    order deny, allow

    deny from all
    allow from XXX.XXX.XX.XX, just before the # END WordPress line.

After you’ve added the code, your .htaccess file should look something like this:

 

 

Where of course XXX.XXX.XX.XX is the IP address from which you want the website to be accessible. To find your IP address, the easiest way is to write my IP in Google. More often than not, the search engine will show you your IP in the so-called knowledge graph.

This is how to make a WordPress site private!

Was this post helpful?

i

Relevant tags:

Create your WordPress website today!

Connect

Editor’s picks:

Gutenberg Tutorial: How to Move Blocks in WordPress

What you need to know: The WordPress Block Editor allows you to move blocks up and down the document structure in order to rearrange the content contained within those blocks. The most popular way of moving blocks is by dragging a block from one position and dropping...

Gutenberg Tutorial: Deleting a Block in WordPress

What you need to know: You can delete a block in WordPress by selecting it and pressing the Delete key on your keyboard. Alternatively, you can press the three-dot button in the Contextual Toolbar to access the Remove block option. Lastly, it is also possible to...

Gutenberg Tutorial: Using Block Patterns in WordPress

What you need to know: A block pattern in WordPress is a group of two or more regular WordPress blocks. These blocks come in a sensible layout that you wouldn’t need to modify in most cases. Instead, you just need to add your own content to the block pattern. You can...

Gutenberg Tutorial: Using WordPress Reusable Blocks

What you need to know: Gutenberg features reusable blocks that allow you to quickly insert the same content with one click. You can mark any block or block pattern as reusable. You can find your reusable block collection in the WordPress Block Library. Have you ever...



Create your WordPress website today!


Start now