PUM.Optional / Malware.AI.XXXX

Malwarebytes Keeps Blocking My Site: 3 Fixes That Work

Your site isn't infected. Malwarebytes is flagging a plugin, a host rule, or a false positive. Here's how to check all three.

Cause #1: A plugin or theme injects a suspicious script

The most common reason Malwarebytes blocks your site is that something on the server — usually a WordPress plugin or a pirated theme — is injecting a script that looks like a browser hijacker. Malwarebytes doesn’t care if you intended it. It sees a redirect to a domain it doesn’t trust, and it slams the door.

I’ve seen this more times than I can count. A client installs a “free” premium theme from a random blog, and two weeks later Malwarebytes flags their own homepage. The theme has a hidden eval() call that fetches ad code from a Russian server. You don’t see it in the browser, but Malwarebytes does.

How to fix it

  1. Log into your CMS (WordPress, Joomla, whatever).
  2. Temporarily switch to a default theme (like Twenty Twenty-Four).
  3. If the block disappears, your theme is the culprit. Delete it, and re-download from the official repo or the developer’s site.
  4. If that doesn’t stop it, deactivate all plugins. Then reactivate them one by one, checking after each activation.

Once you find the bad plugin, delete it — don’t just deactivate it. Deactivated plugins still sit on the server and can still be called by a cron job or a direct URL. Remove it completely.

Also, run a quick scan of your functions.php for base64_decode or eval. Those are red flags.

grep -R "eval(" /var/www/html/wp-content/themes/

Cause #2: Your IP or domain is on Malwarebytes’ blocklist (false positive)

Sometimes your site is clean, but Malwarebytes still blocks it. That happens when your hosting provider’s IP range got flagged because another site on the same server was hosting malware. Shared hosting is the usual offender.

Or your domain might be an old domain that previously pointed to a phishing page. Malwarebytes keeps a history. It doesn’t forgive and forget easily.

How to fix it

  1. Check your IP reputation using something like MXToolbox. Look for your IP on any of the common blacklists, especially Spamhaus ZEN or Barracuda.
  2. If your IP is listed, contact your host. Ask them to unblock or move you to a clean IP. Most reputable hosts will do it within a day.
  3. If your domain is flagged, go to Malwarebytes’ false positive report forum. Post your URL with a brief explanation. Include the exact error code you saw.

Don’t expect an instant response. It can take 24–72 hours. Meanwhile, you can bypass the block on your own machine by adding an exclusion (see the table at the end).

Cause #3: Your own local hosts file or DNS has a leftover rule

This one is less common but still happens. If you’ve ever installed a security tool that modified your hosts file (like a parental control or an ad blocker), there might be a stale entry pointing your domain to 127.0.0.1 or some other loopback address. Malwarebytes sees that as a potential hijack.

I’ve also seen cases where a user manually edited the hosts file years ago to block a site, then forgot about it. Now that site is your new project, and Malwarebytes goes ballistic every time you visit it.

How to fix it

Open your hosts file. On Windows, it’s C:\Windows\System32\drivers\etc\hosts. On macOS/Linux, it’s /etc/hosts.

sudo nano /etc/hosts   # Linux/Mac
notepad C:\Windows\System32\drivers\etc\hosts   # Windows

Look for any line that contains your domain and doesn’t start with #. If you find one, delete it, save, and flush your DNS.

ipconfig /flushdns    # Windows
sudo killall -HUP mDNSResponder   # Mac

Also, check your router’s DNS settings. Some routers let you set custom DNS entries. If you added one for testing, remove it.

Quick reference summary

CauseSymptomFixTime to fix
Plugin/theme injectionBlock happens only on your siteSwitch theme, deactivate plugins, delete bad code1–2 hours
False positiveBlock happens on any site on same serverCheck IP blacklist, report to Malwarebytes, get a new IP24–72 hours
Hosts file/DNS ruleBlock only on your local machineEdit hosts file, flush DNS15 minutes

One last thing: if you’re in a hurry and just need to test your site, add an exclusion in Malwarebytes for that IP or domain. Right-click the tray icon → Exclusions → Add. But don’t leave it there forever. Fix the root cause, then remove the exclusion.

Related Errors in Cybersecurity & Malware
0XC000028A STATUS_ENCRYPTION_FAILED 0xC000028A Fix — File Encryption Failed SIEM alerts not correlating? Fix it in 3 steps 0XC0262503 ERROR_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS (0XC0262503) – fix for HDMI/DP DRM failures 0X80094814 CERTSRV_E_CERT_TYPE_OVERLAP (0x80094814) Fix Guide

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.