• About Us
  • Advertise
  • Archives
  • Contact Us
  • Internet Speed Test
  • Smartphone Prices
Sunday, August 7, 2022
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

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. More About Luis »

You May Also Like

Tutorials

How to Contact Cebu Pacific Hotline and Customer Service

July 13, 2022
Tutorials

What is the A3 Paper Size in Microsoft Word?

July 1, 2022
Tutorials

How to Type the Feet and Inches Symbols (′ ″) on Your Computer or Mobile Phone

June 8, 2022
Tutorials

How to Type the Euro Symbol (€) on Your Computer or Mobile Phone

June 5, 2022

Leave a Reply Cancel reply

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

Latest Articles

300+ Memorable and Captivating Captions For Your Profile Picture

July 18, 2022

How to Contact Cebu Pacific Hotline and Customer Service

July 13, 2022

How to Download and Fill Out the Personal Data Sheet (PDS Form)

July 8, 2022

MMDA Number Coding: Are You Allowed to Drive in Metro Manila Today?

July 4, 2022

What is the A3 Paper Size in Microsoft Word?

July 1, 2022

Recommended

Complete Salary Grade Table 2022 for Government Employees in the Philippines

April 3, 2022
Philippines DNS Server for PUBG Mobile Lite

How to Connect to a Philippines DNS Server for PUBG Mobile Lite

September 13, 2018

How to Get the GCash American Express Virtual Pay Card

June 2, 2020

How to Pay Your SSS Salary Loan Online

September 6, 2021
civil service reviewer

Civil Service Exam Reviewer for 2022 (Free PDF Download)

April 3, 2022
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
  • ZIP Codes

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-2022, 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
DMCA Protection Status

  • 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