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
Ignore a directory
-
- Junior Member
- Posts: 21
- Joined: 21 Dec 2010, 09:24
Re: Ignore a directory
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/
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/
-
- Junior Member
- Posts: 21
- Joined: 21 Dec 2010, 09:24
Re: Ignore a directory
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
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
Hi,
You should be able to edit
Then add:-
`hdir` is relative to the users home folder.
Then restart cxs:-
You should be able to edit
Code: Select all
/etc/cxs/cxs.ignore
Code: Select all
hdir:/public_html/wp-content/cache/supercache
Then restart cxs:-
Code: Select all
service cxswatch restart
-
- Junior Member
- Posts: 1
- Joined: 30 Oct 2022, 09:46
Re: Ignore a directory
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
pfile:/home\/.*\/error_log$
pfile:/home\/.*\/*.log$
hdir:/public_html/wp-content/wflogs