Powered by WHUK®

Announcement

Collapse
No announcement yet.

Directory watch and csf.fignore

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Directory watch and csf.fignore

    Hello everyone.
    I recently started to use Directory watch so that i could track changes on an account that had security issues.

    This is a great tool but can lead to a lot of emails with big reports as i found out

    the problem i am having with the site i am watching is that i am watching the public_html folder so i get a warning if a new file is placed there or if a file is edited in any way.

    for the most part on many sites we host this is ok as in general not much changes, but..

    the site i am watching now uses a cache folder also placed in the public_html folder so every time someone browses the site and simply looks at a page the cache folder is updated

    So i tried to configure the csf.fignore file so that lfd would monitor the public_html folder but exclude the cache folder.... but i cant get it to work

    the example shows this:

    /tmp/\.horde/.*

    i have tried this:

    /home/accountname/public_html/cache/
    /home/accountname/public_html/cache/*
    /home/accountname/public_html/cache/.*

    i want to exclude the folder cache from the directory watch including all files and sub folders inside, can anyone supply the correct format for me please?

    Kind Regards
    Carl

  • #2
    Hi Carl,

    I have configured csf.fignore to ignore the directories and files under the cache directory on your dedicated server.

    Do post here if you still receive such notifications.

    _______________
    Cristiano
    webhosting.uk.com
    Cristiano
    webhosting.uk.com

    Comment


    • #3
      Thanks for that

      I originally had these paths set:
      /home/someuser/public_html/cache/roktwittie-friends\.db
      /home/someuser/public_html/cache/roktwittie-status\.db

      am i right in thinking if i wanted to exclude only the above files then the format would be different ?

      I will also include the changes you have made as i looked lots of places to find out this...and failed

      /home/\accountname/\public_html/\cache\*

      so the above code placed in the csf.fignore area will exclude all the files and folders in the cache folder, thats great..

      how would i format a file to be ignored?

      /home/someuser/public_html/tmp/somefile.txt

      Kind Regards
      Carl

      Comment


      • #4
        Hi,

        To exclude a specific file, define the file as below in csf.fignore.

        Code:
        /home/\someuser/\public_html/\tmp/\somefile\.txt
        Cristiano
        webhosting.uk.com

        Comment

        Working...
        X