A customer sends you a screenshot. Your site is redirecting them to a pharmacy spam page, but when you open it in your own browser, everything looks normal. If you suspect your WordPress site has been hacked, a clean homepage doesn’t rule it out. Now you’re wondering how long this has been going on and how many people have already seen it.
At MalCare, we’ve cleaned up enough compromised WordPress sites to know that pattern well. Attackers hide their changes from the owner and show them only to the visitors they want to reach.
The entry point is rarely dramatic and loud. Usually it’s an old plugin nobody updated, a password reused from another site, or a hosting panel nobody checked.
This guide walks through the website hacking techniques we see most often, how each one changes a site, and the WordPress security measures that help stop them.
TL;DR: Most WordPress compromises start with an outdated plugin or a weak login, so fix those two first. Turn on multi-factor authentication, keep every layer updated, and scan your site for malware with MalCare before you trust a clean homepage.
The techniques we see a lot
Attackers reuse a small set of methods, and each one needs a different defense. Knowing which family an attack belongs to tells you where to look first.
- Brute-force logins: Automated tools try long lists of common passwords against your login page.
- Credential stuffing: Attackers use username and password pairs leaked from other breaches.
- Phishing: A fake login page or urgent email tricks someone into handing over their details.
- Vulnerable plugins and themes: Known flaws in unmaintained code give attackers a way in.
- Injection and browser attacks: SQL injection, cross-site scripting, and cross-site request forgery abuse how a site handles input.
- Malware and backdoors: Injected code redirects visitors, sends spam, or keeps a hidden way back in.
- Traffic floods: A distributed denial-of-service (DDoS) attack overwhelms the site with requests until it slows or stops.
Attackers often combine these. A stuffed password gets someone into the admin area, and a vulnerable plugin lets them plant malware once they’re there. Treat each technique as a link in a chain. Start with a WordPress security audit to identify the weakest points you can fix today.
📝 Note: Most attacks that cause lasting damage start with the first two items on this list, so start your audit there.
How attackers get past your login
Your login page gets tested constantly, and most attempts fail. The ones that succeed almost always involve a password that was guessed, reused, or handed over.

Brute-force attacks rely on short, common passwords, and automated tools try the most likely ones first. Credential stuffing works whenever you reuse a password exposed in another breach. Learn how stolen passwords put WordPress sites at risk even when your plugins are up to date.
Phishing sends a convincing email about a payment or a security alert, then steers you to a copy of your login screen.

An attacker who gets into an administrator account can install a plugin, create a second admin, or change settings without touching your code. A stolen browser session can grant the same access without a password, which is why signing out unknown sessions matters during any incident.
Check your own login today. Open Users in the WordPress admin and read the administrator list. Every administrator should be someone you can name. An unknown administrator is an active incident until you prove otherwise.
Then lock the door properly. Give each account a unique, long password, turn on two-factor authentication for every administrator, and remove accounts nobody uses. Treat any urgent request for your administrator password as phishing, even when it claims to come from your host, because legitimate hosts don’t ask for it by email.

How outdated plugins open the door
When we work through a cleanup, the entry point is often a plugin the owner barely remembers installing. Plugins and themes account for most known WordPress vulnerabilities, and an abandoned plugin stays exposed long after a fix exists.
A SiteLock study found that 44 percent of plugins in the WordPress repository had not been updated in more than a year. Those are the plugins attackers test first, because they know the flaws will still be there.
Popularity and price really don’t make a plugin safe. There’s a bunch of questions you should be asking: who still maintains it, how often it gets updated, and whether you still need it at all. A plugin installed for a campaign three years ago is exactly the kind of weak point attackers look for.
We recommend going through your plugin list today. Check your plugins and themes for known vulnerabilities, delete anything you don’t use, and replace abandoned tools with maintained ones.

Ensure you also take a backup before every update, so a failed update doesn’t turn into a second problem. Deactivating a plugin doesn’t remove its files, so delete the code you no longer need once you’ve confirmed nothing depends on it.
📝 Note: Deactivating a plugin leaves its files on the server. Those files can still be exploited, which is why deletion matters more than deactivation.
How injection and browser attacks work
You’ll see names like SQL injection, cross-site scripting, and cross-site request forgery in security reports. You don’t need to run these attacks to understand them. Instead, you need to know what they do, so you can ask your developers the right questions.

- SQL injection tricks a site into running database commands its owner never intended, which can expose or change stored data.
- Cross-site scripting (XSS) gets a visitor’s browser to run malicious code, often to steal session details or alter what the page shows.
- Cross-site request forgery (CSRF) tricks a logged-in browser into submitting an action the user never meant to take.
- Clickjacking hides a real button beneath a fake one, so the visitor clicks something different from what they see.
Defending against these comes down to maintained code, careful handling of user input, and developers who test custom features before launch. Keep plugins and themes current, and avoid code from untrusted sources. Authorized security testing belongs on a copy of the site, within a defined scope, never on a live site.
What hackers change once they’re inside
Getting in is only half the job. Attackers want to stay, make money, or cause as much damage as they can. They inject spam links, redirect visitors to scam pages, create hidden administrator accounts, or install a backdoor that lets them return after you’ve changed your password.
The most frustrating changes target specific visitors. A redirect may fire only on phones, only for people arriving from Google, or only from certain countries. Your site looks clean from your own browser while your customers see something else. If the unwanted content promotes medicines or pharmaceutical products, check for a WordPress pharma hack.

