The public website occupies an unusual position in most organizations. Its absence is embarrassing, visible and commercially disruptive, yet nothing internal may stop working when it goes down. It is often treated as less critical than line-of-business systems and has no named technical owner because an agency built it, handed it over and moved on.

At the same time, it is the most exposed system the organization owns. It must accept connections from anyone. It commonly runs a content management system shared with millions of other sites. Automated scanners test it continuously, whether or not anyone has chosen your company as a target. That combination of low attention and universal exposure is why a marketing site so often ends up in an incident queue.

We inherit many sites in this condition. The route from neglected project to recurring emergency is consistent, which means it can be interrupted with a relatively modest operating model. The examples below use WordPress because its documentation names the relevant settings plainly, but the same questions apply to any content management system.

How marketing sites are usually compromised

The attack is rarely clever or tailored to the organization. Most cases begin through one of four routes, and for each one there are checks an owner or office manager can make without specialist tools.

A vulnerable plugin or theme

The first route is a vulnerable plugin or theme. The core platform is generally well maintained and patched quickly, but the surrounding ecosystem is uneven. A plugin may be abandoned by its author. A theme may bundle a library frozen at the version available in 2019. An extension installed for one campaign may remain for years because nobody knows whether it is safe to remove.

This is the majority of what we see. Public sites are scanned continuously for known flaws; mass exploitation commonly follows a plugin advisory within days, and one abandoned plugin can compromise an otherwise current site. WordPress's own Site Health screen explains why it treats pending plugin updates as a critical issue: plugins have deep access to your site.

To spot this route before an attacker does, open the Plugins screen and note every plugin with an update waiting. Then look each one up in the WordPress.org plugin directory, where the sidebar shows when it was last updated and the WordPress version it has been tested up to. The directory also warns when a plugin has not been tested with the latest three major releases of WordPress and may no longer be maintained. A plugin with that warning, or one nobody has updated in years, needs a decision: replace it, remove it or accept the risk in writing.

A closure notice deserves more urgency. The plugin's page then says it has been closed and is no longer available for download, and after 60 days the notice adds a reason in broad terms, such as Security Issue or Guideline Violation. WordPress.org's plugin guidelines say that a plugin found to have security issues will be closed until the situation is resolved, so a closed plugin may be one with a known problem and no fix yet. Commercial plugins bought outside the directory need the same review against the vendor's changelog, along with a note of which account receives the vendor's updates.

A weak or reused administrative credential

The second route is a weak or reused administrative credential. Public login pages are easy to find and are attacked continuously. A memorable password used elsewhere, combined with no second factor, turns another service's breach into access to the website. Shared agency accounts make attribution and offboarding harder even when the password itself is strong.

WordPress's guidance on brute-force attacks describes attempts that are automated and often distributed through botnets, and notes that xmlrpc.php, not only the login page, is a frequent target. Even unsuccessful attempts can overwhelm a site with requests. The same guidance says not to use the username admin, and to prefer throttling at the network edge or the web server over a plugin, because a plugin still runs inside the site and consumes resources while it is under attack.

NIST's authentication guidance, SP 800-63B-4, finalized in July 2025, explains why a password alone falls short. It states that passwords are not phishing-resistant, sets a 15-character minimum for a password that is the only factor, and calls for checking new passwords against a blocklist of commonly used, expected and compromised passwords. It also says that codes typed in by hand, such as those from an authenticator app or a text message, are not phishing-resistant, because typing the code does not bind it to the session being authenticated. A second factor of that kind still stops a stolen password from working on its own, which makes it the minimum to require for every account that can change the site.

Stale supporting infrastructure

The third route is stale supporting infrastructure: an outdated PHP or other language runtime, a database port exposed to the internet, a hosting control panel left at permissive defaults, or a forgotten staging copy at a guessable subdomain. Staging is particularly dangerous when it runs last year's code, contains production data and has weaker access control because somebody considered it non-production.

Runtime support has fixed end dates. PHP's supported versions page gives each branch two years of full support followed by two years of fixes for critical security issues only. PHP 8.1 reached end of life on December 31, 2025. PHP 8.2 receives security fixes only until December 31, 2026, and PHP 8.3 until December 31, 2027, while PHP 8.4 and 8.5 are covered until the end of 2028 and 2029 respectively.

