DFX Random User IDs
This WordPress plugin randomizes the user_id for the user created on WordPress setup, removing one potential attack factor from the site.
Use with caution
DFX Random User IDs works, but test it on a staging site before relying on it in 2026. It runs on 200+ sites, is rated 4/5 and was last updated 2 days ago, and scores 61/100 on our health check.
- Actively developed — last update 2 days ago
- Momentum — downloads up 363.4% vs the previous 30 days
- Small user base (200+ active installs)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where DFX Random User IDs stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| security | >100 |
| user ids | #4 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 4 from 5 reviews
About DFX Random User IDs
From the official readme · v20261201Description
This WordPress plugin randomizes the user_id for the user created on WordPress setup, removing one potential attack factor from the site.
How it works
Once activated, the plugin will immediately replace the ID for the default admin user (with user ID 1). By default, the plugin will use random user IDs between 1 and 4503599627370495 (to ensure compatibility with Javascript code using the user ID).
All newly created users from that moment will be generated with a random user ID in the defined range.
Settings page
Settings → Random User IDs (Network Admin → Settings on multisite, because users are shared by the whole network) shows:
- The site’s status: whether a user with ID 1 exists, how many users have IDs below 1,000, and how many have an ID that follows another user’s. These are the IDs an attacker can guess.
- The range for new user IDs, which you can change there. The range must hold at least ten IDs for every user, so that finding a free random ID stays quick. Existing users keep their IDs.
- A “More plugins” tab with the author’s other plugins.
How to customize the range for new user IDs
The easiest way is the settings page. You can also customize the range with the WordPress filters dfx_random_user_id_max_id and dfx_random_user_id_min_id, which take precedence over the settings page.
For example, if you want to have all your user IDs between 1000 and 9999 you can add the following lines to your theme’s functions.php file:
function set_dfx_max_user_id( $default_max_id ) {
return 9999;
}
add_filter( 'dfx_random_user_id_max_id', 'set_dfx_max_user_id' );
function set_dfx_min_user_id( $default_max_id ) {
return 1000;
}
add_filter( 'dfx_random_user_id_min_id', 'set_dfx_min_user_id' );
Probably, you’ll want to add these lines to your code before activating the plugin, so your new random main admin user ID is inside your desired range.
External services
Author’s plugin catalog (davefx.com)
The “More plugins” tab of the settings page lists the author’s other plugins. When an administrator opens that tab, the plugin downloads the list from https://davefx.com/plugins.json, at most once a week. Nothing about the site or its users is sent: the request identifies itself only as DFX-Plugin-Showcase and its version, although, as with any web request, davefx.com’s server receives the IP address of the server making it. If the file cannot be reached, a copy bundled with the plugin is shown. Nothing else in the plugin connects to any external service.
- Privacy Policy: https://davefx.com/en/privacy-policy/
Changelog
20261201
- The “More plugins” tab loads its styles through wp_add_inline_style() instead of printing a style tag.
20261121
- New settings page (Settings → Random User IDs): the site’s status, the range for new user IDs, and the author’s other plugins
- The ID chosen for the first user on activation now respects the minimum ID too
- Security: the activation notice’s “Dismiss” link now needs a nonce and the right capability, and the notice escapes the user’s nickname
- The activation notice is shown only to the administrators who manage the plugin (in Network Admin on multisite)
- Code cleaned up to the WordPress coding standards
20260601
- Tested up to WordPress 7.0
- Declared the minimum required PHP version (7.4)
- Added an automated test suite and continuous integration against current WordPress and PHP versions
20201115
- Adding new filter dfx_random_user_id_min_id to customize the minimum allowed user ID number
20190125
- Adding new filter dfx_random_user_id_max_id to customize the maximum allowed user ID number
20170720
- Updating documentation to reflect changes incoming with WordPress version 4.9.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best DFX Random User IDs alternatives
All security plugins →FAQ
DFX Random User IDs: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is DFX Random User IDs free?
Yes. DFX Random User IDs is free to download and use from the official WordPress.org plugin directory.
Is DFX Random User IDs safe to use in 2026?
DFX Random User IDs works, but test it on a staging site before relying on it in 2026. It runs on 200+ sites, is rated 4/5 and was last updated 2 days ago, and scores 61/100 on our health check.
How many websites use DFX Random User IDs?
DFX Random User IDs is active on 200+ WordPress websites and has been downloaded 9,005 times since it launched in May 2017. It was downloaded 672 times in the last 30 days.
Does DFX Random User IDs work with WordPress 7.1?
DFX Random User IDs is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does DFX Random User IDs need?
DFX Random User IDs requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was DFX Random User IDs last updated?
The latest version, 20261201, was released on December 1, 2026 (2 days ago).
Who makes DFX Random User IDs?
DFX Random User IDs is developed and maintained by David Marín Carreño (DaveFX).
What are the best alternatives to DFX Random User IDs?
The most popular alternatives to DFX Random User IDs are Wordfence Security (5M+ installs), Jetpack (3M+ installs) and Really Simple Security (3M+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