So check the site the way your customers see it. Open it logged out, in a private window, on a phone, and search for your own domain. Also, look for unexpected redirects, unfamiliar admin accounts, new files, and search warnings.
When you find one malicious file, keep looking. Attackers often leave several copies and more than one way back in through a WordPress backdoor. Remove the malware from the whole site, then close the route they used.
📝 Note: Save a copy of any suspicious file before you delete it. The evidence shows how the attacker got in, and your host or a responder will likely ask for it.
Hosting and traffic floods
Your hosting account is part of your security, whether or not you chose it for that reason. Shared hosting works well for many sites, but it depends on how well accounts are separated and how quickly the provider patches its systems. A neighboring account that gets compromised can expose your site without you changing anything.
A virtual private server gives you more control and more responsibility. You manage updates, access, logging, and hardening yourself, so the control only protects you if you use it. Either way, protect the hosting control panel as carefully as WordPress itself. Use a strong, unique password with multi-factor authentication, remove services you don’t use, and ask your host how it handles a server-level incident before you need the answer.
A DDoS attack is a different problem from malware. It floods your site with traffic until it slows or stops responding, and it needs traffic filtering, rate limits, or edge protection to absorb the load. A traffic spike doesn’t prove an attack, though.

A real surge of visitors, a broken integration sending repeated requests, and a hosting limit can all look the same at first, so check your logs and resource usage before you respond.
Signs your site has been hacked
Hacks usually show up as small oddities before they show up as visible damage. Several of these signs together point to a real compromise:

- Redirects that appear only on mobile or only from search results
- Search and browser warnings, such as “The site ahead contains malware”, or security notices in Search Console.
- Unknown administrator accounts or users you can’t identify
- Spam pages you never published, which you can find by searching your own domain
- New or altered files, especially PHP files in the uploads folder
- Outbound traffic or email you can’t explain
One sign alone can be a false alarm. If you notice unexplained changes, check whether your website has been hacked before assuming the problem is harmless.

What to do in the first hour
Work in order. Contain the damage first, save the evidence second, then lock down access, find the entry point, and verify the fix.
- Contain the harm first. If Google warns about your site, visitors are being redirected, or spam is going out under your domain, contact your host and consider restricting the affected service. Resist changing ten things at once, because undocumented changes destroy the trail you need.
- Lock down access from a trusted device. Change the WordPress, hosting, database, FTP or SSH, and email passwords that might be exposed. Sign out unknown sessions, and remove unfamiliar admins only after you’ve recorded them.
- Find the cause. Scan files and content, review logs and account activity, and update or remove the vulnerable component. If you can’t establish a clean state, restore from a backup you know predates the compromise.
- Verify the result. Check users, scheduled tasks, redirects, and search results again, logged out and on a phone. Bring in a qualified responder if the compromise reaches the server or customer data, or if it keeps returning after cleanup.
Build a baseline that makes you a harder target
No baseline makes a hack impossible. A good one makes it less likely, easier to spot, and faster to recover from. These are the habits we push every owner to start with:
- Keep every layer current. Make updates part of your WordPress security maintenance routine. WordPress, plugins, themes, PHP, the web server, and the database all need attention.
- Protect privileged accounts. Use unique passwords, multi-factor authentication, and review user accounts and permissions so each person has only the access they need.
- Filter hostile traffic. A WordPress firewall and sensible rate limits help block malicious requests and automated attacks.
- Watch for change. Monitor administrator accounts, critical files, and redirects, and make sure someone acts on every alert.
- Keep backups off the live server. Test restores regularly, because an untested backup is a hope, not a plan.
📝 Note: Write down your host’s support contact, your recovery access details, and the order you’d change passwords in. You don’t want to work that out in the middle of an incident.
FAQs
What are website hacking techniques?
They’re the methods attackers use to find a weakness, get access, change a site, steal information, or knock it offline. The most common routes are outdated software, weak or reused passwords, phishing, insecure code, unsafe hosting, malware, and abusive traffic.
What are the most common ways WordPress sites get hacked?
Outdated plugins and themes, weak or reused passwords, and phishing cause most of the cleanups we handle. Automated bots search for these weak points constantly, so the attack usually finds the site rather than the other way around.
Can a small WordPress site be hacked?
Yes, and small sites are often easier targets because fewer people watch them. Attackers scan for weaknesses rather than size, so your administrator accounts and installed software are enough to make your site worth reaching.
Does HTTPS stop website hacking?
No. HTTPS protects data while it travels between a visitor’s browser and your site. It doesn’t patch vulnerable code, block guessed passwords, stop phishing, or remove malware.
What should I do first if I think my site was hacked?
Contain the active abuse and save any evidence. Contact your host if the server may be involved, change credentials from a trusted device, find the entry point, and clean the site or restore it from a backup you trust.

The takeaway
Every website hacking technique in this guide leads to the same place: someone reaches a part of your site you meant to control. The routes are predictable, and most run through an old plugin, a reused password, or a host nobody questioned. Close those gaps, watch for change, and keep a backup you’ve actually tested. Use this WordPress security checklist to turn those defenses into a repeatable routine.
Start with one check today. Read your administrator list, remove a plugin you don’t use, and open your homepage on your phone while logged out. If anything looks unfamiliar, treat it as an incident now, while the cleanup is still small.