WordPress recommends PHP 8.3 or greater and either MySQL 8.0 or MariaDB 10.11 or greater. It will still run on PHP 7.4, but its requirements page warns that such versions have reached their official end of life and may expose the site to security vulnerabilities. A site that runs is not the same as a site that is supported.

The database deserves the same scrutiny. WordPress's hardening guide recommends disabling database features the site does not need, such as accepting remote TCP connections, and keeping sites that share a server in separate databases, each managed by a different user. If the database answers connections from the internet at all, closing that is the first fix.

Staging subdomains are also less hidden than they look. Certificate authorities such as Let's Encrypt submit the certificates they issue to public Certificate Transparency logs, which the IETF's Certificate Transparency specification describes as a way for anyone to audit what certificate authorities issue. A certificate issued specifically for a staging subdomain therefore puts that name on public record, however obscure it is.

The supplier chain

The fourth is the supplier chain. An agency may hold credentials for many customers, a developer workstation may be compromised, or an FTP account created for a contractor in 2021 may still work. The organization can maintain its own named accounts perfectly and still inherit risk through access it never reviews.

WordPress's advice for hacked sites makes the workstation point directly: in many instances the infection begins on a local computer, where trojans capture the login details used for FTP and the WordPress dashboard. Plain FTP compounds the risk. WordPress's hardening guide recommends SFTP because with it the password is never sent in the clear.

The practical check is an account list. Ask your host for every FTP, SFTP, control panel and database account on the hosting plan, with creation dates where available, and close any that cannot be tied to a current person and a current job. Do the same for the site's own administrator accounts, covered below.

Why the consequence is larger than the website

If the site were completely isolated, a compromise would still be disruptive. Attackers use legitimate domains to serve malware, host phishing pages and inject content for search manipulation. The first sign may be a browser warning on the homepage, a customer's mail filter blocking the domain, or a sharp fall in search traffic that takes months to recover. The lasting cost can be trust and discoverability rather than the value of the files on the server.

Google says its Safe Browsing service, which Chrome and other browsers use to warn people before they visit a dangerous site, helps protect over five billion devices every day. Search Console's Security Issues report groups the findings behind such warnings as hacked content, malware and unwanted software, and social engineering, and affected pages can carry a warning label in search results or a warning page in the browser. After a fix, the owner requests a review through that report, and Google says a review can take from a few days to a few weeks.

Poor isolation makes the event more serious. A marketing site that shares a server with an internal application, stores database credentials that work elsewhere, or runs from inside the corporate network turns a low-value internet target into a foothold. Backups mounted permanently with write access can be altered alongside production. A compromised sending configuration can also damage the reputation of domains used for legitimate email.

Mail is a common casualty. WordPress's guidance for hacked sites notes that compromised websites are abused to send spam, that email blocklist operators then flag the website's IP address, and that the same address is often the one the server uses for email. Cloudflare's documentation gives a second reason to keep mail off the web server: mail sent to a nonexistent address bounces back and reveals the server's address, which defeats a proxy that is meant to hide the origin.

The single most valuable architectural decision is therefore isolation. Run the public site somewhere that touches nothing else. Give it credentials that work nowhere else. Separate production from staging, separate customer sites from one another, and keep backups outside the account that operates the live site. Treat any integration with CRM, payments, identity or internal APIs as a deliberately narrow trust boundary rather than a convenient shared credential.

In practice, isolation comes down to a short list your host or developer should be able to confirm in writing:

  • The site runs in its own hosting account, container or server, not alongside internal applications.
  • It has its own database and database user.
  • No password, key or token the site uses works on any other system.
  • Backups go to storage that the site's own hosting credentials cannot delete or overwrite.
  • Staging sits in a separate account, or at least a separate database, behind a login.
  • Form submissions reach your CRM or mailbox through a narrowly scoped integration, not a shared administrator account.
  • Outbound mail goes through an authenticated mail service for your domain rather than a mail server on the web host.

Give the system an owner and an inventory

Maintenance fails first as an ownership problem. Name one role accountable for the site's technical health, even when an outside provider performs the work. That owner should know where the domain is registered, who hosts DNS, where the application runs, which repository or deployment source is authoritative, where backups live, who can administer each layer and how renewals are paid.

Write those answers down somewhere that does not depend on the website's own server. One page is enough if it names, for each layer, the provider, the account holder, how sign-in is protected and the renewal date. Any question nobody can answer becomes the first task, because an incident is the worst time to discover that the registrar account belongs to someone who left.

