Key takeaways

  • In my experience, most security problems that hurt search on a healthcare WordPress site start with an outdated or unused plugin or theme, not with the certificate.
  • Keep core, plugins and themes updated, delete what you do not use, and be able to roll back before switching on auto-updates.
  • After a hack, clean the site, fix the way in and return a 404 for the attacker’s pages. Do not remove your real pages from search.
  • Forms and portal logins belong on HTTPS. Keep portal pages out of the index with noindex or a login, not robots.txt alone.
  • Harden the admin area, and check that your security plugin or firewall is not blocking or challenging the real Googlebot.

When a clinic or dental practice asks me why its WordPress site lost visibility, the cause is often a security decision rather than a content one: a plugin nobody updated, a hack that left spam pages behind, or a firewall that started turning Googlebot away. In my WordPress SEO consulting work for healthcare sites I treat security and crawlability as one job.

This article stays on the WordPress side. The general mechanics, such as mixed content, HSTS, certificate errors and the Search Console Security issues report, are in my guide to HTTPS and security pitfalls, so I only touch on them here.

I first published this article in 2025 and have rewritten it around what a practice can actually check on its own WordPress install.

Why security problems on a healthcare WordPress site become search problems

Google does not publish a separate HTTPS or security standard for medical websites. What makes healthcare different is the cost of getting it wrong. A practice site carries appointment forms, sometimes a patient portal link, and pages written to build trust. Injected pharmacy spam or a blocked crawler damages exactly that trust.

In search, it shows up in a few predictable ways:

  • Spam pages created by an attacker get crawled and indexed under your domain.
  • Real pages are redirected or altered for some visitors.
  • A firewall or security plugin answers Googlebot with an error or a challenge page instead of your content.

Security plugins and firewalls that block Googlebot

This is the problem I see most often on practice sites that were “secured” in a hurry. A security plugin or hosting firewall blocks countries, rate-limits busy visitors, or shows a challenge page to anything automated. Googlebot is automated. If it gets the challenge page, that is what it sees instead of your treatment page.

A wall with a gate that lets one verified crawler through to a website's pages while several look-alike crawlers marked with warnings stay outside
Figure 1. Let the verified Googlebot reach your pages while the firewall keeps stopping fake bots.

Do not trust anything that simply calls itself Googlebot. Google’s page on verifying Googlebot describes the check: run a reverse DNS lookup on the IP address in your logs, confirm the name is on googlebot.com, google.com or googleusercontent.com, then run a forward lookup and confirm it returns the same IP. Google also publishes its crawler IP ranges as JSON files. Allow crawlers verified this way, not by the name they give.

Rate limiting needs the same care. Google’s guidance on reducing the crawl rate accepts a 500, 503 or 429 response as a temporary signal, but says “We don’t recommend that you do this for a long period of time (meaning, longer than 1-2 days)” and warns that a URL that keeps returning those codes for multiple days “may be dropped from Google’s index.”

The checks I run after any security change:

  1. Run the URL Inspection live test in Search Console on the home page, a treatment page and the booking page.
  2. Look at the security plugin’s block log for requests from verified Google IP addresses.
  3. Check the server logs for Googlebot requests answered with 403, 429 or 503.
  4. Confirm that country blocking or challenge pages are not applied to verified crawlers.

Rank Check Reports

Changed your firewall or security plugin rules? Record where your treatment pages rank before and after.

A live Google check of your keywords on desktop and mobile · from $14.99 per check · no subscription · report within one working day

Order a rank check report →

Keep plugins, themes and core updated

A typical practice site runs a page builder, a forms plugin, a booking plugin, an SEO plugin, a caching plugin and extras added over the years. Each is code that can carry a vulnerability. The WordPress hardening guide is direct about it: “you should always keep up to date with the latest version of WordPress” and “make sure your plugins are always updated.” It also says attacks often target outdated plugins and software, and gives a simple rule: “if you are not using a specific plugin, delete it from the system.”

A row of plugin tiles on a website panel, most with a green tick, and one outdated tile with a warning marker lifted out towards a bin
Figure 2. Keep the plugins you use updated and delete the ones you do not.

Deactivating is not deleting. A deactivated plugin still sits in the file system, and in audits I regularly find old form or slider plugins nobody remembers installing.

Auto-updates, with a way back

Since WordPress 5.5, administrators can switch on automatic updates plugin by plugin and theme by theme. The WordPress auto-updates documentation says that by default WordPress runs them twice a day and emails the site owner when updates succeed or fail. It also gives the warning that matters most for a busy practice: “Before enabling auto-updates on your plugins and themes, you may want to make sure you’re able to rollback to a previous version of your website in case things go wrong.”

My usual split: small, well-maintained plugins update automatically. The page builder, the booking plugin and anything that touches forms get updated by a person, after a backup, followed by a test booking.

Free tool · SEO ROI Calculator

Weighing the cost of proper site maintenance? Estimate what your treatment keywords could be worth first.

Enter search volume, CPC and your current ranking to estimate traffic, revenue and value for a keyword. Free.

Calculate your SEO ROI →

Recovering a hacked WordPress site without losing your real pages

After a hack, the better order is to stop the damage, clean properly, close the hole, and only then deal with search. The web.dev guide to cleaning and maintaining a hacked site sets out the choices. With a clean, current backup you restore it, but first “check that your backup was created before your site was hacked.” Without one, you make two backups of the infected site and clean a copy, not the live server. Either way, it tells you to “Install any software upgrades, updates, or patches available” and to change the passwords for all accounts related to the site.

