Skip to content
Sign in

DoctorX Hardening

Simple security for WordPress: hides your usernames and plugin list, adds a phone code to sign-in, and records who changed what.

Not scanned yet WordPress plugin

Install in

No install steps yet

Follow the steps on the source page.

DoctorX Hardening makes your WordPress site harder to break into. It closes a few doors that WordPress leaves open, lets people add a code from their phone when they sign in, and can keep a record of who did what on your site.

You do not need to know anything about security to use it. Turn it on and the main protections work right away. Everything is free. Nothing is locked and there is no paid version.

What it does as soon as you turn it on

  • Hides your usernames. Normally anyone can look up the usernames on a WordPress site. A username is half of what someone needs to break in. Visitors can no longer see them.
  • Hides your list of plugins. Normally WordPress tells anyone who asks which plugins your site runs. Attackers use that list to look for a weak one. Visitors no longer get it.
  • Keeps author pages from giving names away. Links to author pages now go to your home page. If your site shows author pages on purpose, switch this one off.
  • Stops a small WordPress guess. When someone types a short address like /fr/ that does not exist, they get “page not found” instead of being sent to a page with a similar name.
  • Offers two-step sign-in. Each person can choose to type a 6-digit code from a free phone app after their password. Then a stolen password alone is not enough to get in. Nobody has to use it unless you make it required.

Each one has its own on/off switch under Settings Hardening.

Extra protections you can switch on

These are all off until you switch them on. Each one says how to undo it.

  • Lock out password guessers. An internet address that gets the password wrong 5 times in a day cannot sign in for 30 days. You choose addresses that are not locked out, such as your office.
  • Require two-step sign-in for the roles you choose, such as administrators, from a date you pick.
  • Email a code to someone who does not have their phone with them.
  • Close little-used doors: XML-RPC (an old way for apps to sign in), app passwords, and the WordPress version number shown in your pages.
  • Hide your sign-in page at an address only you know. Not for shops or member sites, where visitors sign in themselves.
  • Block scanners. A visitor who asks for secret files that only hacking tools look for is blocked from the whole site for 7 days. Search engines are not blocked.
  • Activity record. See who signed in, who failed to, and who changed posts, pages, plugins, settings or users, and when. Get an email, Slack, Teams, Discord or Telegram alert when something important happens.
  • security.txt. A small standard file that tells someone who finds a security problem on your site how to reach you.
  • Cloudflare rules, if your site uses Cloudflare. Add ready made blocking rules with one button and take them away with another.
  • Ready made lines for your web server, for you or your web host to copy in.
  • A down page for every site of a network. Set the wording and look once for the network, or per site. Each site’s page is written to a small file the web server shows while PHP cannot answer. WordPress shows the same page while the database cannot answer, unless the site already has a db-error.php of its own. The screen shows whether each site’s file is current.
  • The visitor’s own address behind your proxies. Name the proxies your site sits behind (Cloudflare’s published addresses, kept current with an Update button, or your host’s own proxy). Only requests from them may say who the visitor is. Every limit and the activity record then use that address, and the screen shows the address your site sees for you.
  • Content policy reports. See what a content policy would block, in report-only form (nothing is blocked). A table on Settings Hardening groups the reports and suggests what to add, such as “add https://example.com to script-src”. No visitor address is kept, and reports go after 30 days.
  • Where visitors come from. See the top cities and countries of your visitors over the last 7 and 30 days. It uses DB-IP’s free city file, which you download with a button. Only a count per city and day is kept, and nothing that names a person.
  • Very large picture folders and Wordfence. If Wordfence’s scan runs out of memory on a very large folder of pictures, the screen offers to leave that folder out of the scan, once a test shows that PHP cannot run there.
  • A “not found” count. An address that gets 40 “not found” answers within five minutes is banned like a scanner. Missing pictures, scripts and fonts, crawlers and signed-in people are not counted.
  • A watch on many addresses at once. See, in five-minute windows, how many addresses ask for pages and how many are turned away, for the last three hours. You can have one short mail when a wave comes.
  • Two-step sign-in on the website. A shortcode puts the set-up panel on a page of your website for signed-in clients, and people who must use an authenticator app can be asked for it on every page.
  • A header for Cloudflare APO, that tells it which pages it may keep for visitors who are not signed in.

What it does not do

So you know where its job ends:

  • It is not a virus or malware scanner. It does not clean a site that has already been hacked.
  • It does not check every visit for attacks the way a firewall service does.
  • It does not make backups.
  • It does not update or fix your other plugins and themes. Keep them up to date.
  • It does not change what visitors, search engines or AI assistants see on your pages. Your search ranking is not affected.
  • Hiding things makes an attack harder, not impossible. Strong passwords and updates still matter.
  • It sends nothing about your site or your visitors to DoctorX or anyone else. The outside services listed further down (such as Cloudflare or Slack) are only used if you set them up yourself.

