Skip to content

Security and WAF ​

Use the Security & WAF page to scan your account for malware, handle infected files, and set the Web Application Firewall (WAF) for each website.

Security summary ​

The top of the page has these cards:

CardShows
ScannerThe scanner in use, e.g. ClamAV. Available when scanning is ready, Unavailable when the server has no scanner yet.
Open findingsNumber of findings to review. "No threats found" when clean.
Last scanTime and result of the last scan.
WAFNumber of protected websites, e.g. "Blocking on 2 of 3 websites". Status Active, Partial, or Off.

Malware scanning ​

Automatic scanning ​

Your account is scanned in two ways:

  • Scheduled: your whole home folder is scanned automatically every day (Scan schedule: Daily (automatic)).
  • Real-time: when the server has it turned on, every file is scanned as soon as it has been written, including files uploaded through website forms, FTP, or SFTP. Infected files are quarantined right away.

The quarantine folder and the Trash are not scanned.

Scanning now ​

  1. Click Scan now.
  2. The Malware protection panel shows the progress: Waiting in queue…, Preparing scan…, then Scanning files with the number of files scanned so far.
  3. Wait until it finishes.

Scans run in a server queue, one account at a time. Accounts with many files take longer.

Scan results ​

The Malware protection panel shows:

  • "No open threats" when the account is clean;
  • the number of open threats and the advice "Review the findings below and quarantine or delete the infected files." when there are findings.

If the server cannot be reached, the panel shows the last known report.

When there are open malware findings, you also get an email at your contact email if malware notifications are on. See Settings.

Handling malware findings ​

The Malware history tab, below the panels, lists all findings. Filter with Search findings… and the status filter.

StatusMeaning
OpenThe file was detected and is still in its original location.
QuarantinedThe file was moved to quarantine and cannot run.
ResolvedThe file is no longer detected by a later scan.
DeletedThe file was deleted permanently.
File goneThe file no longer exists.
IgnoredMarked as a false positive and no longer reported.
RestoredThe file was restored from quarantine and is ignored by later scans.

Actions on a finding, from the ⋯ menu on its row:

ActionResult
QuarantineMoves the file to ~/.moorcp-quarantine/, outside the document root, without read permission.
Mark as false positiveLeaves the file in place and stops reporting it.
Delete fileDeletes the file permanently from its original location.
Restore filePuts a quarantined file back in its original location. The file is ignored by later scans.
Delete permanentlyDeletes the file from quarantine.
Report againRemoves the false positive mark.
  1. Quarantine first, do not delete right away. Quarantine is safe and can be undone.
  2. Check that the website still works normally.
  3. Find the source of the infection: outdated plugins, themes, or applications. Update them with the WordPress Manager.
  4. Change your panel, FTP, database, and application admin passwords.
  5. Once you are sure, use Delete permanently on the quarantined files.

DANGER

Delete file and Delete permanently cannot be undone. The file can only be recovered from a backup.

False positives

Use Mark as false positive or Restore file only when you are sure the file is safe, e.g. a file from an official plugin you know. If in doubt, ask your hosting provider.

Web Application Firewall (WAF) ​

The Web Application Firewall (WAF) panel uses ModSecurity with the OWASP CRS. The WAF blocks common attacks such as SQL injection and cross-site scripting (XSS) before they reach your website.

Each website shows its effective mode and the number of blocked requests, e.g. "12 blocked requests".

WAF modes ​

ModeMeaning
RecommendedFollows your hosting provider's default setting.
BlockMalicious requests are blocked.
Detect onlyMalicious requests are only logged, not blocked.
OffThe WAF does not inspect this website.

Changing the WAF mode ​

  1. On the website row, choose a mode in Firewall mode for myshop.com.
  2. Wait for the "Firewall setting saved" notification.

If it reads "Your provider manages the firewall settings.", only your hosting provider can change the WAF mode.

WARNING

Turn off the WAF only when it blocks something legitimate, e.g. an admin form of a specific plugin. It is usually better to ignore only the rule that blocks it (see Ignoring a rule on one website) or to allow your own IP (see WAF allowed IPs).

WAF history ​

The WAF history tab, next to Malware history, lists requests to all your websites that the WAF blocked or logged, newest first.

ColumnShows
TimeWhen the request came in.
DomainThe website that received it.
IPThe visitor's IP address, with the country flag and code (hover to see the country name). The label whitelisted appears when the IP is in your WAF allowlist. Country data is only available when the server has a GeoIP database.
RequestMethod and URL, e.g. POST /wp-login.php.
ReasonThe first WAF rule that matched, plus the number of other rules.
ResultBlocked or Logged (detect only).

Use Search domain, IP, URL, rule… and the Result filter (All, Blocked, Logged only) to narrow the list. Click a row, or View details in its ⋯ menu, to see every rule that matched.

The ⋯ menu of a row also has:

  • Whitelist IP: adds the IP to your WAF allowed IPs after you confirm. It reads IP already whitelisted when the IP is already covered.
  • Ignore rule on this website: see the next section.

Ignoring a rule on one website ​

When a WAF rule blocks a legitimate request, e.g. saving a page in a page builder, you can stop that rule on one website only, without turning off the whole WAF.

  1. In WAF history, open the ⋯ menu of the blocked request and choose Ignore rule on this website. In the event details you can also click Ignore on this website next to one rule.
  2. Check the list of rules and confirm.

The WAF stops checking those rules on that website only. The ignored rules are shown as Ignored rules: under the website in the Web Application Firewall (WAF) panel. Click × next to a rule number to check it again.

  • Only OWASP CRS detection rules can be ignored. Rules that score or block requests, and MoorCP's own rules, cannot be ignored, because that would turn off the whole WAF.
  • This option is only available when your hosting provider lets you manage the WAF settings.

WAF allowed IPs ​

The WAF allowed IPs panel lists IP addresses or ranges whose requests skip the WAF on your websites only, e.g. your office IP that is often blocked while you manage your site.

  1. Enter one IP address or range per line, e.g. 203.0.113.7 or 203.0.113.0/24.
  2. Click Save.

The list applies only to your own websites. It does not unblock IPs that the server firewall blocks, and it does not affect other accounts. You can add up to 50 entries.

WARNING

Allowed IPs are not protected against attacks. Keep the list short and remove IPs you no longer use.

Other server protection ​

Besides the WAF and the malware scanner, the server also blocks attacking IPs automatically, e.g. brute-force logins on SSH, email, wp-login.php, and the panel. Repeated wrong client panel sign-ins are also locked temporarily. See Signing in to the client panel.

2FA and sign-in history ​

  • 2FA is set in Settings.
  • Sign-in history is recorded in Recent activity on the Overview page: panel sign-ins, webmail sign-ins, and administrator sessions. The list of active sessions is in Settings.

See also ​

MoorCP Shared, a shared hosting panel for server fleets.