A site tree of pages on one side of a fence closed by a shield, with a cluster of red injected pages on the other side heading for a bin
Figure 3. Remove the pages the attacker added, keep your real pages, and close the gap they came through.

On WordPress, cleaning usually means removing unknown administrator accounts, replacing core files with a fresh copy, reinstalling plugins and themes from their official sources, and looking for code added to the theme or the database. The way in is often one of those outdated plugins.

Two points from the same guide matter for search. First, “Make sure to also remove (serve a 404 response) for new files created by the hacker.” Second, the Remove URLs tool in Search Console is optional and “only for pages you’ll never want to appear in results.” It adds: “Don’t use this tool to request removal of any previously good pages that were only damaged by the hacker.” Your treatment pages, once cleaned, should stay in the index.

The Security issues report and review request are explained in the HTTPS article linked above. If the attack was spam pages generated through your WordPress search box rather than real files, my article on WordPress internal search spam covers that case.

Free tool · Ping My URL

Cleaned your treatment pages after a hack? Let search engines know they have changed.

Notify Google and other search engines about up to 5 new or updated URLs at once. Free, no sign-up.

Ping your URLs →

Forms, booking and patient portals over HTTPS

Every page should load over HTTPS, and it matters most where patients type something: contact forms, appointment requests and portal logins. On WordPress the common gaps are a form that posts to an old http:// address, a third-party booking widget embedded over http://, and a menu link to the portal that still uses http://.

The search question is which of these pages Google should index at all. The public booking page, yes. The portal login, form thank-you pages and anything behind a login, usually not. Many sites reach for robots.txt, but Google’s robots.txt introduction says it “is not a mechanism for keeping a web page out of Google” and that “To keep a web page out of Google, block indexing with noindex or password-protect the page.” It also points out that robots.txt cannot enforce anything: “it’s up to the crawler to obey them.”

Page Should it be indexed? How I handle it
Treatment, service and location pages Yes HTTPS, crawlable, linked from the menu
Public booking or contact page Yes HTTPS, form submits to an https:// address
Form thank-you pages Usually no noindex
Patient portal and logged-in areas No Behind a login, never in the sitemap

Whether a form, portal or tracking set-up meets your privacy obligations is a separate question. This article is not legal advice; check that with your own counsel or compliance lead. I explain where that line sits for SEO work in my article on what to expect from a healthcare SEO agency.

Harden the admin area, not the public site

Most hardening belongs on the admin side, and none of it needs to affect what Google sees. The hardening guide recommends strong passwords, two-step authentication, an “HTTPS SSL encrypted connection for administration” and notes that “Adding server-side password protection (such as BasicAuth) to /wp-admin/ adds a second layer of protection.” It also says to “Back up your data regularly, including your MySQL databases.”

Two cautions from my audits. Some plugins load front-end features through files in /wp-admin/, so test the public forms after adding server-side protection there. And keep administrator accounts few: the receptionist who updates opening hours rarely needs full rights.

FAQ

Does Google hold healthcare websites to a higher HTTPS standard?

Google’s documentation describes no separate HTTPS or security standard for medical sites. The difference is what is at stake when patients use your forms.

Should I switch on auto-updates for every WordPress plugin?

Not without a way back. WordPress’s own documentation suggests making sure you can roll back first. I update the page builder, booking and form plugins by hand after a backup.

Can I use robots.txt to keep my patient portal out of Google?

Not on its own. Google says robots.txt is not a mechanism for keeping a page out of Google. Use noindex or, better for private areas, a login.

My security plugin blocks bots. Will it block Google?

It can. Check its logs and Search Console, and set it to allow crawlers verified by reverse and forward DNS lookup rather than by the name they claim.

Eugen Platon

Eugen Platon

Director of SEO & Web Analytics at onwardSEO
Eugen Platon is a highly experienced SEO expert with 16+ years of experience propelling organizations to the summit of digital popularity. Eugen, who holds a Master's Certification in SEO and is well-known as a digital marketing expert, has a track record of using analytical skills to maximize return on investment through smart SEO operations. His passion is not simply increasing visibility, but also creating meaningful interaction, leads, and conversions via organic search channels. Eugen's knowledge goes far beyond traditional limits, embracing a wide range of businesses where competition is severe and the stakes are great. He has shown remarkable talent in achieving top keyword ranks in the highly competitive industries of gambling, car insurance, and events, demonstrating his ability to traverse the complexities of SEO in markets where every click matters. In addition to his success in these areas, Eugen improved rankings and dominated organic search in competitive niches like "event hire" and "tool hire" industries in the UK market, confirming his status as an SEO expert. His strategic approach and innovative strategies have been successful in these many domains, demonstrating his versatility and adaptability. Eugen's path through the digital marketing landscape has been distinguished by an unwavering pursuit of excellence in some of the most competitive businesses, such as antivirus and internet protection, dating, travel, R&D credits, and stock images. His SEO expertise goes beyond merely obtaining top keyword rankings; it also includes building long-term growth and optimizing visibility in markets where being noticed is key. Eugen's extensive SEO knowledge and experience make him an ideal asset to any project, whether navigating the complexity of the event hiring sector, revolutionizing tool hire business methods, or managing campaigns in online gambling and car insurance. With Eugen in charge of your SEO strategy, expect to see dramatic growth and unprecedented digital success.
Eugen Platon
Check my Online CV page here: Eugen Platon SEO Expert - Online CV.