Inventory every plugin, theme, integration, administrative account, domain, certificate and scheduled task. Record its purpose and owner. If nobody can justify an extension, remove it rather than merely deactivating it. Deactivated code can remain present on disk and may still be exploitable in some configurations. Fewer components mean fewer advisories, fewer update conflicts and fewer places to hide persistence.

WordPress does much of this inventory for you. Under Tools, then Site Health, the Info tab lists the WordPress version, active and inactive themes and plugins with their versions and auto-update settings, server and database details, the user count, whether anyone can register and whether the site is discouraging search engines. It can copy the whole report to the clipboard, which gives you a dated snapshot to keep with your notes. Site Health also recommends removing inactive themes you do not plan to use, keeping the active theme, its parent theme if it has one, and a default WordPress theme.

The Status tab on the same screen works as a quick configuration audit. The critical issues it can raise include an outdated PHP version, plugins waiting to be updated, background updates that are not working, and two debugging settings that should not be left on in production: displaying errors to site visitors, and logging errors to a file that may be publicly readable. WordPress notes that debug output may contain sensitive information that should not be available on a public website.

Then check one setting by hand. Settings, then General, holds the Administration Email Address, which receives notices about site updates and maintenance, recovery mode, fatal errors and plugin or theme issues. WordPress's documentation says that if a developer or agency set the site up, you should verify that this address points somewhere your organization can access. A role mailbox that more than one person reads is better than an individual's inbox.

The registrar and DNS layer

The domain registrar and DNS provider deserve the same attention as the site. An attacker who controls DNS can redirect visitors, intercept some validation flows and defeat a perfectly patched application. Use unique named accounts, multi-factor authentication (MFA), least privilege, protected recovery methods and renewal contacts that do not depend on one employee's personal address.

Check the domain's status codes, which a WHOIS lookup or your registrar's website will show. ICANN describes clientTransferProhibited as telling the registry to reject requests to transfer the domain to another registrar, which helps prevent unauthorized transfers resulting from hijacking or fraud. Some registries also offer a registry lock service, which sets a server-level status on top of the registrar's. ICANN notes that removing it takes longer because the registrar must forward the request to the registry and wait for the restriction to be lifted, which is exactly the friction you want on a name the business depends on.

Renewal is the other half. For generic top-level domains such as .com, ICANN's Expired Registration Recovery Policy requires the registrar to send the registrant at least two reminders, about one month and one week before expiry, and another within five days after expiry if the name has been neither renewed nor deleted. If the name lapses anyway, the registrar must interrupt its normal DNS resolution for at least the last eight days in which it can still be renewed, or from expiry until deletion if it is deleted sooner, which can take the website and email offline together. Those reminders only help if the registrant contact is an address someone reads.

A CAA record adds one more control at the DNS layer. It lists the certificate authorities allowed to issue certificates for your domain, and authorities such as Let's Encrypt check it before every certificate they issue. Because only the listed authorities may issue, include every authority your host and any content delivery network in front of the site rely on, or their legitimate renewals will fail.

A maintainable patching process

Set a defined cadence for updating the core platform, plugins and themes, and define an expedited path for actively exploited vulnerabilities. A calendar alone is not enough. Each cycle needs an inventory check, current backups, a staging update, functional verification, production deployment and observation afterward. Record what changed and whether anything required manual intervention.

Automatic updates can carry part of the load. WordPress has applied minor core releases automatically since version 3.7, and new installations since version 5.6 have automatic updates enabled for major core releases too. Since version 5.5, administrators can opt in plugin by plugin using the Automatic update column on the Plugins screen, and theme by theme through the Enable auto-updates link in each theme's details. By default WordPress runs plugin and theme auto-updates twice a day and emails the site owner when they succeed, fail or partly fail.

Those updates rely on WordPress Cron tasks, which may not run correctly on every server, installation or plugin combination, so check Tools, then Site Health, for error messages about background updates or scheduled events. Read the update emails rather than filtering them away, since a failed attempt is exactly the signal you need.

A workable rule is to auto-update small, widely used plugins whose failure would be obvious and easy to reverse, and to route anything that handles payments, memberships, page layouts or form logic through staging first. Whatever rule you choose, write it down, so the next person knows why one plugin updates itself and another waits for a test.

