How To Hide Your WordPress Login

Posted on April 27th, 2018 by Jean

After receiving several alerts today that “user locked out from signing in”, I decided to hide my wordpress login page. I had successfully utilized this method of hiding my login page years ago on my business site, but could not find the directions today when I so desperately needed them.

A quick review of 2 key wordpress files allowed me to figure out how to proceed. There are plugins out there to hide your login, but this is the method used through your cpanel.

PART ONE

Log in to your cpanel account

Choose File Manager from the Files Section

Under “settings” (upper right corner), select “Show Hidden Files”

In your home file, look for .htaccess

Highlight .htaccess and click EDIT from your top tool bar

A text editor notice appears. Click EDIT to proceed

After text in this file, input the following

ErrorDocument 401 “Unauthorized Access”
ErrorDocument 403 “Forbidden”
<FilesMatch “wp-login.php”>
AuthName “Authorized Only”
AuthType Basic
AuthUserFile /home/yourdirectory/.wpadmin
require valid-user
</FilesMatch>
<Files 403.shtml>
order allow,deny
allow from all
</Files>

Insert your directory name (noted in red above). It will show you at the top of the page, CURRENTLY EDITING HOME/______/

You can also enter IP addresses you’d like to block. They would be entered after </files>

Example:

deny from 77.92.73.102
deny from 66.147.244.109
deny from 208.117.46.9

And so on. My list of blocked IPs is quite long.

Hit SAVE

PART TWO

Now you have to create the .wpadmin file.

Click on the top file in the tree on the left of your cpanel. It should say home/_____ <— your directory

Click on NEW FILE (top left of the tool bar)

Name the file .wpadmin

Highlight the file and choose EDIT

A text-editor warning appears, click EDIT and GO

In this file, you need to add a code that is generated here.

Using the online .htpasswd generator, choose your user name and password. These do NOT have to match your WordPress login.

Copy the code that is generated, and paste it into your new .wpadmin file. SAVE

You’re done!

When you try to access your login page, you will now be greeted with a new window asking for your authorized user name and password.

The Frenchman Who Abandoned Me (Updated)

Posted on February 20th, 2010 by Jean

This blog was originally posted on MySpace October 3, 2008. It was my submission to the now defunct Group Blogging Experience (GBE). The hostess, Alicia, would suggest a word each week, and participants would define the word with stories, photos, poems, etc. The blogs were linked by Alicia, and new friendships were formed.
 
An update to this story has been added at the bottom. Thanks for reading!

 
GBE 56 – ABANDON
 
We hired a carpenter.

Not really him.


 
He’s french.
 

Not too stereotypical.


 
He has done work for us in the past.
 

Mantel, tiled fireplace, entertainment center, and bar.


 
Yesterday he swung by the house to begin installing our new entertainment center. All the pieces were brought into the room. We thought, in a few hours, everything would be in place. But no. He had to go pick up his son, and promised to be back.
 

Don't believe him.


 
Hours passed. He did not return.
 
His son called.
 

You did not know I was so fluent in French.


 
Mon Dieu! No, we don’t know where your father is.
 
Then his cat phoned.
 

Have you ever tried consoling a cat over the phone?


 
Day turned into night. The carpenter never returned.
 
If anyone can read these plans…
 

Zee plans.


 
… and figure out how to complete the project…
 

Install the secret door so we can hide behind the t.v.


 
… we would be forever grateful.
 
F.Y.I. ~ The last time he abandoned the project, we found him in front of a slot machine.
 

Sacre Bleu! You 'ave found me!


 
 


 
UPDATE 02/20/10: The Frenchman professed to being pulled away by a family emergency so secretive even his own son and cat were not made aware of it. I still see him from time to time, wandering the grocery store in his unbuttoned Hawaiian shirt, chest hair wild and unkempt in stark contrast to his precisely-groomed mustache. I imagine him muttering under his breath, “Zere iz zee beach ooh scorned moi.”, but thankfully he doesn’t notice me.
 
My husband trolled a local bar for a cheap replacement who would finish the job for cash. After much coaxing, he finally found a taker, and our entertainment center was completed. The secret door allowing access to the space behind the t.v. was never installed, bursting my dreams of hiding from the children and having wild sex with the television blaring. Or maybe just hiding from the children and sitting quietly in the corner.
 

Completed but not the ultimate hiding place.


 
• Has a Frenchman ever let you down?
• Do you take part in blogging groups?
• Where do you hide from the children?

Menu

  • [instagram-feed]
  • Enter your email address:

    Delivered by FeedBurner

     
    Follow on Bloglovin

  • SPONSORS


     
    Stock Photos & Images

© 2014 JEAN HAS BEEN SHOPPING. ALL RIGHTS RESERVED.