Page 1 of 1

Ignore a directory

Posted: 05 Apr 2016, 15:04
by tonyp86
Hello,

CXS is reporting some false positives on some directory names and cached files. These are re-created every 15minutes when the cache is and I'd like to ignore all the files and directories within certain folders of every users directory. I suspect I will need a regex way of doing this, but not sure how this works with CXS as I can't find any good examples.

Many thanks
Tony

Re: Ignore a directory

Posted: 22 Apr 2016, 11:45
by craigedmonds
I am getting same issue with 1 emails every few seconds literally.

How to I exclude scanning of this folder...I just need to know the SSh command for this.

/home/shantiso/public_html/wp-content/cache/supercache/

Re: Ignore a directory

Posted: 22 Apr 2016, 11:50
by craigedmonds
This actually driving me apeshit.

Is the command like this?

cxs ignore dir:/home/shantiso/public_html/wp-content/cache/supercache/

The documentation associated with cxs is a bit cryptic

Re: Ignore a directory

Posted: 08 Jun 2016, 11:31
by nexus-sy
Hi,

You should be able to edit

Code: Select all

/etc/cxs/cxs.ignore
Then add:-

Code: Select all

hdir:/public_html/wp-content/cache/supercache
`hdir` is relative to the users home folder.

Then restart cxs:-

Code: Select all

service cxswatch restart

Re: Ignore a directory

Posted: 30 Oct 2022, 09:58
by artificialart
This is what im using to exclude logs, error logs and Wordfence logs

pfile:/home\/.*\/error_log$
pfile:/home\/.*\/*.log$
hdir:/public_html/wp-content/wflogs