Decide in advance what triggers the expedited path. CISA maintains the Known Exploited Vulnerabilities catalog, which it calls the authoritative source of vulnerabilities that have been exploited in the wild, and advises organizations to use it as an input to their vulnerability management prioritization. CISA offers a subscription to catalog updates, and a match between a new entry and anything in your inventory should move that update out of the regular cycle.

For federal civilian agencies, CISA's Binding Operational Directive 26-04, issued June 10, 2026, sets remediation priority with four questions: whether the vulnerable asset is publicly exposed, whether the flaw is in the catalog, whether an adversary can automate every step of exploitation, and whether exploitation gives partial or total control of the asset. A public website answers the first question yes by definition.

For some combinations, the directive gives agencies three days to remediate or mitigate and requires a forensic triage of the asset to assess whether it has already been compromised. A small organization is not bound by the directive, but that second step is worth copying: when an exploited flaw is patched late, check whether someone used it first. The directive also counts removing a system from the internet as a valid mitigation that pushes back the timeline for further action, which is one more argument for taking staging sites and admin panels off the open internet.

Keep staging private

Staging should be built from the same code and configuration pattern as production, while using sanitized or synthetic data wherever possible. Restrict access and prevent it from sending real customer email, charging payments or being indexed by search engines. A stale clone with real data is not a safety environment; it is a second, less-defended production system.

Use a login rather than a search setting to keep it private. Google's documentation says robots.txt is not a mechanism for keeping a web page out of Google and that a disallowed URL can still be indexed if it is linked from other places; to keep a page out, it says to use noindex or password protection. WordPress's Discourage search engines from indexing this site option, under Settings, then Reading, adds a noindex tag, but WordPress notes that it does not block access and that it is up to search engines to honor the request. A password at the web server or hosting layer keeps out crawlers and people alike.

Check the site after every update

Testing must cover more than the homepage. Exercise representative page templates, navigation, search, forms, authentication, downloads, consent controls, analytics, caching and any purchase or lead path. Submit a real test form and confirm it arrives at the intended destination. Review application and server logs while doing so. A visually correct page can conceal a failed integration, a blocked background task or repeated errors.

A post-update check that fits on one screen:

  • Load the homepage and two or three representative inner pages while signed out, in a private browser window.
  • Submit the main contact or lead form and confirm the message arrives where it should.
  • Run any purchase, booking or download path through to its confirmation step.
  • Sign in and confirm an editor can still create and save a draft.
  • Confirm the cookie or consent banner still appears and analytics still records a visit.
  • Look at Tools, then Site Health, for new critical issues.
  • Review the PHP and web server error logs for new entries since the update.
  • Record the date, what changed and anything that needed manual work.

The platform beneath the site

Keep the platform beneath the content manager current: language runtime, database, web server, operating system and hosting control panel. Hosting choice matters because inexpensive shared hosting may pin a site to an old runtime or offer little visibility into patching. If the platform cannot support a maintained version of a required component, migration is part of maintenance, not an optional redesign.

You can check the runtime yourself. Site Health shows the PHP version in the Server section of its Info tab, and the Status tab raises a critical issue when the version is outdated. If the answer is 8.1 or older, the site runs on a branch PHP no longer supports. If it is 8.2, plan the move before security support ends on December 31, 2026, and test it on staging first, because an older plugin or theme may not run on a newer PHP version.

WordPress's own page on updating PHP sets out the order: back up the site; update WordPress, themes and plugins and confirm the site still works; check themes and plugins for PHP compatibility; fix or replace any that fail; then change the version in the host's settings or ask the host to do it. It suggests the PHP Compatibility Checker plugin for the compatibility step and warns that the tool may miss items or flag false positives, which is why the staging test still matters.

Control administrative and supplier access

Every person who can publish code, edit content, change DNS or enter the hosting console should have an individual account protected by MFA. Eliminate routine shared logins. Restrict administrator roles to people who need them, use lower-privilege editor roles for ordinary content work, and review access on a schedule and whenever a project or employment relationship ends.

WordPress's default roles make this concrete. An Administrator has access to all the administration features of a site. An Editor can publish and manage posts, including other users' posts. An Author can publish and manage only their own posts, a Contributor can write and manage their own posts but not publish them, and a Subscriber can only manage a profile. Most marketing staff need Editor or Author, and very few people need Administrator.

