Home Guides Glossary

Securing WordPress Admin in Linux

This article shows you how to add an additional password to your wp-admin folder under WordPress® on Linux shared hosting. A few important things you need before you get started:
  • This article is for advanced users. If these steps are done incorrectly, you could interrupt the connection between the server and database.
  • You need to know what a .htaccess file is and be comfortable editing one.
Why add an additional password?

You can add an extra layer of security by requiring an additional password before users are allowed to access your wp-admin folder. This can prevent attacks that attempt to bypass the WordPress admin login.

Requiring an additional password shouldn't interfere with plugins, themes, and stock WordPress installations.

To Secure WordPress Admin in Linux

  1. Set up password protection on your WordPress installation's wp-admin directory. For more information, see Password Protecting a Directory in Your Shared Hosting Account.
  2. Using your hosting account's editor, open your wp-admin/.htaccess file.
  3. Add this code to the bottom of the file:
    <Files "admin-ajax.php">
    Order allow,deny
    Allow from all
    Satisfy any
    </Files>

Now, when you visit your WordPress admin login, you are prompted to log in.

Domain Registration

Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. We have everything you need to get online with your new domain.

Website Builder

Build an amazing website in just under an hour with Website Builder. Take advantage of designs created just for your industry and then customize them to reflect your one-of-a-kind idea.

Website Security

Protect your website and keep customers safe. Your comprehensive Website Security solution. Get peace of mind by securing your websites. We fix hacks to help prevent attacks.

cPanel Hosting

Everything needed to give your website the high-performance home it deserves.  Protect transactions and secure your customer's data with a SSL Certificate
Copyright © 2005 - 2023.  All rights reserved.  Privacy Policy