✦ WP Strażnik · version 2.5.0 · GPL-2.0

A WordPress security plugin that runs entirely on your server.

Malware scanner, cloaking and backdoor account detection, firewall (WAF), antispam and email alerts — for WordPress and WooCommerce. Your site files and visitor data never leave your hosting.

✦ In short

What WP Strażnik does and how to get it.

What it does
It scans for malware in files and in the places where malicious code hides, detects cloaking and backdoor accounts, removes infections with quarantine and undo, protects with a firewall (WAF), login protection and antispam, and sends email alerts.
Accessibility
A public downloadable version is in the works. Today, WP Strażnik runs as standard on the websites and stores we manage.
Who it's for
WordPress websites and WooCommerce stores, including on shared hosting.
Where it works
Entirely on your own server. Your site files and visitor data never go to the cloud.
What it doesn't do
It doesn't replace backups, updates or 2FA login. Those are separate layers of protection, which we cover in our guide how to secure WordPress.
Is your site already infected?
See below what the plugin does when removing malware and what you need to do yourself. The full procedure: WordPress hacked — what now.

✦ Why we built it

A hack that the installed plugin never saw.

01

The symptom

September 2026, one of the sites we manage. An external report: hidden links to gambling sites, visible only to search engine bots. To the owner and visitors, the site looked normal. The installed security plugin: no threats found.

02

What we found inside

A user account with an address impersonating the WordPress.org domain that couldn't be deleted — once removed, it came back under a new name with its own role. In the mu-plugins directory, a loader disguised as a performance plugin, a payload split across options in the database, copies hidden in uploads and upgrade, and a cron job rebuilding everything from any surviving copy.

03

What we built

A plugin that compares the page response for Googlebot and for a browser, checks the places where code hides, tracks accounts with privileges granted on the fly — and removes all copies at once, in the right order, instead of fighting one while the others restore the rest.

✦ Three principles

Locally. Without taking the site down. Without blocking customers.

01

Runs locally

Scanning, cloaking analysis, spam scoring, and evidence all stay on your server. The plugin never sends your site files or visitor data anywhere. Externally, it only downloads original files from WordPress.org, information about known vulnerabilities, and a country database for geolocation.

02

Won't take your site down

Before starting, it checks that its own files are complete. If any are missing, it switches to safe mode: the site keeps running, and the dashboard shows a message with a list and a restart button. Every module error is caught instead of ending in a white screen. Its own integrity is verified with a SHA-256 manifest.

03

Won't block store customers

A customer who mistypes a password loses access to the form only for a moment, not to the site. The firewall is lenient on store forms and never analyzes passwords or card data. Search engine bots, logged-in editors, and trusted addresses are never blocked. A correct administrator password lifts any ban.

✦ How it works

Four layers: detects, removes, protects, reports.

Malware scanner

Over 50 signatures of known malware families and heuristics for unknown threats: entropy, PHP hidden in images, double extensions, obfuscated strings, blocks appended to the end of a file. It covers hidden files, files without extensions, and foreign files in core and plugins. Files are compared against the originals from WordPress.org so legitimate code doesn't trigger false alarms. Scanning runs in batches, so it won't time out on shared hosting.

Cloaking

Every 6 hours, it fetches your own site as Googlebot (desktop and mobile) and as a regular browser, then compares the responses. Any difference is SEO spam visible only to search engines, the kind a file scanner can't see because it hides in output hooks or in the database.

Hiding place audit

Output hooks, drop-ins (db.php, advanced-cache.php), mu-plugins, wp-config.php, auto_prepend_file and .user.ini, cron, database options, active Code Snippets / WPCode snippets, foreign files included via the theme's functions.php, backup archives accessible from the web, tool plugins installed by attackers.

Backdoor accounts

Accounts with privileges granted on the fly (user_has_cap), undeletable accounts (map_meta_cap), administrator clone roles with innocent-looking names, accounts with backdoor traits (@wordpress.org e-mail, logins like backup_manager), hidden active plugins. With the exact file and line of the offending code.

Multi-copy backdoors

A payload split across options named after the site's salts, hidden dot files in upgrade and uploads, a cron job restoring the rest. Plus an audit of the entire hosting account: sibling installations under the same system user and files neutralized by the host's antivirus — the source of “miraculously” reappearing files.

Known vulnerabilities

Installed plugins, themes and the WordPress version are checked against a database of known vulnerabilities — so you know what to update first, before someone else does it for you.