To review accounts, open Users and choose the Administrator filter above the list. For each name, confirm the person still works with you and still needs that role, and use the Change role to dropdown for anyone who does not. When you delete a user, WordPress asks what should be done with their posts and links and lets you attribute them to another user, so removing a departed author does not mean losing their articles. A developer can pull the same list, with the date each account was registered, by running wp user list --role=administrator in WP-CLI, the WordPress command-line tool.

Next, open Settings, then General, and check Membership. If Anyone can register is checked, make sure the New User Default Role is Subscriber, because the same dropdown also offers Administrator. An open registration form that hands out administrator accounts gives the site to whoever finds it.

WordPress's hardening guide recommends enabling two-step authentication. One option is the Two-Factor plugin in the WordPress.org directory, which supports authenticator apps, emailed codes and backup codes, with security keys available through a separate WebAuthn add-on; each user turns it on in the Two-Factor Options section of their profile. For administrators, prefer a security key or passkey where your sign-in method supports one, since NIST says phishing resistance requires cryptographic authentication.

Non-human credentials hide in a less obvious place. WordPress Application Passwords, introduced in version 5.6, let scripts and integrations authenticate to the site's REST API; each one belongs to a specific user account and cannot be used to sign in to the dashboard. The user's edit screen lists them by name with the date and IP address of their last use, and each can be revoked individually. Revoke any you cannot match to a current integration.

Two configuration changes are also worth asking for. Defining DISALLOW_FILE_EDIT as true in wp-config.php removes the dashboard's built-in editor for theme and plugin files, which the hardening guide says is often the first tool an attacker will use after signing in, since it allows code execution. WordPress notes that the setting will not prevent an attacker from uploading malicious files but might stop some attacks. The hardening guide also recommends making wp-config.php, the file that holds the site's database credentials, readable only by you and the web server.

For agencies and contractors, define how access is granted, where credentials are stored, whether file transfer is encrypted, and when access expires. Do not let convenience turn one supplier credential into permanent access across a portfolio. Deployment keys and automation accounts also need an owner, narrow scope and rotation plan; a non-human credential can outlive its original purpose even more quietly than a human account.

A short written access agreement with each supplier covers most of this:

  • Each person gets a named account at the level the work needs, never a shared login.
  • Credentials live in a password manager, never in email or a spreadsheet.
  • File transfer uses SFTP or a deployment pipeline, not plain FTP.
  • Access has an end date tied to the project and is removed on that date.
  • The supplier tells you promptly if its own systems or staff accounts are compromised.
  • At handover you receive the code, the deployment notes and a list of every credential they created.

Put protection and detection around it

A web application firewall can block common exploit traffic and buy time between disclosure and a maintenance window. It does not replace patching, because a bypass, authenticated route or origin exposed around the firewall can still reach vulnerable code. Restrict direct access to the origin where the hosting model allows it, and test that the site remains available through the intended path.

Cloudflare's documentation on protecting an origin server shows what that restriction involves. Proxied DNS records hide the origin's address, but DNS-only records such as SPF and other TXT entries should be audited so they do not reveal it, and because historical DNS records are kept, Cloudflare also advises rotating the origin's IP address. Its options rated very secure include a tunnel that connects the origin without a publicly routable address, and authenticated origin pulls, which help ensure that requests reaching the origin come from Cloudflare's network. Allowlisting Cloudflare's IP ranges at the origin firewall is simpler, but Cloudflare rates it only moderately secure.

Login pages need their own limits. WordPress's brute-force guidance prefers throttling at the edge or the web server, recommends disabling XML-RPC if nothing uses it, and says server-level blocks should be scoped narrowly, for example to wp-login.php and xmlrpc.php. It gives examples for restricting the login page by IP address or adding a password prompt in front of it, and says to test them in staging before production. It describes older blanket measures, such as password-protecting the whole wp-admin directory or blocking entire countries, as unreliable, likely to break AJAX-based plugins or harmful to the user experience.

Monitor from the outside

Monitoring should check availability from outside the hosting environment, certificate validity, expected content, DNS resolution and file integrity against a known-good copy. It should also verify that the monitor is checking in. A green dashboard based on stale results is worse than an explicit unknown. Route actionable alerts to a queue with an owner and escalation path; do not rely on a mailbox nobody reads outside business hours.

