TechInformer
Follow on Google
  • Latest
  • AI
  • Smartphones
  • Gadgets
  • Apps
  • Telecom
  • Startups
  • Security
  • Gaming
  • Reviews
  • How To
No Result
View All Result
  • Latest
  • AI
  • Smartphones
  • Gadgets
  • Apps
  • Telecom
  • Startups
  • Security
  • Gaming
  • Reviews
  • How To
No Result
View All Result
TechInformer
No Result
View All Result
Home How To

WordPress Site Hacked? A Step-by-Step Recovery Checklist

by TechInformer Desk
October 27, 2026
in How To, Security
Reading Time: 4 mins read
A A
WordPress site hacked recovery: an old key resting on a laptop keyboard

Image: Nikowsk, CC BY-SA 4.0, via Wikimedia Commons

5 min readAdd TechInformer as a preferred source on Google

Key takeaways

  • Back up the hacked site before changing anything.
  • Change hosting, FTP, database and admin passwords first.
  • Remove unknown admin users and check code snippet plugins and mu-plugins for backdoors.
  • Reinstall WordPress core, change the security keys and add DISALLOW_FILE_EDIT.
  • Update PHP to a version patched for PHP2Shell and request a Google review.

If your WordPress site has been hacked, do not just delete the strange files and move on. Attackers almost always leave a way back in, usually through hidden admin accounts, code snippets or file manager plugins. The recovery steps are: back up the hacked site, change every password, remove unknown admins, clean plugins and snippets, reinstall WordPress core, change the security keys and update PHP.

This checklist comes from a real cleanup our team did this month on a news website running on shared hosting in India. We found 12 administrator accounts nobody recognised, backdoor code hidden inside a code snippets plugin, and two file manager plugins that gave full access to every file on the server. Each of those had to be found and closed, or the site would have been hacked again within days.

Signs your WordPress site is hacked

  • Google shows “This site may be hacked” or lists spam pages in Japanese, Chinese or pharma keywords under your domain.
  • Visitors on mobile get redirected to betting, dating or fake prize sites.
  • New administrator users appear that you did not create.
  • Plugins you never installed show up, especially file managers.
  • Your hosting company suspends the site or emails you about malware or high resource usage.

Step 1: Take a full backup of the hacked site

This sounds odd, but keep a copy of the files and database before you change anything. If something breaks during cleanup, you can go back. It also gives you a record of what the attacker added. Most hosting panels have a one-click backup option.

How to Reset UPI PIN Without Debit Card Using AadhaarAlso readHow to Reset UPI PIN Without Debit Card Using Aadhaar

Step 2: Change every password

Change the passwords for your hosting account, cPanel or hPanel, FTP or SFTP, the database user and your own WordPress admin login. Turn on two-factor login for the hosting account. If the attacker still has your hosting password, nothing else on this list will help.

Step 3: Remove unknown admin users

Go to Users in the WordPress dashboard and filter by Administrator. Remove or downgrade any account you do not recognise. Attackers often use names that look official, such as “wpadmin”, “support” or “developer”.

Some backdoors hide users from the user list. If the count next to Administrator does not match the names you can see, ask your developer to check the database directly.

Step 4: Clean plugins, themes and code snippets

  • Delete file manager plugins unless you truly use one. They let anyone with admin access edit any file on the server.
  • Delete nulled or pirated plugins and themes. “Free” copies of premium plugins are one of the most common ways malware gets in.
  • Check code snippet plugins such as WPCode or Code Snippets. Look for snippets you did not write, especially ones with long scrambled text, base64, eval or remote URLs.
  • Check the mu-plugins folder inside wp-content. Files there run automatically and do not show up in the normal plugin list.
  • Remove plugins you no longer use. Deactivated plugins can still be attacked if they have a known flaw.

Step 5: Reinstall WordPress core and check key files

In Dashboard, go to Updates and use “Re-install version”. This replaces the core WordPress files with clean copies from wordpress.org. Then ask your developer to check three places by hand:

  • wp-config.php for extra code at the top or bottom.
  • .htaccess for redirect rules you did not add.
  • wp-content/uploads for any .php files. The uploads folder should only hold images and documents.

Step 6: Change the security keys

The security keys (also called salts) in wp-config.php sign everyone’s login cookies. Replacing them with fresh ones logs out every user, including the attacker. You can generate a new set from the official WordPress salt generator and paste it into wp-config.php.

Step 7: Turn off the file editor

Add this line to wp-config.php:

define( 'DISALLOW_FILE_EDIT', true );

It removes the theme and plugin editor from the dashboard, which attackers use to plant code after they log in. The official WordPress hardening guide recommends this for every site.

Step 8: Update PHP and everything else

Update WordPress, all plugins and themes, then check your PHP version. The new PHP2Shell flaw lets attackers break in through PHP itself, so old versions are a real risk this month. Our guide on PHP2Shell and which PHP versions are safe explains how to check.

Step 9: Scan and ask Google to recheck

  • Run a full scan with a security plugin such as Wordfence or Sucuri. On shared hosting, choose the low-resource scan option so the site does not slow down.
  • Open Google Search Console, go to Security Issues, and request a review once the site is clean.
  • Use the Removals tool to clear spam URLs from Google faster, and check that your sitemap only lists real pages.

