Security & privacy: WordPress security and cookie consent
Clean it up, lock it down, prove the consent setup holds.
When a site is broken into, our team finds how, contains it, rotates what must be rotated, and writes it up. When it has not been, we make sure it stays that way: hardening, audit crons, update cycles, and a consent setup that actually holds.
What the stars stand for
- Incident response
- Break-ins traced through the logs, contained, cleaned up and written up
- nginx
- Bot blocking, staging allow-lists, a crawler flood of millions of hits diagnosed
- fail2ban
- fail2ban and ModSecurity tuning on Plesk and ISPConfig hosts
- Audit crons
- Daily core checksums, admin allow-list and webshell pattern checks
- Consent Mode v2
- Custom cookie consent solutions built around Google Consent Mode v2
- Mail auth
- SPF, DKIM and DMARC; an open spam relay closed
Security
- Incident response: compromised sites traced through their logs, backdoors and rogue accounts removed, credentials and salts rotated, updates automated, and a written incident report delivered.
- Compromise checks and monitoring: full-file scans across tens of thousands of files, searches through gigabytes of logs, and daily and weekly audit crons that check core checksums, the administrator allow-list and webshell patterns.
- Hardening: deny rules, leaked backups removed, user enumeration closed, HSTS and security headers, file editing disabled, form protection, an open spam relay closed, nginx bot blocking, staging IP allow-lists.
- Infrastructure and mail: Cloudflare WAF and cache rules, origin and wildcard certificates, self-hosted analytics behind nginx, mail-provider DNS cutovers, SPF/DKIM/DMARC analysis and server-side mail filtering.
- Server diagnosis: Plesk, ISPConfig and managed hosts; crawler floods of millions of hits, OPcache corruption, fail2ban and ModSecurity tuning.
- Update cycle: regular update and security rounds across a portfolio of WordPress sites, staging-first on the critical ones, with runbooks and a final live check.
Privacy and consent
- Custom consent solutions: cookie consent built to fit your site, with automatic script blocking, Google Consent Mode v2, a consent log with IP hashing and retention purge, per-site cookie tables from real audits, cache-safe output.
- Consent manager projects: third-party requests before consent reduced to zero and proven with browser-protocol audits; tag managers moved behind consent with Consent Mode mapping; external fonts self-hosted.
- Cookieless analytics: self-hosted analytics with team roles and ad-blocker-safe delivery, plus consent gating for maps, review widgets and WooCommerce order attribution.
- Policy pages: privacy, cookie and terms pages in every language the site runs in, kept in step with what the site actually collects.
Signs a WordPress site has been broken into
Most owners find out late, from a customer or from Google. These are the usual signs, roughly in the order people notice them.
- Visitors from Google land somewhere else. You type the address and everything looks normal. Someone clicking through from a search is sent to a pharmacy or a betting page.
- Google shows a warning. A red warning page before the site opens, or a line under your result saying the site may be hacked.
- Pages you never wrote. Hundreds of pages listed under your address, in another language or selling something you do not sell.
- An administrator nobody recognises. A new user with full rights that no one on your team created.
- Files that should not be there. Oddly named files among your uploads, or a plugin nobody remembers installing.
- Your host complains. The account is suspended, or you are told spam is being sent from your server.
One sign is enough to act on. Before anything is deleted, remember that the files and the logs are the evidence that shows how they got in.
What a proper clean-up involves
- Contain. Close the way in and stop the damage spreading, without destroying the evidence.
- Trace. Read the server logs to find when and how they got in. Without this step, everything after it is guesswork.
- Remove. Hidden backdoors, rogue administrator accounts, and injected code in the files and in the database.
- Rotate. Every password, key and secret the attackers could have read.
- Harden. Close the hole they used and the similar ones beside it, and put updates on a schedule.
- Watch. Automatic daily checks that the core files are unchanged, that no new administrator has appeared, and that no known backdoor pattern is on the disk.
- Report. A written account of what happened, what was taken out, and what you should do next.
Why the tracing matters. On one shop we look after, the attackers came back a few days after the clean-up and tried the same route again. It failed, because the way in had been found and closed, not only the bad files removed.
Cookie consent that holds
A cookie banner is only a picture unless the site behind it obeys. On many sites the tracking scripts have already loaded before the visitor chooses anything, whatever the banner says.
We test it the way a careful outsider would: open the site fresh, refuse everything, and record every request the browser makes. The setup holds when nothing goes to a third party before the visitor agrees, and when Google Consent Mode v2 passes that choice on correctly to the tags that load afterwards.
Questions owners ask
Is restoring a backup enough?
Rarely. Break-ins tend to be noticed weeks after they happen, so the backup usually holds the same hole and often the backdoor too. A restore without the trace puts you back to the day before it happens again.
Will a security plugin protect me?
It helps, and we use them. A plugin cannot fix a weak password, an abandoned plugin with a known hole, or a server that lets anyone list your users. Those are the usual ways in.
Can you promise it will not happen again?
Nobody honestly can. What we can do is make it much harder, and make sure that if something changes on the site, a check notices within a day instead of a customer noticing within a month.
Why do my shop's emails land in spam?
Usually because the mail does not prove where it comes from. We check the three records that do that, SPF, DKIM and DMARC, and how the shop actually sends. On one shop, order emails were going out unsigned and under a sender address the server was not allowed to use. Fixing those two things got them back into inboxes.
What access do you need?
For the free audit, none: we look only at what any visitor can see. For a clean-up we need the hosting or server login, and you change it again when we have finished.
Do you only work on WordPress?
WordPress and WooCommerce are where most of our clean-up work has been. Server hardening, mail and consent work apply to any site. For security inside custom software, see the Applications page.
Worried but not sure? The free audit covers what an outsider can see of your site's protection, without touching anything.
Start with a chart of your site.
Send the address. Our team audits the real pages and sends back what we find, in plain English, before any talk of money.