Your Hostinger WordPress login is worth more than the site: whoever gets into hPanel can reset the WordPress admin, read the database and delete everything. So the job is not “make wp-login.php harder” — it is closing every door that leads to the same room.
There are five doors on a typical Hostinger WordPress install, and most sites lock one of them.
Know which doors exist
| Door | What it reaches | How it gets attacked |
|---|---|---|
| wp-login.php | WordPress admin | Password guessing, credential stuffing |
| xmlrpc.php | WordPress API | Brute force amplification, pingback abuse |
| hPanel | Hosting, files, database, email | Reused passwords, phishing |
| FTP / SFTP / SSH | Every file on the server | Stolen credentials, no rate limiting |
| REST API + application passwords | Content and plugins | Leaked credentials in a plugin or script |
Hardening one and leaving four open is how sites get compromised while their owner believes “we have Wordfence”.
Layer 1: long, unique, stored properly
Credential stuffing works because people reuse passwords. Every one of those five doors needs a different password, generated and stored in a password manager rather than remembered.
WordPress’s own generator is fine: the “Generate password” button on the user profile calls wp_generate_password(), which pulls from wp_rand() rather than PHP’s weaker rand(). Default length is 12 with special characters enabled. Use 20+ for anything that reaches the server.
Never reuse the hPanel password anywhere. It is the master key — a leak from an unrelated breach is enough to own the site.
Layer 2: two-factor, on every door that offers it
- Hosting account: turn on two-factor authentication in the Hostinger account security settings. This is the door people forget, and it is the most powerful one.
- WordPress: a 2FA plugin for admin users. Free options cover TOTP apps; some also support email codes as a fallback.
- Email on the domain: if mailbox access can reset your WordPress password, that inbox needs 2FA too.
2FA is the single most effective control here. It defeats password guessing completely, and it defeats credential stuffing even when the password leaked.
Layer 3: rate-limit and hide the login
# wp-config.php — limit login attempts
# (plugin-based is easier; this is for reference)
define( 'WP_LIMIT_LOGIN_ATTEMPTS', 5 );
In practice, use a plugin or your host’s built-in protection rather than hand-rolled code. What matters is that repeated failures are throttled, and that attempts are logged so you can see them.
Changing the login URL is worth doing, but treat it as noise reduction, not security: it stops automated scanners, not a determined attacker who can read your site’s links.
Layer 4: turn off what you do not use
- XML-RPC. If no app, jetpack connection or publishing tool needs it, disable it at the server level. It is the most abused endpoint on WordPress.
- File editing.
define( 'DISALLOW_FILE_EDIT', true );removes the theme and plugin editors, so a stolen admin session cannot be turned into code execution. - Unused plugins and themes. Deleted code cannot have a vulnerability. Inactive plugins still contain exploitable files.
- Default admin usernames. “admin” is the first guess in every list. Rename or create a new administrator and demote the old one.
Layer 5: separate credentials for automation
Application passwords exist so a script can authenticate without your real password. Use them for anything that talks to the site — backups, monitoring, a publishing bot — and revoke them when the tool is gone.
The same logic applies to SFTP: one account for you, no shared accounts, keys instead of passwords where the host supports it.
Layer 6: know when something happens
Locking the doors is half of it. The other half is being told when someone tries the handle.
- Turn on login-failure notifications so an email arrives when an admin logs in from a new location.
- Keep a security plugin’s firewall and login protection active — Wordfence and Solid Security both do this, and both are free.
- Check the WordPress user list monthly. An unexpected administrator is the clearest sign of compromise there is.
- Watch the host’s access logs for repeated POSTs to
wp-login.phpfrom one address.
If you think the login was compromised
- Change the WordPress password and the hPanel password from a different device, in that order.
- Rotate the WordPress salts in
wp-config.php— this invalidates every existing session and forces everyone to log in again. - Check for new administrator accounts and remove them.
- Revoke all application passwords.
- Scan for malware; a compromised login usually means files changed too.
- Restore from a backup taken before the breach if you find modified core files.
Rotating salts is the step people skip. It is one line of copied text, and it ends an attacker’s session immediately.
The minimum viable setup
- Unique 20-character passwords in a manager, for WordPress and hPanel.
- 2FA on the hosting account and on WordPress admins.
- Login attempt limiting plus a firewall plugin.
DISALLOW_FILE_EDITand XML-RPC disabled if unused.- Application passwords for every automated tool.
- A backup you have restored at least once.
That list takes an afternoon. Most compromised sites we see were missing three of the six — usually 2FA, the file-edit lock and an updated backup. Keeping those in place is most of what a WordPress care plan does month to month, and if you want stronger admin passwords everywhere, how to use a WordPress password generator covers the built-in tools.
FAQ
Is the Hostinger login the same as my WordPress login?
No, and that is the point. hPanel controls hosting, files and email; WordPress controls content. Both lead to the same data, so both need strong, separate credentials and 2FA.
Does changing the login URL make my site secure?
It reduces automated noise and hides you from generic scanners. It does not stop a targeted attack, and it is not a substitute for 2FA or rate limiting.
How often should I change passwords?
Modern guidance favours long unique passwords with 2FA over forced rotation. Change them immediately after any breach, staff departure, or shared-account handover.
Will a security plugin slow my site down?
A firewall and login protection add little overhead. Full file scans are heavier, which is why they usually run on a schedule rather than on every request.