Who it is for

Any WordPress site owner who wants the common holes closed without learning security. It works with any theme and needs no other plugin.

Made by DoctorX.ca.

External services

Nothing in this plugin talks to an outside service until you ask it to. None of the outside services below is used on a website set up not to send (DOCTORX_HARDENING_MAY_CONNECT set to false, or the doctorx_hardening_may_connect filter), such as a staging copy, except WordPress.org’s checksums (which WordPress itself also fetches), the look-up of trusted host names by your server’s DNS resolver, and requests to your own site’s address.

  • Cloudflare API (https://api.cloudflare.com/client/v4), only after you save a Cloudflare API token of your own on Settings Hardening Sign-in and server, and only for what you press there or switch on. That is:

    • listing the zones the token can see
    • reading a zone’s custom firewall and rate-limit rules (Preview)
    • reading the zone’s cache rules, once a day, for the self-check (read only)
    • adding, changing or putting back rules (Apply, Undo, Copy), on the zones you ticked for your trusted addresses too
    • with “When a trusted host name points to a new address, change it in the DoctorX rules on the ticked zones by itself” ticked, reading those zones’ rules (and this site’s own zone when DoctorX rules are applied there) and changing that one address in the DoctorX rules, when a trusted name’s address changes
    • with a zone ticked for your trusted addresses, or the follow box ticked, reading the rules of each of those zones once, when the screen is opened, at Save, or with the follow box ticked at the next look-up (and of this site’s own zone when DoctorX rules are applied there)
    • on “Preview” and “Apply” under “DoctorX rules that still hold an old address”, reading the zones named there and changing that address in those rules
    • sending the probe ban’s addresses as IP access rules (Send them now), and with “Send new bans to Cloudflare by themselves” ticked, the same list about a minute after an address is banned (bans that ended are taken away)
    • with “When a page changes, have Cloudflare forget it” (or DoctorX Command Center’s “Empty caches”), the addresses of changed pages or a “forget everything” request.

    Sent: the token (as the request’s authorisation), the zone’s id, the rules this plugin generates (your host names, your trusted addresses, the hidden door’s address when it is on), banned internet addresses, and page addresses. Nothing about your visitors or accounts is sent. Cloudflare’s terms: https://www.cloudflare.com/website-terms/ and privacy policy: https://www.cloudflare.com/privacypolicy/

  • Cloudflare’s published address lists (https://api.cloudflare.com/client/v4/ips, no token needed), only when you press “Update Cloudflare’s list” on Settings Hardening Sign-in and server. Nothing is sent but the request for the lists. Cloudflare’s terms: https://www.cloudflare.com/website-terms/ and privacy policy: https://www.cloudflare.com/privacypolicy/
  • DB-IP (https://download.db-ip.com), only when you press the city database button under “Where visitors come from”: your site downloads the month’s free city file. Nothing is sent but the request for the file. No visitor’s address goes to DB-IP: addresses are looked up in the file on your own server. DB-IP’s terms: https://db-ip.com/tos.php and privacy policy: https://db-ip.com/privacy.php
  • ipinfo.io (https://ipinfo.io), only when you choose “ipinfo.io” under “Where addresses are” on the activity record’s More settings screen, save your own token, and an administrator opens an address in the record: that one internet address and your token. ipinfo’s terms: https://ipinfo.io/terms-of-service and privacy policy: https://ipinfo.io/privacy-policy
  • Google Maps Static API (https://maps.googleapis.com), only when you switch on the sign-in map and save your own Google Maps key, and only when an administrator opens the map. Sent: up to 60 rounded map points (latitude and longitude to three decimals, about 100 metres) and your key. No addresses, names or accounts are sent. Google’s terms: https://cloud.google.com/maps-platform/terms and privacy policy: https://policies.google.com/privacy
  • Alerts, only to the destinations you add on the activity record’s More settings screen (Alerts) and only for the rules you set. Sent: the alert’s subject, text and a link to the record. For a webhook, also your site’s address, the rule’s name and the event (as below). The destinations can be:
    • Slack (the webhook address you paste). Terms https://slack.com/main-services-agreement and privacy https://slack.com/trust/privacy/privacy-policy
    • Discord. Terms https://discord.com/terms and privacy https://discord.com/privacy
    • Microsoft Teams. Terms https://www.microsoft.com/en-us/servicesagreement and privacy https://www.microsoft.com/en-us/privacy/privacystatement
    • Telegram (api.telegram.org with your bot’s token and chat). Terms https://telegram.org/tos and privacy https://telegram.org/privacy
    • any address of your own that takes JSON, signed with your secret if you set one.
  • Log forwarding, only when you switch it on on the activity record’s More settings screen and switch on a destination with its connection details. Sent: every event as it is written, with its date, kind, level, message, who did it (user id, login and email address), the internet address and any addresses passed on by a proxy, the browser’s user agent, what it was about, the event’s details and your site’s address. (Writing to this server’s own system log is not an outside service and also happens on a website set up not to send.) The destinations can be:
    • this server’s own system log
    • a syslog server you name (UDP, TCP or TLS)
    • Datadog’s Logs API with your key. Terms https://www.datadoghq.com/legal/terms/ and privacy https://www.datadoghq.com/legal/privacy/
    • Splunk’s HTTP Event Collector with your token. Terms https://www.splunk.com/en_us/legal/splunk-general-terms.html and privacy (Splunk is part of Cisco) https://www.cisco.com/site/us/en/about/legal/privacy.html
    • any webhook address of yours.
  • WordPress.org (https://api.wordpress.org), only when you switch on “Check WordPress’s own files once a day” in the activity record’s settings: once a day, your WordPress version and language, to fetch the official checksums of WordPress’s files (the same request WordPress makes for its own updates). WordPress.org’s privacy policy: https://wordpress.org/about/privacy/
  • Your server’s DNS resolver, in two cases only. When you switch on “Also ask for the address’s host name” and an administrator opens an address in the record: that one internet address, to look up its host name (reverse DNS). And when you write a host name on the trusted list: that name, every 15 minutes, to learn the address it points to now. With a name on the list, your site’s own host name is looked up as well, so that a name pointing at your own server is not trusted.
  • The emails this plugin sends (sign-in codes, the hidden door’s address, notes about two-step sign-in, and with “Mail me when a wave comes” ticked a short note to the administration address) go through your site’s own mail setup to your own people.
  • Your own site’s address, which passes through your proxy or CDN if you have one. Once a day, for the self-check: a few requests to your own site (a probe file in each private folder and a private probe page). When you press “Check again” for very large picture folders: the small test files, deleted at once. When you have the starting content policy built from your site: up to 12 of your own public pages. Nothing is sent to anybody else.
  • The crawler-list script on the “Lines for your web server” screen is a file you download and run on your server yourself: it fetches the address lists at developers.google.com, www.bing.com, search.developer.apple.com, duckduckgo.com, openai.com, www.perplexity.ai and www.cloudflare.com. The plugin itself does not fetch them.

Source code and credits

All code is included unminified. The picture you scan when setting up two-step sign-in is drawn in the browser by QR Code Generator for JavaScript by Kazuhiko Arase (MIT licence), included unchanged in assets/vendor/qrcode-generator.js. The word “QR Code” is a registered trademark of DENSO WAVE INCORPORATED.

Written by Joobi from the project's own listing. See the source page

Activity Logsecuritysecurity.txttwo factor authenticationuser enumeration
26 Nov 2026
Version 0.19.1 released. Not scanned yet.

0.19.1

  • The backup codes and the note shown once on the website panel now wait for the page the person opens: a panel built where nobody sees it (a REST answer, a feed, an embed, a background request) no longer uses them up, and a second panel on the same page shows them too.
  • With “Send new bans to Cloudflare by themselves” on, the list goes again a minute after a ban ends, so Cloudflare takes ended bans away on time.
  • The lane of the nginx lines for callbacks holds no paths of its own: a plugin with such a REST route names it through the doctorx_hardening_hook_paths filter.

0.19.0

  • The “Lines for your web server” screen can refuse AI training crawlers and bulk scrapers at the door (a new piece, left unticked until you tick it), lets Apple, DuckDuckGo, OpenAI and Perplexity into the verified crawler lane by the addresses they publish, and gives each AI crawler family its own limit of 30 requests a minute.

0.18.0

  • Internal changes only. Nothing changes on your site.

0.17.0

  • Two-step sign-in on the website itself, each part off until you switch it on in Settings, Hardening: a panel where a signed-in client sets up an authenticator app (the [doctorx_hardening_two_step] shortcode), and a wall for people who must use one (ticked on their profile, or a chosen role). The wall shows the set-up on every page of the website until it is done, then asks for a code once per sign-in session, also after signing in with an emailed code. Administrators are asked only when ticked.

0.16.0

  • Two new watches in Settings, Hardening, each off until you switch it on. A count of every “not found” answer: an address that meets 40 within five minutes is banned for the probe ban days. Missing images, scripts and fonts, crawlers and signed-in people are not counted, and the count stops banning after 5 bans or 75 addresses in one window. A proxy that is not named, shown on the screen, is not counted. A second switch, also off, sends the ban list to Cloudflare by itself a minute after a ban, when a Cloudflare token is saved. A watch on many addresses at once: it counts, in five-minute windows, how many addresses ask for pages and how many were turned away, shows the last three hours with the pages asked most, and can mail the administration address when a wave comes (at most once in four hours, off until you switch it on).
  • The lines for nginx can hold a ceiling of open connections for each lane of traffic (visitors who are not signed in, signed-in people, crawlers, AI crawlers, and callbacks that a plugin names) with a short “slow down” page, for your host to add inside the locations that pass requests to PHP (images and styles are never counted).
  • The web-root lines for nginx and Apache refuse more: readme and license files, the text files of wp-includes, copies of wp-config, backup, swap and database files, renamed PHP files, and every PHP file under wp-content.
  • A cf-edge-cache header, off until you switch it on, tells Cloudflare APO that pages for visitors who are not signed in may be kept and pages for signed-in people may not. A page sent as “do not keep” (nocache_headers) says no-cache too. The doctorx_hardening_cf_apo_cache filter can change it.

0.15.7

  • Activity forward: when the PHP of this server cannot send a webhook only to the address that was just checked (no cURL, no cURL with SSL for an https address, or a cURL too old for it), nothing is sent, and the send says why and what to ask your host. When another plugin would send it another way or change its connection, nothing is sent either. The address check also refuses more IPv6 forms that lead to a private or local address. A server that switched off the PHP function curl_setopt_array no longer stops with a PHP error. These requests no longer go through a proxy set in the environment of PHP, because a proxy looks the name up again. The proxy of the website (WP_PROXY_HOST) is used as before.

0.15.6

  • Internal changes only. Nothing changes on your site.

0.15.5

  • The probe ban switched off by a script forgets the probes counted so far, as it does on Settings, Hardening. The WP-CLI commands guard and door take the same steps as that screen. The settings are stored in one form whoever saves them, and a script that goes from site to site on a network changes each site’s own settings.

0.15.4

  • Internal changes only. Nothing changes on your site.

0.15.2

  • Where visitors come from counts at most 30 visitors in 5 minutes from one address, so a script cannot swell the counts. Deleting the plugin also removes three short-lived notes it used to leave behind. The suggested privacy text now says that the counter’s cookie stays for up to two days.

0.15.1

  • Internal changes only. Nothing changes on your site.

0.15.0

  • New, off until you switch it on: Where visitors come from. The top cities and countries of your visitors over the last 7 and 30 days, from DB-IP’s free city file that you download with a button.

0.13.2

  • Internal changes only. Nothing changes on your site.

0.13.1

  • Fixed: when the sign-in code is sent by text through another plugin and the text could no longer be sent, the code went by email but the page said it was sent by text. The page now says where it went.

0.13.0

  • New, off until you switch it on: a down page kept in step on every site of a network, shown while PHP or the database cannot answer, with a check on the screen that each site’s file is current.
  • New, off until you switch it on: the visitor’s own address behind the proxies you name, Cloudflare’s list kept current with an Update button.

0.12.1

  • No more notice in the debug log that translations of DoctorX Hardening loaded too early when a host name is on the trusted list and another plugin asks for the list of schedules before WordPress has loaded translations.

0.11.1

  • Internal changes only. Nothing changes on your site.

0.11.0

  • New, off until you switch it on: content policy reports. Your pages ask browsers to report, without blocking anything, what a starting policy built from your own pages would block, and Settings Hardening shows the reports grouped with a plain suggestion for each.

0.9.9

  • Fix: on a network, a deleted site no longer leaves this plugin’s data of that site behind. It goes by the same rule as deleting the plugin from that site. When the plugin did not run where the site was deleted (active on that site only), a network admin sees what the site left on the network’s Sites screen and on this plugin’s settings screens, and removes it with a button.

0.9.1

  • With the follow box ticked, a trusted host name’s new or dropped address now also changes in the trusted addresses that the other DoctorX Cloudflare rules leave out (block, challenge, probe paths, rate limit). With it not ticked, the screen lists the DoctorX rules that still hold an old address, with Preview and Apply.

0.9.0

  • New, off until you use it: your trusted addresses can get through on every Cloudflare zone you tick (one difference per zone, sent when you press Apply).
  • New, off until you use it: the trusted list can hold a host name for a changing address (IPv4 and IPv6), looked up every 15 minutes, with an optional box that follows its new address at Cloudflare.

0.8.0

  • With Wordfence active, very large folders of pictures under uploads are found with a strict time and count limit, and the screen offers to skip them in Wordfence’s scan (which can run out of memory on them). The button shows only after “Check again” proves PHP cannot run there (test files fetched from this server and refused), keeps the rest of Wordfence’s list as it was, and has Undo. Nothing in Wordfence changes without it, and no test file is written without a press.
  • The daily self-check no longer reads a whole folder at once, and leaves such a folder of pictures alone.

0.7.5

  • Security: the activity record keeps an event that comes from a form (the file editor, settings screens, signing out everywhere, a new account and others) only after that form’s own security check and the person’s rights are confirmed.
  • Fix: when two site self-checks start at the same moment, only one of them runs.
  • Behind a proxy: once the proxy addresses are listed, the other DoctorX plugins on this site read the visitor’s address the same way, and the screen says so.
  • Fix: the activity record’s More settings and a new feed secret are kept again.
  • Fix: trusted addresses are left out of every Cloudflare rule, of the nginx lines and of the ban list sent to Cloudflare, as the guard does. A trusted range written as ::ffff: with a short prefix no longer holds every IPv4 address.
  • Fix: Cloudflare’s own addresses are spared from pauses and bans only on a site behind Cloudflare.
  • Fix: alerts to Discord and Teams show typed names as plain words.
  • A signed-in person’s admin-ajax and REST requests sent from another website are refused. A request that names no website, a link followed from another website and an application password go on as before.
  • The activity feed’s secret is now sent in a header (the feed reader’s password), not in the address, because addresses are written to server logs. The old secret is replaced once.

0.7.1

  • Fix: a sign-in waiting for its code is kept in the database with its own end time. On a site with an object cache, a cache flush in the middle of signing in no longer sends the person back to the sign-in page. The same ten minutes, one use and lock after five wrong codes apply.
  • Fix: the backup codes shown once, the note after an administrator switches two-step sign-in off for someone, the Cloudflare preview waiting for Apply and the notes shown after a button are kept the same way.
  • On a multisite network, a note or a Cloudflare preview waiting for Apply stays on the site it was made on.
  • New: a daily self-check. Each private folder under uploads gets a small probe file that is fetched without a cookie and deleted at once. If a visitor can read it, the Sign-in and server tab names the folder with the nginx and Apache lines that close it.
  • New: the same check fetches a private probe once with a one-time cookie and once without. If the answer without the cookie is the private one, or a cache hit, the tab says your proxy or CDN caches by address alone. With a Cloudflare token it also lists the zone’s cache rules that make answers cacheable (read only).
  • The check only reads. It never changes the web server or Cloudflare. A site that cannot reach its own address skips it, and the tab says so once. A “Check now” button runs it at once.
  • After the update, a sign-in that was already waiting for its code ends. The person signs in again.

0.6.9

  • Fix: on a server that gives IPv4 addresses in IPv6 form (::ffff:203.0.113.9), each visitor is counted on their own. One visitor’s failed sign-ins no longer pause everyone, and the trusted list and private addresses match.
  • Fix: behind a proxy that adds the port to X-Forwarded-For (203.0.113.9:51234), the guard reads the proxy’s entry. A visitor can no longer choose the address the guard counts.
  • Fix: when a proxy writes something in X-Forwarded-For that is not an address, the guard counts the proxy’s own address, not what the visitor wrote before it.
  • Fix: the activity record notes changes made in Redirection when the web address uses capital letters.
  • Fix: the activity record keeps IPv4 addresses given in IPv6 form as IPv4, and a forwarded address with a port, as the guard reads them. The trusted list, the proxies list and lifting a pause read every way of writing such an address.

0.6.8

  • First release on WordPress.org. Needs WordPress 6.2 or later.
  • Hidden user list and route list, author pages kept private, no guessed pages for language-style addresses.
  • Two-step sign-in with an authenticator app and backup codes.
  • security.txt with its expiry date and reminders.
  • Sign-in and server protections, each off until you switch it on: password-guess lockout, one message for wrong names and passwords, small doors shut, two-step sign-in required for chosen roles, a code by email, a hidden sign-in door, a probe ban, Cloudflare edge rules with your own token, and lines for your web server.
  • Activity record (off until you switch it on) under Tools Activity, with filters, downloads, insights, a weekly email, Simple History import and WP-CLI commands. Alerts, forwarding, core file checks and address lookups are each off until you switch them on.
9 Nov 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)