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.
The facts
- Rating
- 4★ from 5
- Active installs
- 200+
- Price
- Free
- Last updated
- 1 Jun 2026
- Added
- May 2017
- Requires WP
- 4.9
- Tested up to
- WP 7.0.4
- Requires PHP
- 7.4
- Downloads
- 8,072
Our analysis
AI-assistedDFX Random User IDs is a WordPress plugin designed to enhance site security by randomising user IDs for newly created users. Once activated, it replaces the default admin user ID and generates random IDs within a specified range for all new users. This helps to mitigate certain types of attacks targeting predictable user IDs.
You can customize the range of random user IDs using specific WordPress filters in your theme’s functions.php file. This flexibility allows you to set user IDs within your desired limits, ensuring compatibility with any JavaScript code that may reference user IDs.
Best for: This plugin is suitable for WordPress site owners looking to improve security by randomising user IDs.
What it does well
- ✓Randomises user IDs for enhanced security
- ✓Customizable ID range using WordPress filters
- ✓Immediate effect upon activation
- ✓Suitable for new user accounts
Where it falls short
- •Limited information on additional features
- •Requires coding knowledge for customization
Verdict
DFX Random User IDs offers a straightforward solution for enhancing user ID security, though it may require some technical knowledge for full customization.
From the developer
David Marín Carreño (DaveFX)'s own description of DFX Random User IDs, lightly tidied.
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.
How to customize the range for new user IDs
You can customize the range used by the plugin for the random generated user IDs by using the WordPress filters dfx_random_user_id_max_id and dfx_random_user_id_min_id.
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.