wpvidZ

Learn WordPress With Video Tutorials

  • Blog
  • Browse
    • Backup & Restore
    • WordPress Localhost
    • WordPress Hosting
    • WordPress themes
    • Version Updates
    • Plugin Tips
    • Security
    • Tutorials
    • WordPress SEO
    • WP Miscellaneous
    • Sitemap
  • WP 5+ Tutorial
  • Search
wpvidZ Blog Security WordPress Admin ID with a Custom Number

Security

WordPress Admin ID with a Custom Number

Last updated on February 18, 2017
Posted on May 29, 2014

I am sure most of you guys already know one of many ways to keep your WordPress site secure after installation is to change WordPress admin ID and username.

In most themes, the author name and link to the URL will be displayed by default, although you can remove that, WordPress has the same files, and this is why, it’s easy to track things in the URLs.

Even if you changed the display name, there is still a big problem even if you have changed your Admin username, which is the admin’s ID number, which is by default 1.

Now, you might want to delete the or replace the WordPress Admin ID no 1, create a new Admin user. But this is also very easy to guess, you will definitely have the ID no 2. Even if you create again and again, you will be tired adding the new users after the 10th number.

Export WordPress Database using phpMyAdmin

Plus, if you have pretty permalink, after typing yourdomain.com/?author=1 people will know your login name. You can replace the 1 number with any numbers.

The solution? WordPress Admin ID with a custom number

In my opinion, the only way to get custom ID is creating the custom ID number administrator in phpMyAdmin.

I found this good resource that guided me through the database process. I don’t choose the SQL command line, because I was in doubt that it may break my db, so I choose the knob way, which is manually creating it on the database itself.

What we will basically do:

1. Create many users in our site, and make these users as authors or contributors, see the WP roles and capabilities codex here.

2. Create an admin with a custom ID number

3. We only login with the admin we created on no 1, and apply all post authors to the users on no 2 to actually confuse people who have bad intentions to hack our site.

In this video I am going to show you, first, to change your nickname and display name in public comment or posts, then create WP administrator username and custom ID number via database directly.

  • Is my site loading fast? I use this shared hosting
  • Try my theme >

Because we want to work with the database, it is very important to backup your database first. Want to know more how to backup the database? This video tutorial shows you how to backup quick your database, and this one to backup automatically with a plugin.

Let’s get started

1. Creating the new Users

1. Login to your dashboard, domain.com/wp-admin

2. Hover on “Users” and select “Add New” button

Add new user in WordPress
Add new user in WordPress

3. Fill up the forms, make sure following:

a. Puting the email address that you haven’t used in the website.
b. The role should be author or contributor. I recommend author as you can publish the post without waiting to be approved by Admin.

New user WP form
New user WP form

Repeat the process until you have many users as authors and contributors.

2. Creating custom WordPress Admin ID with custom number

1. Access phpMyAdmin.

2. Choosing the right database, if you have many and not sure which one, you can check on wp-config.php.

3. Click on tableprefix_users tables, click on “Insert” button. Replace the tableprefix_ with your table prefix or it’s wp_users if you still have the default one.

Fill up the forms, I use 10209 as my admin ID number (replace my data with your own) and click “Go” once you made database backup and once you’re done with the forms as shown in the pictures.

Having WordPress admin ID with custom number with wp users table
wp_users, insert

4. Click on tableprefix_usermeta, and click on “Insert” button again, and fill the forms as following;

 

wp_usermeta and insert
wp_usermeta and insert
a:1:{s:13:"administrator”;s:1:"1";}

I strongly recommend typing the double quotes in the code manually instead of copy and pasting.

Click “Go” and click “Insert” button again. Fill the forms;

wp-user-level form
wp_user_level

5. Login to your dashboard with this newly created admin user login and password, and edit your profile by hovering the icon on the top right of your dashboard, and select “Edit My Profile” link.

Edit My Profile
Edit My Profile

Change some necessary stuff here as you like.

If you still have Admin ID 1 user, then I recommend you to change the role to subscriber or author and not deleting it from “Users” page.

3. Assign your new posts to the authors or contributors we did on the no. 1 above (creating the new users section). Note: never the admin, we will use admin only to login, never to post.

Author of the post, never the admin, only authors or contributors
Author of the post, never the admin, only authors or contributors

That’s it. Of course, this is not the only one we can secure our blogs, but one of the many ways we can do to protect our websites, share your experience 🙂

admin id author database phpmyadmin

Latest Posts

  • Twenty Nineteen Theme Full Tutorial – Creating a Website
  • Uninstall W3 Total Cache Plugin – Incredibly Easy!
  • Create WordPress Website 2018 on SiteGround Genesis
  • WordPress Noopener Noreferrer Rel Attribute Quick Fix
  • WordPress CDN Setup with MaxCDN and W3 Total Cache Plugin
  • Twenty Seventeen One Page Parallax Scrolling Website Style
  • How To Add Google Map in WordPress Contact Page
  • WordPress 4.7 Justify Text and Underline
  • Twenty Seventeen Footer “Proudly Powered By WordPress” Text
  • How To Add YouTube Subscribe Button To WordPress Website
← Plugin to Check TimThumb vulnerability

Comment form on this post is closed after 60 days.

Search

Worth Reading

  • Plugin to Check TimThumb vulnerability
  • TimThumb WordPress vulnerability - is your theme or plugin affected by TimThumb security?
  • How To Secure Your Blog
  • Wordpress security with Plugins Part 1

Backup & Restore

Backup WordPress Without a Plugin or FTP

Export WordPress Database using phpMyAdmin

BigDump Alternative – When BigDump Failed Importing Large WP Database

At This Place The Current Query Includes More Than 300 Dump Lines

View All..

Live Online Website

View All..

Offline Installation

How to Upload WordPress localhost to live server manually

Steps to Install WordPress on Windows 8 and WAMP 2.4

Install WordPress on Mavericks OS X 2014

Maximum upload file size in WAMP WordPress

View All..


WPvidz Hosting Image

  • About Me
  • Contact
  • Affiliate Disclosure
  • Privacy Policy
  • Term of Use

Copyright© 2023 wpvidz.com SG2021 | sitemap.xml


WPvidz.com is independent from WordPress.org but is proudly powered by WordPress & its block-based editor (Gutenberg)

WpvidZ.com uses cookies" to give you the best browsing experience possible. If you click "I Accept" below then you are consenting to this. For more information about your privacy settings on this website, please visit the Privacy Policy page. I Accept