For a typical marketing site, that means:

  • An availability check from outside your host every few minutes, on the homepage and the main form page.
  • A content check for a phrase that should always appear, so a defaced or blank page fails.
  • An alert when certificate renewal fails, plus a backstop alert when fewer than 14 days remain.
  • A DNS check that compares the name servers and main records with the values you expect.
  • File integrity checks against a known-good copy or official checksums.
  • A heartbeat alert that fires when any of these checks stops reporting.
  • Google Search Console verification for the domain, so security notices reach a person.

On WordPress, the WP-CLI command wp core verify-checksums compares core files against checksums downloaded from WordPress.org, and wp plugin verify-checksums checks plugin files against WordPress.org's checksums, which covers plugins from the WordPress.org directory; for a commercial plugin, compare against a fresh copy from the vendor. The hardening guide also lists ways to watch for file changes, including comparing against a clean test copy with diff, Git, inotify and the OSSEC intrusion detection system. Google says Safe Browsing notifies webmasters when their sites are compromised and invites them to sign up for Search Console to receive those notifications, which is why verification there belongs on the list.

Certificates need their own design

Certificate expiry deserves its own design because it causes more public outages than compromise and is entirely preventable. Automate renewal, monitor the renewal job, and alert when renewal fails. Waiting for the certificate's expiry to trigger an alert means learning about the problem roughly thirty days later, and only the earlier signal gives the team useful time to respond. Also monitor domain and hosting renewals, payment failures and account notices.

Shorter certificate lifetimes make this more pressing each year. Under the CA/Browser Forum's Baseline Requirements, the industry rules for publicly trusted TLS certificates, a certificate issued on or after March 15, 2026 may be valid for at most 200 days, falling to 100 days for certificates issued from March 15, 2027 and 47 days from March 15, 2029. A yearly manual renewal no longer works, because no publicly trusted certificate issued since that first date can last a year.

Let's Encrypt's default certificates are valid for 90 days, and its FAQ recommends renewing them every 60 days. It has announced that its default will shorten to 64 days on February 10, 2027, and to 45 days on February 16, 2028, and it warns that renewing at a hard-coded 60-day interval will then no longer be sufficient; it describes renewing about two-thirds of the way through a certificate's lifetime as acceptable. It also announced that it would stop sending expiration reminder emails on June 4, 2025, and recommended a third-party monitoring service instead, so a team that relied on those reminders needs another source of warning.

On servers that use Certbot, most installations come with automatic renewal already scheduled. Since Certbot 4.0, a certificate is considered ready for renewal once less than a third of its lifetime remains, which is 30 days for a 90-day certificate. Running certbot renew with the --dry-run option tests renewal by obtaining test certificates from Let's Encrypt's staging server without saving them, and a deploy hook runs only after a successful renewal, which makes it a natural place to report success to a heartbeat monitor. Give the heartbeat a grace period slightly longer than the normal renewal interval; when it goes quiet, renewal has stopped while the certificate still has weeks left.

Backups you can restore

Backups should be offsite, versioned and restore-tested. Keep enough history to reach a point before a compromise was discovered, because discovery often trails entry. Protect backup administration with separate credentials and MFA. Test recovery into an isolated location and document the time, dependencies and decisions required. A successful backup job shows that data was written; a restore test shows that the site can return.

For WordPress, a usable backup has two parts, the database and the files, and WordPress's backup guide says you need both to fully restore a typical site. The files include core, themes, plugins, uploads, wp-config.php and .htaccess. The guide suggests weekly backups for smaller sites with fewer posts, daily backups for high-activity sites, a database backup before every upgrade, and at least three to five recent copies stored in different locations. It also recommends an occasional manual backup alongside the automated ones to confirm that the process is working, and when restoring, it says to restore the files first and then the database.

Symptoms and first checks