How to stop it happening again

  • Give admin access only to people who need it. Writers should be Authors or Editors.
  • Use strong, unique passwords and two-factor login for every admin.
  • Buy premium plugins only from the developer, never from “GPL club” sites.
  • Keep automatic daily backups stored outside the hosting account.
  • Check the admin user list once a month. It takes 30 seconds.

A hacked site can usually be fully cleaned in a day if you work through these steps in order. Skipping any one of them, especially users and snippets, is the most common reason sites get reinfected. For your personal accounts, our guide on securing your digital footprint covers the same habits.

Frequently asked questions

How do I know if my WordPress site is hacked?

Common signs are spam pages in Google results, redirects to betting or prize sites, unknown admin users, plugins you did not install, and warnings from your hosting company.

Can a hacked WordPress site be fixed without losing content?

Yes. Posts and pages are usually safe in the database. Cleaning users, plugins, snippets and core files removes the malware without deleting your content.

Why does my WordPress site keep getting hacked again?

Usually a backdoor was left behind, such as a hidden admin account, a malicious code snippet, a file manager plugin or a PHP file in the uploads folder.

Should I change WordPress salts after a hack?

Yes. New security keys log out every user, including the attacker, so any stolen login session stops working.

Found this useful?

Share it with your friends

See more TechInformer stories on Google

Add us as a preferred source and our stories will show up more often in your Top Stories.

Add TechInformer as a preferred source on Google
WhatsAppLinkedInXFacebookEmail
Tags: How ToMalwareWeb HostingWebsite SecurityWordPress

Related Posts

BHIM UPI QR code displayed at a ticket counter in Bhopal
How To

How to Reset UPI PIN Without Debit Card Using Aadhaar

November 16, 2026
WhatsApp app icon on a smartphone screen
How To

WhatsApp account hacked? How to recover and report it in India

November 15, 2026
Digital payment stalls on a street in Kolkata
How To

UPI Payment Failed but Money Debited? How to Get a Refund

November 14, 2026
Person taking a photo on a smartphone, photos that fill up Google storage
How To

Google Storage Full? How to Free Up Space in Gmail and Photos

November 13, 2026
BHIM UPI QR code displayed for accepting payments at a ticket counter in India
How To

How to Check and Cancel UPI AutoPay in GPay, PhonePe, Paytm

November 12, 2026
Smartphone showing an incoming call screen
How To

CNAP caller name display: how it works and why you see names

November 9, 2026
Next Post
iPad mini price in India: an iPad mini held in hand (earlier model pictured)

iPad mini (A20 Pro) Price in India Starts at Rs 82,900

Popular

How To Restrict People From Posting On Your Facebook Timeline

How To Restrict People From Posting On Your Facebook Timeline

December 3, 2024
Xiaomi 15 Ultra Leak Reveals Key Specs: 6.7-inch Display, Unique Camera Placement, And More

Xiaomi 15 Ultra Leak Reveals Key Specs: 6.7-inch Display, Unique Camera Placement, And More

October 24, 2024
Apple is reportedly working on vision-based products, including smart glasses and AirPods with cameras. Additionally, Apple plans to launch an affordable Vision headset by 2025.

Apple Smart Glasses & AirPods With Cameras Might Launch By 2027: Report

October 14, 2024
Diwali scams 2026: person checking messages on a smartphone

Diwali Scams 2026: Fake UPI Refunds, OTP and Sale Link Frauds

October 27, 2026
Apple Reportedly Working On Refreshed Version Of C1 Modem With mmWave Support

Apple Reportedly Working On Refreshed Version Of C1 Modem With mmWave Support

March 7, 2025
Samsung Launches Galaxy S25 and Galaxy S25+ At The Galaxy Unpacked Event: Price, Availability & More

Samsung Launches Galaxy S25 and Galaxy S25+ At The Galaxy Unpacked Event: Price, Availability & More

January 23, 2025
Facebook Instagram Twitter LinkedIn Youtube

About Tech Informer

Focused on keeping new-age audiences informed about the ever-evolving world of technology, Tech Informer is the one-stop destination if you enjoy reading about the ongoing developments in the Tech world.

Navigation

  • Latest
  • AI
  • Smartphones
  • Gadgets
  • Apps
  • Telecom
  • Startups
  • Security
  • Gaming
  • Reviews
  • How To

Information

  • About Us
  • Contact Us
  • Privacy Policy

©2026 Copyright Tech Informer. RVCJ Digital Media Pvt Ltd

TechInformer

Tech news, smartphones, AI and gadgets in India, explained simply.

Topics

  • Latest
  • AI
  • Smartphones
  • Gadgets
  • Apps
  • Telecom
  • Startups
  • Security
  • Gaming
  • Reviews
  • How To

Company

  • About us
  • Contact us
  • Privacy policy
  • Advertise with us

Follow us on Google

Add TechInformer as a preferred source and see our stories more often in Top Stories.

Add as preferred source

© 2026 Tech Informer. RVCJ Digital Media Pvt Ltd.

Latest news · Sitemap

TECHINFORMER
As an Amazon Associate, we earn from qualifying purchases.
No Result
View All Result
  • Latest
  • AI
  • Smartphones
  • Gadgets
  • Apps
  • Telecom
  • Startups
  • Security
  • Gaming
  • Reviews
  • How To

©2026 Copyright Tech Informer. RVCJ Digital Media Pvt Ltd