happy halloween

Husef Artigas PORTFOLIO
Server Environment and security

How I Keep Client Sites Secure

Modular Architecture • Staged Deployment • Server Security & Hardening

Behind the Build

While I was doing a rutine web audit, I noticed that one of our client’s new website got hacked, and it was barely a month old, resulting in spam SEO links injected into her header.

As I open the dashboard and dug in, I saw the mess. Someone had slipped in, created several secret admin accounts and installed a sneaky WP File Manager plugin. I learned that this little plugin acts like a real cPanel, granting admin level access. This allow them view, edit, upload, download, delete, and organize my client website files directly from the WordPress dashboard without needing her hosting password. The access logs showed the exact day and time they walked in.

Strategic Direction

My response: Here is how I cleaned it up and locked the door behind them.

  1. Wiped the plugins and theme: Deleted all plugin and theme files directly from the server so no hidden malicious code could linger.
  2. Database ghost admins cleanup: Dug straight into the database to find and remove the hidden backdoor accounts they left behind.
  3. Rotated credentials to changed the locks and logged them out: Reset the database password and generated fresh security keys from the WordPress API, instantly booting every active user and session off the site.
  4. Hardened wp-config:
    1. Disabled rogue uploads: Added DISALLOW_FILE_MODS. To locked down the system so no one can install new themes or plugins from the dashboard anymore. Any real updates happen safely behind the scenes at the server level so its only done by me.
    2. Removed the built-in code editor: Defined DISALLOW_FILE_EDITS. Turned off the dashboard tools that let people edit website files on the fly, closing off the easiest way for hackers to inject bad code. that means, no more WP File Manager plugin.

  5. Reinstalled & rebuilt with verified parts: Reinstalled fresh, clean copies of her original theme and vetted plugins straight from the source.
  6. Reconnected data without data loss: Because the core database was preserved and cleaned, every reinstalled plugin and theme instantly reconnected to the existing configuration, settings, and content without missing a beat.

With the malware wiped, backdoors shut, and files locked down, I finished what I started inside .htaccess: configuring security headers to enforce secure connections and protect visitor data by instructing browsers to reject unencrypted HTTP and keep all traffic locked, along with blocking XML-RPC to kill off rapid-fire password attacks.

The site went back online clean, running smooth, and shielded so that trick can’t be pulled on her again.

Q&A

© 2026 husef.net | Full-Stack Product Designer | Website Designed by Husef Artigas

Scroll to Top