Verdict with evidence

Every finding gets a verdict — infection needs review false positive — with point-by-point evidence and a preview of the suspicious snippet before you decide. Legitimate code marked as a false positive doesn't come back in later scans.

✦ Malware removal

WordPress malware removal: all copies at once.

After a hack, malicious code is often scattered: files in uploads, a loader in mu-plugins, the payload in database options, and a cron job that rebuilds everything from a surviving copy. Deleting one file isn't enough, so WP Strażnik cleans in a fixed order and checks that nothing has come back.

  • Finds infected files and code hiding spots: mu-plugins, drop-ins, wp-config.php, database options, cron
  • Sends files to quarantine with a backup copy and the option to undo, cuts out only the injected code, and restores core files from the original
  • Removes all copies at once, including on neighboring sites under the same hosting account, and checks the result after 5 minutes and after an hour
  • Removes backdoor accounts along with their sessions and application passwords, and rotates security keys
  • Clears the cache so that users and Google immediately see the clean site

What the plugin won't do for you

After the infection is removed, there is work that can't be automated:

  • determining how the attacker got in (an outdated plugin, a leaked password, a former contractor's account) and closing that entry point
  • changing passwords for the admin panel, hosting, FTP/SFTP and the database
  • updates and, in the case of a widespread infection, restoring the site from a clean backup made before the hack
  • requesting a review in Google Search Console if Google flagged the site as dangerous
  • checking whether any customer data was leaked

We describe the step-by-step procedure in the guide WordPress hacked — what now, and how we respond to hacks on sites in our care on the page about WordPress website security.

✦ Dashboard in WordPress

Seven screens. Zero configuration to get started.

After activation, the plugin scans, protects logins and filters spam with default settings. You only enable what requires your decision: regions, "under attack" mode, alert addresses.

  1. Dashboardprotection status, recent findings, plugin integrity
  2. Scanningfile scan, deep checks: cloaking, audit, accounts, persistence, hosting
  3. Quarantineisolated files that can be restored, cleanup history
  4. Firewallrules, blocks, allowlist, regions, challenges
  5. Anti-spamstatistics, recent blocks, lists, text tester
  6. Event logfull history with filtering
  7. Settingsalerts, schedules, hardening, Nginx rules, tools
// wp-cli
# full file scan and deep checks
~ $ wp straznik scan
~ $ wp straznik audit
~ $ wp straznik cloaking

# accounts, multi-copy backdoors, keys
~ $ wp straznik accounts audit
~ $ wp straznik persistence plan
~ $ wp straznik salts

# findings, cleanup, undo
~ $ wp straznik findings
~ $ wp straznik clean
~ $ wp straznik rollback

# vulnerabilities, spam, geolocation, unblocking
~ $ wp straznik vulns
~ $ wp straznik spam
~ $ wp straznik geo lookup --ip=…
~ $ wp straznik unblock

✦ Requirements and compatibility

Works where Polish websites are hosted.

WordPress
5.6 or newer · tested up to 7.1
PHP
7.4 or newer
WooCommerce
reviews, registration, customer login, card skimmer rules
Shared hosting
scanning in batches with a time limit; full account audit (DirectAdmin and other setups)
Cache
LiteSpeed Cache, WP Rocket and others — cache purge after every change
Server
Apache (.htaccess) and Nginx (ready-made rules to hand over to your administrator)
Forms
Elementor Pro, Contact Form 7, WPForms, Gravity Forms, Ninja Forms, Fluent Forms, Forminator
Multilingual support
Polylang, WPML — script detection matched to the site language
External login
Google, Facebook, SSO (OAuth/OIDC/SAML) recognized, not blocked
License
GPL-2.0-or-later · geolocation data: IP to Country Lite by DB-IP.com (CC BY 4.0)

✦ Download

WP Strażnik 2.5.0 — public release coming soon.

The plugin is in daily use on the websites and stores we manage. We're preparing a version for self-installation: a ZIP package with instructions, a first-run settings page, and WP-CLI command documentation. Leave your contact details and we'll message you on launch day.

  • ZIP package to upload via Plugins → Add New
  • First-run guide and post-installation checklist
  • WP-CLI command documentation
  • GPL-2.0-or-later license
wp-straznik-2.5.0.zip coming soon
Version
2.5.0
Requires
WordPress 5.6+ · PHP 7.4+
Tested up to
WordPress 7.1
License
GPL-2.0-or-later
Notify me about the release →

Need protection today? WP Strażnik comes standard with our website and store maintenance.

✦ Version history

Every version responds to a real incident.

  1. 2.5.0
    Regions, “under attack” mode, AI bots. Blocking or allowing traffic from countries chosen by the owner (off by default), geolocation without external services, per-IP rate limiting, denial for AI bots. Critical fix: Google/SSO login is no longer blocked, and an IP ban no longer locks the administrator out.
  2. 2.4.0
    Hosting module. Audit of the entire hosting account: sibling installations under the same user, drop-ins, files neutralized by the host's antivirus, foreign code in the theme's functions.php, the user's crontab.
  3. 2.3.x
    Persistence and resilience. Self-healing multi-copy backdoors removed at once; a restoration guard that identifies the culprit file; new security keys; administrator clone roles; the plugin never takes the site down — safe mode, SHA-256 manifest, signatures resistant to hosting antivirus.
  4. 2.2.0
    Accounts module. Accounts with privileges granted on the fly, undeletable accounts, hidden active plugins, “Force delete account,” account restoration guard.
  5. 2.1.0
    Anti-spam. Comments, WooCommerce reviews, registration and forms from seven plugins — locally, with bot traps, point scoring and learning from the administrator's decisions.
  6. 2.0.0
    Deep checks. Cloaking detection, audit of code hiding spots, known vulnerabilities in installed plugins and themes.

✦ Questions and Answers

What website owners ask about.

Does WP Strażnik send data from my site to external servers?

No. Scanning, cloaking analysis, spam scoring, and evidence all run entirely on your server. The plugin only connects externally to download original files from WordPress.org for comparison, retrieve information about known vulnerabilities (based on the names of installed plugins), and fetch a country database for geolocation. Your site files, visitor IP addresses, and form contents are never sent anywhere.

Will WP Strażnik remove a virus from an already infected site?

Yes, it's one of its main tasks. It finds malicious code in files and in hiding places (mu-plugins, drop-ins, database options, cron), sends files to quarantine with the option to undo, cuts out injected code, removes backdoor accounts and all copies of the backdoor at once, and then checks that nothing has come back. However, it won't determine for you how the attacker got in, and it won't change your hosting passwords. Today it does this on the sites we manage; the public version is in preparation.

Can the plugin block my customers from the store?

It is designed not to do that. A customer who mistypes a password loses access only to the login form for a short time, not to the site. The firewall is lenient on store forms and does not analyze passwords or card data. Search engine bots, logged-in editors, and trusted addresses are never blocked. A site-wide ban is triggered only by an attack pattern, and the correct administrator password lifts any ban.

What is cloaking, and why doesn't a regular scanner detect it?

Cloaking is serving search engine bots different content than users see — after a hack, usually hidden links to gambling sites. A file scanner looks for malicious code in files, while cloaking can be hidden in output hooks or in database options that the scanner doesn't inspect. Every 6 hours, WP Strażnik fetches your site as Googlebot and as a browser and compares the responses — a difference is proof, no matter where the code is hiding.

What happens if the plugin removes something that's needed?

Every removal goes to quarantine with a copy and can be undone with one click; bulk removal has an automatic rollback; core files are repaired from the original, not deleted; critical files are protected from accidental removal. The "false positive" verdict lets you mark legitimate code so it doesn't come back in later scans.

Does WP Strażnik replace backups and updates?

No. It detects and removes infections and protects against attacks, but an off-host backup and regularly scheduled updates remain the foundation — we cover them in our guides on 3-2-1 backups and safe updates. The plugin flags known vulnerabilities in installed plugins and themes so you know what to update first.

Does it work with caching and on shared hosting?

Yes. After every change, it automatically clears the cache (LiteSpeed Cache, WP Rocket, and others). Scanning splits files into batches with a time limit, so it doesn't get interrupted on shared hosting even with tens of thousands of files; on weak hosting, you can reduce the number of files per step. The hosting account audit covers twin installations under the same user — a typical case where an infection spreads between sites.

When will the plugin be available to download?

We're preparing a public version with a user guide and documentation. Leave your contact details using the "Notify me about the launch" button — we'll send you a message on release day. Until then, WP Strażnik is included as standard for sites and stores under our management.

✦ Security as standard

We don't sell protection as a service. We build websites that have it.

WP Strażnik is the tool we use to deliver one of the components of every website and store from Websky Studio. What this whole component looks like — firewall, access control, backups with restore testing, monitoring — we've described separately.