How To Prevent cxs From Scanning Cache Files

First, we need to know what is cxs scan.

ConfigServer eXploit Scanner (cxs) is a server malware, exploit and antivirus scanner that performs active scanning of files as they are uploaded to the server. Initial installation with recommended configuration options is included with the license.

  • For dedicated or virtual servers – protects all domains, IP addresses, and users on the server
  • Active (real-time), manual, and scheduled scanning can be performed
  • Scans for suspected exploits, viruses, suspicious resources
  • Quarantine or delete suspicious files


To prevent cxs from scanning cache files we need to edit the cxs.ignore file located at /etc/cxs and follow the steps as given below

Open the /etc/cxs/cxs.ignore file with your favorite editor tool

vi /etc/cxs/cxs.ignore

For pdir you could use the following to match a directory /wp-content/cache/ located anywhere in any user’s account:


Where pdir is to regex of directories to ignore

For hdir, you must use a path relative to the users’ home directory. So if the directory you want to ignore is /home/username/public_html/wp-content/cache/, then you should use this line:


where hdir is to ignore the directory relative to a user’s homedir

If you just want to ignore a specific user’s wp-cache, you should use the following instead of hdir:


If you ever need any help with any of these alerts, you can always contact us for our server management service like the below ones

cPanel Server Management
Plesk Server Management
Per Hour Support 

Facebook Comments