Different visible symptoms suggest useful first questions, although none proves a single cause:

  • If browsers warn visitors, check for injected scripts and compare file integrity with a known-good source.
  • If Search Console reports a security issue, open the sample URLs it lists before changing anything, remembering that they are a sample rather than a complete list.
  • If the site becomes slow while server load rises, inspect running processes and outbound connections for cryptomining, spam or other abuse.
  • If search traffic collapses, compare the rendered source seen by search crawlers for hidden or conditional content.
  • If an unexpected administrator appears, preserve logs and review the user table, authentication history and recent plugin changes.
  • If customers report spam or phishing that seems to come from you, check what the web server has been sending and whether its address is on a blocklist.
  • If the host suspends the site, ask for the evidence behind the decision, such as file paths, timestamps and log extracts.
  • If the domain stops resolving, check the registrar account, renewal date and name servers before touching the site.
  • If the certificate expires, inspect renewal logs and validation failures rather than simply replacing the certificate and losing the cause.

For the search traffic case, Search Console's URL Inspection tool can show the raw HTML of the version Google most recently indexed, and its live test fetches the page in real time. Google's spam policies say it is not uncommon for hackers to use cloaking, showing search engines different content from what visitors see, to make a hack harder for the owner to detect, and that injected redirects sometimes fire only for visitors who arrive from search results. Comparing what Google received with what a browser shows, and opening the site from a search result as well as directly, catches both.

These are first-response checks, not a cleanup procedure. Preserve evidence before changing the affected system when the consequence warrants investigation. Record the time of detection, known-good backup points, current DNS answers, active accounts and relevant logs. Change control during an incident matters because well-meant edits can erase the evidence needed to identify the entry route.

WordPress's guidance for hacked sites also puts documentation first: what you are seeing, when you noticed it and in which time zone, and what changed recently, such as a new plugin, a theme edit or a widget change. It advises taking one more snapshot of the environment before cleaning, even though it is infected, so a reference exists if cleanup goes wrong. Those notes become the start of an incident report, whether you handle the response yourself or bring in help.

Recovery means rebuilding, not deleting what a scanner found

Once code execution is confirmed, removing malicious files and returning the site to service does not establish trust. The attacker had an opportunity to create additional administrators, modify core files, add scheduled tasks, inject database content and place web shells in quiet directories. A scanner reports what it recognizes, not everything that happened.

WordPress's documentation gives one concrete reason the shortcut fails: the dashboard's reinstall options often only overwrite existing files, while attacks often introduce new ones, so the added files survive. The same guidance names .htaccess as one of the files most often altered in an infection and lists index.php, header.php, footer.php and the theme's functions file as others to watch, because changes there can affect every page request.

The defensible recovery is a rebuild:

  • Create a fresh platform installation.
  • Restore content from a backup that predates the compromise or from a reviewed export.
  • Reinstall plugins and themes from trusted source packages rather than copying the affected filesystem.
  • Rotate every relevant credential, including hosting and database access.
  • Close the identified entry route before publishing the rebuilt site.

Review DNS, administrator accounts, deployment credentials, API keys, mail configuration and connected services as part of the same boundary. On WordPress, generating new secret keys in wp-config.php signs out everyone who is logged in, including anyone holding a stolen session. WordPress's guidance also says to change passwords again once the site is confirmed clean, even if they were changed at discovery, and to consider changing the database user and password too.

Identifying the route matters most. A clean rebuild that restores the same vulnerable plugin or reuses the compromised password is a scheduled repeat. If the route cannot be proven, remove or replace the most plausible exposures and increase monitoring while treating residual uncertainty honestly. Keep the old environment isolated for evidence, never as a fallback that can quietly return to production.

If Google flagged the site, request a review from the Security Issues report once the rebuilt site is live. Google expects every listed issue to be fixed on all pages first and asks the request to explain the problem, the steps taken to fix it and the outcome. With reviews taking from a few days to a few weeks, plan customer communications on the assumption that the warning will outlast the fix.

A worked example

Imagine a fourteen-person engineering firm whose website was built by an agency four years ago. The office manager has been named its owner, nobody has looked closely since launch, and a freelance developer is available for small jobs. She has a week to find out where the site stands, and a first pass through this article might go like this.

On the first morning she opens Tools, then Site Health. The Status tab shows two critical issues: an outdated PHP version and plugins waiting to be updated. The Info tab shows PHP 8.1, 26 plugins of which 7 are inactive, and three inactive themes; she copies the report to the clipboard and saves it with the date. Because PHP 8.1 reached end of life at the end of 2025, the runtime goes on the list as a project, not a quick fix. Before lunch she also sets up an external monitor for availability and certificate expiry.

