This “How to change the WordPress Administrator User ID” guide will help you secure your WordPress administrator username. Being the most targeted entry point in your WordPress account, changing the User ID to a higher number will at least make any brute-force attacker work double to get a hand on your admin account.
This recommended security protocol will not make your website attack-proof, as any framework can be compromised no matter the security measure utilized. The goal of this article is to show to the reader the urgent need to make the wordpress install robustly secured, as the default setup leaves the backend open to easy drive-by hacks.
How to change the WordPress Administrator User ID
➤ How to change the WordPress Administrator User ID using SQL and phpMyAdmin
- Tip: You can do this using basic SQL or phpMyAdmin for easier query via CPanel.
WordPress sets the default administrator User ID to 1. Years of development did not move guys at Automattic to at least set this to a random number. Anyone who types-in this URL on a browser will be able to see the default administrator username.
http://nameofyourwebsite.com/?author=1
Change “nameofyourwebsite” to your WordPress website to test on your own server. After typing that URL, and if the User ID is set to 1, you will be redirected to this URL:
http://nameofyourwebsite.com/author/superadministrator/
The super administrator username will show at the end of that URL. If your User ID is set to 1, then the “superadministrator” value will show you your present administrator username. As a quick remedy, we should change the User ID to a higher random number.
Using SQL with phpMyAdmin, you can change the values with these SQL commands:
UPDATE wp_posts SET post_author=’442′ WHERE post_author=’1′;
UPDATE wp_users SET ID = ‘442’ WHERE ID = ‘1’;
UPDATE wp_usermeta SET user_id = ‘442’ WHERE user_id = ‘1’;
ALTER TABLE wp_users AUTO_INCREMENT = 443;
Make sure to pattern the value “wp_” to your own implemented SQL table name, say “mydatabase_”. The number ‘442’ is the value that we will utilize to change the default ‘1’. The number ‘443’ will be the starting User ID value after the first user created instead of ‘2’. Some databases will not accept the command if ‘wp_posts’, ‘wp_users’, ‘wp_usermeta’, if they are not enclosed with a ` grave accent or backquote character. To apply this tweak, refer to the custom command below:
UPDATE `mydatabase_posts` SET post_author=’442′ WHERE post_author=’1′;
UPDATE `mydatabase_users` SET ID = ‘442’ WHERE ID = ‘1’;
UPDATE `mydatabase_usermeta` SET user_id = ‘442’ WHERE user_id = ‘1’;
ALTER TABLE `mydatabase_users` AUTO_INCREMENT = 443;
Let me just reiterate that this will not fix issues with WordPress security, but make your default install and administrator username more secure especially if your website is under a malicious targeted attack. Please don’t forget to chime-in your comments if this works out for you.
posted April 23, 2018 by THE11thROCK for TeraBlitz.com
FAIR USE DISCLAIMER: The following data is for educational, scholarship review and archiving purposes only. By viewing this information, you release the website and its authors from any responsibility or liabilities. Though we verify and maintain the accuracy of the provided data, the absence of unintented typographical and factual errors cannot be guaranteed. Use the page at your own risk. For any suggestions, updates, credits or correction requests, Contact Us: terablitz.rock@gmail.com
TeraBlitz Steam Header Custom Grid Gloss Pack Download
Related Posts
- How to batch rename files with Windows PowerShell command script
- How to redirect or force websites from HTTP to HTTPS via .htaccess
- How to bulk delete WordPress posts in a category via SQL
- How to change the WordPress Administrator User ID
- How to Clean a Dirty PC DIY
- How To Speed-Up Libre Office Startup and Disable the Splash Screen
Hot Topics
- ProjectAlpha Mod unleashes the new KLA army for Red Alert 2!
- PROJECTALPHA – Legendary RA2 Mod Returns with a New Twist
- Speed Notes released: the ultimate note-taking app for desktop
- TeraBlitz Matrix Green: Unveiling the ultimate Rainmeter skin
- TeraBlitz Geeks releases Holy Bible Desktop Lite for Windows
- Patch 1.1 released for The Walking Horde A20.6 mod
- The Walking Horde Overhaul Mod released for PC
- Blitz Republic Mod now available for download via Steam Workshop
- Blitz Republic Rise of Nations Mod ready for August 2021 release
- Top Notepad alternatives in Windows 10 for 2021
- Best Social Media alternative App downloads 2021
- How to post to Instagram via Desktop Browser
- Quick Fix: Night of the Dead black screens, lags and crashes
- Quick Fix: Fixing Red Alert 2 alt+tab issue in Windows 10
- ABZU Rogue Company Rocket League and Rising Storm 2 Vietnam now free!
- How to batch rename files with Windows PowerShell command script
- How to redirect or force websites from HTTP to HTTPS via .htaccess
- How to bulk delete WordPress posts in a category via SQL
- Ultimate PUBG survival manual with tips, tricks and secrets
- How to change the WordPress Administrator User ID
- Quick Fix: Remove or Hide CS GO Steam Player Profile Picture or Avatar
- Google Hangouts Chat Easter Eggs Cheat Sheet 2018
- Freeware Review: QTTabBar
- Tech News: World of Warcraft Battle for Azeroth Expansion
- Tech News: StarCraft 2 goes Free
- Cossacks 3 PC Cheats Codes Secrets
- Act of War Direct Action PC Cheats Codes Secrets
- TeraBlitz Com plays CSGO De_Dust2 April 3, 2016 A
- Blender 3D Commands – Keyboard Shortcuts Cheat Sheet
- Adam’s Venture Origins PC Cheats, Codes and Secrets
- Games Release News: Adam’s Venture: Origins
- Samsung S7 Tech Sheet
- Hebrew Alphabet and Characters Cheat Sheet
- TeraBlitz Com plays CSGO De_Dust2 April 3, 2016 B
- Japanese Hiragana Alphabet and Characters Cheat Sheet
- Ultimate HTML Entities and Character Reference Cheat Sheet
- Japanese Katakana Alphabet and Characters Cheat Sheet
- CAT5 – CAT6 Color Scheme Wire Combination Cheat Sheet
- Ubuntu Linux Versions Release Cheat Sheet
- Tech News: Ubuntu Linux releases 16.04 LTS Beta 2
- Apple iPhone SE Tech Sheet
- Freeware Review: Panda USB Vaccine
- Games Release: Total War Battles: KINGDOM
- Games Release: StarCraft 2 Nova Covert Ops Mission Pack 1
- Tech News: Heroes of the Storm to add Lost Cavern map
- Games Release: Dawn of Steel for Windows devices
- Quick Fix: Remove or Hide CS GO Hud for Screenshots
- Quick Fix: CS GO Missing Crosshair
- Warcraft 3 PC Cheats, Codes and Secrets
- Tech News: Blizzard’s Warcraft 3 patch 1.27a release notes