Technical · Updated
How to Tell If Your WordPress Site Has Been Hacked
Learn how to tell if your WordPress site has been hacked: the warning signs, the quick checks to run, and what to do in the first hour to limit damage.
Why a hacked WordPress site can look normal to you
Knowing how to tell if your WordPress site has been hacked is harder than it sounds, because most attacks are built to stay quiet. Malware often hides from logged-in admins and shows spam or redirects only to search engines, phones or visitors from Google.
What are the signs your WordPress site has been hacked?
- A red full-page browser warning such as "Dangerous site" or "Deceptive site ahead", or "This site may be hacked" under your Google listing.
- Redirects to sites you never added, often only on mobile or from search results.
- Admin users you do not recognize.
- Spam pages under your domain in Google, such as pharmacy, casino or Japanese-language titles.
- Your host suspends the account or warns you about malware or outgoing spam.
- Your email starts bouncing or landing in spam because your domain or mail server has been blacklisted.
How can I check if my WordPress site is hacked?
- Search Google for site:yourdomain.com and look for pages you never created.
- Check the Security issues report in Google Search Console, or look the domain up on Google's Safe Browsing site status page.
- Open the site on a phone, in a private window, by clicking your own Google result.
- In wp-admin, filter Users by Administrator and check every name. Some malware hides its users from this list.
- Look for PHP files in wp-content/uploads. That folder normally holds media, so PHP code there needs a close look.
- Run an external scanner, but treat a clean result as a hint, not proof: it only sees the public site.
How to fix a hacked WordPress site: the first hour
- Do not delete anything yet. Take a full copy of the files and database as they are now.
- Change every password from a device you trust: WordPress admins, hosting panel, SFTP, database and the admin email account.
- Note, then remove, admin accounts you do not recognize.
- Change the security keys in wp-config.php to log everyone out.
- Tell your host: their logs can show how the attacker got in.
- Find your last clean backup, but do not restore it blindly: it still has the same hole.
Why a cleanup has to close the hole too
Deleting the infected files you can see is not enough. Attackers leave backdoors, such as hidden PHP files, extra admin users, scheduled tasks and code injected into the database, that bring the infection back days later. And the way in, often an outdated or nulled plugin or a reused password, is still open. A proper fix replaces core, plugins and themes with clean copies, checks uploads and the database, and closes that entry point. Only then ask Google for a review in Search Console.
How to keep a cleaned site from being reinfected
- Update core, plugins and themes weekly, and delete unused ones.
- Install plugins and themes only from wordpress.org or the developer, never nulled copies.
- Give every admin a unique password and two-factor authentication.
- Keep daily off-site backups with weeks of history, since infections can go unnoticed.
- Scan regularly, and watch closely for a few weeks after a cleanup.
How VelaHost handles a hacked site
Our malware removal takes a copy of the site first, scans files and database for injected code and backdoors, restores changed files, closes the way in and requests reviews from Google and the main blacklists, with a written summary. We clean the site where it is hosted, within 24 hours, or the same day with the urgent option. To keep it clean, Website Care updates it weekly and scans for malware, and Care Pro and Care Business include cleanup.
Get started
Ready to get started?
Explore plans or talk to VelaHost if you need help choosing.