Under Users, the Administrator filter shows five accounts: the two partners, a marketing coordinator who left last spring, a shared login named after the agency, and an account called siteadmin2 that nobody recognizes. Settings, then General, shows that the Administration Email Address still belongs to the agency's former project manager, so she changes it to a role mailbox and clicks the confirmation link WordPress sends to the new address.

The unrecognized account is where she stops changing things. An unexplained administrator can be a sign of compromise, so before deleting it she asks the developer to list the administrators with their registration dates and to run the core and plugin checksum commands. The account turns out to have been registered two years ago, in the week the agency brought in a subcontractor, and the checksums pass. Only then are the three unneeded administrator accounts deleted, with their posts attributed to a partner. Had the date been recent or the checksums failed, the next steps would have been preserving the host's logs and switching to the rebuild described above.

The second day covers the domain. The registration sits in the agency's own registrar account with the agency as the contact, and the transfer lock is off. The firm opens its own registrar account protected by two-step sign-in, moves the domain into it, sets a role mailbox as the contact, turns on auto-renew and confirms that a WHOIS lookup now shows clientTransferProhibited.

The third day turns up the biggest risk. A staging copy on a subdomain holds a full clone of the database, including two years of contact form submissions, behind no login, and its certificate has put its name in public Certificate Transparency logs. The developer puts it behind a password, replaces the data with test records and disables outbound email from it. The seven inactive plugins are deleted once the developer confirms nothing depends on them, along with two of the three inactive themes; the third is a default WordPress theme, which Site Health suggests keeping.

When she next checks the external monitor, it shows the production certificate with 19 days left. A 90-day certificate renewed by a current version of Certbot should have renewed with about 30 days to go, so renewal has been failing for more than a week without telling anyone. A dry run reproduces a validation error left by an old DNS change, the developer corrects the record, and a deploy hook now reports each successful renewal to a heartbeat check.

Finally, she asks for a restore test. Backups run nightly, but they are stored in the same hosting account as the site, and the first restore into an isolated location shows that the uploads folder was excluded, so every image is missing. The job is corrected, copies go to separate storage with its own credentials, and a second test completes in about two hours. That figure goes into the recovery notes.

Nothing in that week was exotic. It produced a named owner, a written inventory, three fewer administrators, seven fewer plugins, a locked domain, a private staging site, a monitored certificate and a backup known to restore. The PHP upgrade becomes a scheduled project with a staging test, and the monthly checks that follow are short.

What to do this week

If you do nothing else this week, these steps close the most common gaps:

  • Name the owner of the site's technical health and write down where the domain, DNS, hosting, code and backups live.
  • Open Tools, then Site Health, save the Info report, and note the PHP version and any critical issues.
  • Filter Users by Administrator, remove anyone who no longer needs the role, and turn on two-step sign-in for the rest.
  • Check the Administration Email Address, Anyone can register and New User Default Role under Settings, then General.
  • Delete inactive plugins and themes nobody can justify, keeping one default theme, and record the purpose of each one that remains.
  • At the registrar, confirm two-step sign-in, the transfer lock, the renewal date, the payment method and the contact address.
  • Confirm that certificate renewal is automated and that a failed renewal alerts a person.
  • Restore one recent backup into an isolated location and write down how long it took.
  • Verify the domain in Google Search Console so security notices reach you.
  • Find any staging or old copies of the site and put them behind a login or remove them.

Keeping it out of the queue

A public website is a system, not a document. It runs code, accepts connections from the entire internet and decays without maintenance in a way a printed brochure does not. Its operating checks can be concise: all components supported, all privileged access named and protected, patches current, backups recent and restored, certificate renewal healthy, monitoring fresh, staging restricted, and no unexplained changes in files or administrators.

Organizations whose sites stay quiet are generally not using exotic defenses. They assigned an owner, reduced the component inventory, isolated the site from everything that matters, established patch and access routines, and arranged for a machine to report when those controls stop working. That standing cost is modest. It compares favorably with rebuilding under pressure while customers see a warning page and the marketing team asks each hour when the site will return.

Where ALCO can help

ALCO's services include managed hosting, hosted platforms such as WordPress, website care, domains and DNS, and backup and disaster recovery. The services page describes website care as keeping a site up, updated and backed up, and domains and DNS as keeping your domain in your name, which covers much of the routine above. If you would rather not work through these checks alone, the ALCO help desk is staffed 24 hours a day, including holidays, and calls are answered by a person.

Sources