✦ 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.
~ $ wp straznik status ✓ scanner 50+ signatures · baseline up to date ✓ cloaking last test 06:00 · no differences ✓ accounts 0 cloned roles · 0 accounts blocked ✓ firewall active · 3 blocks today ✓ antispam 14 rejected · 0 false positives ✓ integrity 42/42 files match the manifest ~ $ ▌
✦ 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.
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.
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.
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.
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.
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.
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.
Quarantine with undo
The file disappears from the site, but you can restore it with one click. Permanent deletion always comes with an automatic backup; critical files (wp-config.php, wp-load.php, index.php) are protected from accidental deletion.
Surgical cleanup
Removes only the injected code instead of deleting the entire file. Core files are repaired by downloading the original from WordPress.org. Bulk removal with a progress bar and automatic rollback.
"Remove all copies at once"
Detaches loader hooks in the current request, disables cron, deletes options directly in the database, sends files to quarantine — including on neighboring sites in the same account — and checks the result after 5 minutes and after an hour. Works without JavaScript and is resistant to script errors from other plugins.
"Force-delete account"
Removes foreign filters that control accounts, deletes the account directly in the database along with sessions and application passwords, reassigns content, blocks the name and the cloned role. Any attempt to recreate it is reversed immediately, and the stack trace points to the responsible file.
New security keys
Eight new salts in wp-config.php with one button, with a backup and syntax check. It invalidates all sessions — including the attacker's — and the XOR key of encrypted payloads.
Cache after every change
Automatic cache clearing (LiteSpeed Cache, WP Rocket and others), so the cleaned site is immediately the one that users and Google see.
Firewall (WAF)
Rules for SQL injection, XSS, RCE, LFI/RFI, PHP wrappers, JNDI, PHP file uploads and web shells; additional WooCommerce rules that detect card skimmers, with an allowlist of legitimate gateways. Gentle on store forms, never analyzes passwords or card data. Proxy addresses, search engine bots and logged-in editors are not blocked; a safety fuse for mass blocking; Google login and SSO are recognized, not blocked.
Login protection
If a store customer makes a mistake, only the form is briefly locked. A site-wide ban applies only to an attack pattern: a series of different usernames, dictionary attempts. A banned address still gets the form — the correct administrator password lifts the ban and adds the address to the trusted list.
Anti-spam
Comments, WooCommerce reviews, registration, forms (Elementor Pro, Contact Form 7, WPForms, Gravity Forms, Ninja Forms, Fluent Forms, Forminator). Honeypot, JavaScript trap, time trap, scoring — links, spam words in many languages, alphabet that doesn't match the site's language, homoglyphs, disposable email addresses — and learning from your decisions. All done locally.
Regions
Block or allow traffic from countries that only you choose — the feature is off by default, and the plugin doesn't select any country. Scope: login and dashboard / forms / entire site. Geolocation without external services: server variables or a local DB-IP database refreshed monthly. Unknown countries are allowed through.
"Cloudflare-style" mode
JavaScript challenge, “under attack” mode (anonymous visitors pass the challenge once a day), per-IP rate limiting with a challenge threshold and a block threshold, blocking AI bots with entries in robots.txt. Everything is off by default — it's the owner's call.
Hardening and monitoring
XML-RPC, user enumeration, REST, the dashboard file editor, PHP execution in uploads, security headers; ready-made Nginx rules. Monitoring of file and account changes between scans (baseline).
Alerts for real threats
Malicious code detected, login attack blocked, admin login from an unknown address, new administrator account, site URL change, plugin activation, theme change, modified core files, critical PHP error. Sent to any number of addresses.
No inbox flooding
Throttling: during an attack you get one summary message, not three hundred. Daily report with a summary. Test message to check your email configuration in one click.
Event log
What, when, from which address and which file was the culprit — every block, every finding, every rolled-back backup or account restore, with a call stack trace.
WP-CLI for everything
Scan, findings, cleanup, quarantine, rollback, audit, cloaking, accounts, persistence, salts, vulnerabilities, spam, geolocation, address unblocking, mail test — without logging in to the dashboard, including in scripts and server cron.
✦ 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.
- Dashboardprotection status, recent findings, plugin integrity
- Scanningfile scan, deep checks: cloaking, audit, accounts, persistence, hosting
- Quarantineisolated files that can be restored, cleanup history
- Firewallrules, blocks, allowlist, regions, challenges
- Anti-spamstatistics, recent blocks, lists, text tester
- Event logfull history with filtering
- Settingsalerts, schedules, hardening, Nginx rules, tools
# 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
- Version
- 2.5.0
- Requires
- WordPress 5.6+ · PHP 7.4+
- Tested up to
- WordPress 7.1
- License
- GPL-2.0-or-later
Need protection today? WP Strażnik comes standard with our website and store maintenance.
✦ Version history
Every version responds to a real incident.
- 2.5.0Regions, “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.4.0Hosting 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. - 2.3.xPersistence 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.
- 2.2.0Accounts module. Accounts with privileges granted on the fly, undeletable accounts, hidden active plugins, “Force delete account,” account restoration guard.
- 2.1.0Anti-spam. Comments, WooCommerce reviews, registration and forms from seven plugins — locally, with bot traps, point scoring and learning from the administrator's decisions.
- 2.0.0Deep 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.
- 01Website and store maintenanceWP Strażnik, backups, tested updates, monitoring — from 250 zł/month
- 02Knowledge hubCybersecurity series: phishing, data leaks, NIS2, ransomware, fake stores — read
- 03Contact+48 518 790 600 · kontakt@websky-studio.pl · Mon–Sat 9:00–20:00
