filmov
tv
Here's How To Never Use Your WordPress Admin User For Better WordPress Security | WP Learning Lab
Показать описание
On most websites the WordPress admin user username is exposed in the source code of the website. Protect your site by using this strategy to never reveal the WordPress admin user account. This way, if a user's account is hacked, they don't have admin privileges and a the damage a hacker can do will be limited.
You may be wondering, how to hackers find my username on the public facing website?
They do it quite easily.
Unless you've done custom editing of your theme template files there's a good chance that your posts show meta data. Meta data are things like date published, category and AUTHOR.
The author is shown as the 'display name' that you chose for your user. Most people have the same username as the display name. So the hackers have your username right there.
Some, more savvy WordPress users, will have a different display name than username.
But a quick check of the source code of their websites reveals their username in the unseen meta data.
If that user is an admin user, the hacker is already half done their job. They have your username, now they just need to guess your password.
So what do we do?
A good move is to create two users for yourself.
1. The admin user
2. An author-level user
You would use the admin user for only admin duties and rarely use that login. I also recommend you use a password generator for that user to create a difficult to guess password.
Use that same password generator to generate the username for the admin user.
That way the WordPress admin user has a difficult to guess username and password.
Keep that login info in a safe place.
Next, create an author-level user for yourself.
This is the user that you will use to publish all your content. I suggest you create a difficult to guess username and password for this account as well. But make the display name something more personal like your name or your pen name.
What about my existing posts that were published by the admin?
I'm glad you asked. If you go to the posts and pages list you will see a list of your posts and pages.
In the top left corner of the table is a check box. Check it and all your posts or pages will be checked.
Then in the bulk actions dropdown menu at the top of the table choose edit.
An edit panel will appear. In the middle of the panel you will see an author dropdown.
Choose the appropriate author and then click on Update.
Now all your posts will be attributed to the author-level user and your WordPress site will be a little more safe.
I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.
--------------
If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.
Connect with us:
Комментарии