• About Us
  • Advertise
  • Archives
  • Contact Us
  • Internet Speed Test
  • Smartphone Prices
Sunday, March 26, 2023
Tech Pilipinas
  • Home
  • Telecoms
  • Government
  • Fintech
  • Gadgets
  • Mobile
  • Social Media
  • E-commerce
  • Internet
  • Tutorials
  • Deals
  • More
    • Apps
    • Blogging
    • Business
    • Emerging Tech
    • Giveaways
    • News
    • Security
    • WordPress
No Result
View All Result
  • Home
  • Telecoms
  • Government
  • Fintech
  • Gadgets
  • Mobile
  • Social Media
  • E-commerce
  • Internet
  • Tutorials
  • Deals
  • More
    • Apps
    • Blogging
    • Business
    • Emerging Tech
    • Giveaways
    • News
    • Security
    • WordPress
No Result
View All Result
Tech Pilipinas
No Result
View All Result

Home » Tutorials » How to Password Protect Your WordPress Admin Directory

How to Password Protect Your WordPress Admin Directory

Follow these easy instructions to password protect your WordPress admin area

Luis Reginaldo Medilo by Luis Reginaldo Medilo
March 17, 2018
in Blogging, Tutorials, WordPress
0
Password Protect
1
SHARES
Share on FacebookShare on Twitter

WordPress powers more than a quarter of all websites, so it’s no surprise that it gets hacked frequently. Automattic, the developers of WordPress, does a good job rolling out updates to keep ahead of hackers and other malicious parties. However, many unsavory individuals love to perform brute force attacks on WordPress sites to take advantage of weak password security. So in this article, I will teach you how to password protect your WordPress admin directory or login page to add an extra layer of security.

You might think that the default WordPress login page is enough to keep away hackers. That’s true, but you don’t want to take any chances. Brute force attacks are getting more and more sophisticated by the day. You can totally stop all brute force attacks by putting up password protection on your WordPress admin or login area.

You don’t need to log in to your Cpanel. All you need are a text editor such as Notepad (I use Araneae, such a simple yet amazing tool) and an FTP client like Filezilla.

Create a .htpasswd File

First, we need to create a .htpasswd file. Open this online .htpasswd generator and generate the code. Remember to use a username and password that you can remember easily, and that cannot be guessed by other people. Don’t use the username and password of your WordPress installation; that’s a different one. Copy the code into your text editor and save it as .htpasswd.

Upload the .htpasswd File to Your Server

Fire up Filezilla or any FTP client and log in to your server. Create a folder outside the root directory (public_html) and upload the .htpasswd file there. Make sure that you use an uncommon name for the folder, such as “quickandeasy143”.

Edit .htaccess

Now download the .htaccess file from the root directory and add the following code:

# To prevent loops
ErrorDocument 401 default

# Protect wp-login
<Files wp-login.php>
AuthUserFile /home/zumbsirh/quickandeasy143/.htpasswd
AuthName "Private access"
AuthType Basic
require valid-user
</Files>

<Files admin-ajax.php>
Order allow,deny
Allow from all
Satisfy any
</Files>

Note: change “/home/zumbsirh/quickandeasy143/.htpasswd” to the location of your .htpasswd file. If you don’t know the full server path, please follow these instructions or ask your web host.

Upload the edited .htaccess file to the root directory, replacing the old one (make a backup first, just in case).

Be sure to test it to ensure that it’s working and that you can access the login area after entering your username and password.

Password challenge when trying to access the WordPress admin area

That’s it! Just follow those steps to password protect your WordPress website. Don’t forget to use a security plugin like Wordfence and update your plugins regularly to protect your site further.

Tags: password protectwebsite security
Don't Miss An Article!
Sign up for our free newsletter and get updated every time we publish a new article. We work very hard to bring you the latest in the Philippine and global tech scene.
We will not share your email address. We really hate spam!
Previous Post

Facebook Marketplace is Now Available in the Philippines

Next Post

Xiaomi to Open Its First Authorized Mi Philippines Store on February 17

Luis Reginaldo Medilo

Luis Reginaldo Medilo

Luis is the founder and editor of Tech Pilipinas. A former DOST scholar and electronics engineering student, he is passionate about technology and how it can change the world for the better.

You May Also Like

Tutorials

How to Type U with Accent (ù, ú, û, ü) on Your Keyboard

March 10, 2023
Tutorials

How to Type I with Accent (ì, í, î, ï) on Your Keyboard

February 3, 2023
Tutorials

How to Type O with Accent (ò, ó, ô, õ, ö) on Your Keyboard

February 1, 2023
Tutorials

How to Check Your Autosweep RFID Balance Online

November 24, 2022

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest Articles

How to Check Your LTO Plate Number Online

March 24, 2023

How to Schedule a PSA Online Appointment (2023 Updated Guide)

March 16, 2023

How to Contact Converge Hotline and Customer Service

March 13, 2023

How to Type U with Accent (ù, ú, û, ü) on Your Keyboard

March 10, 2023

Today’s Wordle Answer and Hints (March 22, 2023)

March 22, 2023

Recommended

How to Know Your PLDT Account Number

April 19, 2022
Arcade City

Ridesharing Startup Arcade City to Launch on April 16 Despite LTFRB Order

April 15, 2018

Complete List of Smart All Out Surf Promos

March 27, 2021

How to Transfer Money From BDO to PayMaya

July 1, 2020

How to Apply for an SSS Salary Loan Online: A Step-by-Step Guide

January 9, 2020
Facebook Twitter Instagram Youtube Pinterest

About Us

Tech Pilipinas is the Philippines’ digital lifestyle and technology magazine, helping millions of Filipinos keep up with the challenges of the fast-paced, ever-changing world of technology.

For any inquiries or business proposals, e-mail [email protected].

Get it on Google Play

Browse by Category

  • Apps
  • Blogging
  • Business
  • Computers
  • Deals
  • E-commerce
  • Emerging Tech
  • Entertainment
  • Events
  • Fintech
  • Gadgets
  • Gaming
  • Giveaways
  • Government
  • Internet
  • Interviews
  • Mobile
  • News
  • Reviews
  • Security
  • Social Media
  • Software
  • Startups
  • Telecoms
  • Tutorials
  • WordPress

Popular Tags

Android Facebook GCash Globe Huawei Lazada mobile wallet online banking online payments online shopping PayMaya PLDT Samsung Shopee Smart smartphone Social Security System SSS WiFi Xiaomi

Copyright © 2017-2023, Tech Pilipinas and Luis Reginaldo Medilo. All Rights Reserved.
No part of this site may be copied, reproduced, modified or distributed without the prior written consent of Luis Reginaldo Medilo.
Contact Us | Copyright Notice | Disclosure Policy | Disclaimer | Privacy Policy

  • Home
  • Categories
    • Apps
    • Blogging
    • Business
    • Computers
    • Deals
    • E-commerce
    • Emerging Tech
    • Gadgets
    • Gaming
    • Giveaways
    • Government
    • Internet
    • Interviews
    • News
    • Reviews
    • Security
    • Social Media
    • Software
    • Startups
    • Telecoms
    • Tutorials
    • WordPress
  • About Us
  • Archives
  • Advertise
  • Contact Us
  • Internet Speed Test
  • Smartphone Prices