Title: Log-folder
Last modified: April 5, 2023

---

# Log-folder

 *  Resolved [AleksCee](https://wordpress.org/support/users/alekscee/)
 * (@alekscee)
 * [3 years ago](https://wordpress.org/support/topic/log-folder/)
 * Hello, I just figure out that the files in wp-content/plugins/crowdsec/logs/ 
   are accessible directly. Should there not better be protected by htaccess or 
   other methods?
 * thanks, Alex

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [CrowdSec – lightweight and collaborative security engine](https://wordpress.org/support/users/crowdsec/)
 * (@crowdsec)
 * [3 years ago](https://wordpress.org/support/topic/log-folder/#post-16628118)
 * Hello [@alekscee](https://wordpress.org/support/users/alekscee/) ,
   you are right:
   server-side rules should be added to prevent access to these files. If this is
   not possible, the logging of files can be completely disabled using the “Disable
   prod log” parameter.As we can not do this in the plugin sources (we don’t know
   if user works with Apache, Nginx or anything else), I think we should at least
   add this notice in the advanced settings and add some configuration examples 
   in the documentation.Will do so asap.Thank you for pointing that out.[UPDATE]:
   For those using Apache, we will add a .htaccess file in the .logs folder with
   some “deny” directives.
    -  This reply was modified 3 years ago by [CrowdSec - lightweight and collaborative security engine](https://wordpress.org/support/users/crowdsec/).
 *  Plugin Author [CrowdSec – lightweight and collaborative security engine](https://wordpress.org/support/users/crowdsec/)
 * (@crowdsec)
 * [3 years ago](https://wordpress.org/support/topic/log-folder/#post-16632172)
 * Hi [@alekscee](https://wordpress.org/support/users/alekscee/),
   we just published
   a new 2.3.0 release of the plugin.This release contains necessary .htacess and
   an updated documentation for Nginx users.I’m closing this issue. Happy to continue
   the conversation here or elsewhere.Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Log-folder’ is closed to new replies.

 * ![](https://ps.w.org/crowdsec/assets/icon-256x256.png?rev=2456257)
 * [CrowdSec](https://wordpress.org/plugins/crowdsec/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/crowdsec/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/crowdsec/)
 * [Active Topics](https://wordpress.org/support/plugin/crowdsec/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/crowdsec/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/crowdsec/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [CrowdSec – lightweight and collaborative security engine](https://wordpress.org/support/users/crowdsec/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/log-folder/#post-16632172)
 * Status: resolved