Zac McDonaldOpen to new projects
Get a quote

My site is slow and loading spammy popups

A slow site that shows spam popups or redirects visitors is almost always infected, or running a bad plugin or ad script. Check the site the way a visitor sees it, remove what does not belong, then change every password and close how it got in.

The problem

Your WordPress site got slow. Visitors see popups, fake “you won” boxes, ads you never placed, or get sent to another site. You may not see any of it yourself, because many infections hide from logged-in admins and only show to people arriving from Google or on phones.

How to fix it

  1. Look at the site the way a visitor does. Open it on your phone, logged out, by searching for your business on Google and clicking through. Also check Search Console under Security issues.
  2. Take a full backup first, files and database, and keep it off the server. You want a copy of the evidence.
  3. Go to Plugins. Deactivate anything you did not install, anything with no reason to be there, and anything added or updated just before the trouble started. Reload the site as a visitor after each one.
  4. Check the theme. Look in the theme’s header and footer files and any “header and footer scripts” setting for code you did not add. Switch to a default theme to see if the popups stop.
  5. Check ad and tracking scripts. A tag manager, an ad network snippet or an old widget can load someone else’s code. Remove every script you cannot explain.
  6. Check Users. Delete administrator accounts you do not recognize.
  7. Reinstall WordPress core and every plugin from a fresh copy. For plugins on WordPress.org, the checksums command compares against the official files:
    wp core verify-checksums
    wp plugin verify-checksums --all
  8. Look in the uploads folder for any file ending in .php. There should be none.
  9. Change every password: WordPress, hosting, SFTP, database. Update everything and delete plugins and themes you do not use.

If files were modified or hidden accounts were there, read the first hour after a hack and hacked again after a cleanup.

When to stop

Stop when the popups come back after you remove things, when you find odd files or accounts, or when your host has suspended the site. A partial cleanup usually leaves a backdoor.

Or I can do it for you

You do not have to clean this up yourself. I do this for my clients under a monthly maintenance plan, with updates, scans and backups so it is caught early. If it is already happening, it is a one-off cleanup I quote, or an emergency request if the site is down. See hacked site recovery and WordPress security, or get a quote.

Get the hacked-site first-hour checklist

This adds you to my mailing list. Every email has a link to leave it. Privacy policy