Title: Securing your private files
Last modified: August 30, 2016

---

# Securing your private files

 *  [murrayben](https://wordpress.org/support/users/murrayben/)
 * (@murrayben)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/securing-your-private-files/)
 * I am not a coder but can make some changes to the code (former COBOL programmer).
   Can someone please help me with how I would change the file path as suggested
   below? Do you need to create your own path (i.e. /ben/secure/whatever/)? Thanks.
 * **By changing that folder location**
 * This method only works with WP Customer Area version 5.0.0 and above. However,
   it has the advantage of working with any kind of server.
 * You will change the directory where files are stored using a filter in your theme’s
   functions.php file:
 * function cuar_change_private_directory($original_dir) {
    return ‘/path/to/my/
   own/directory’; } add_filter(‘cuar/core/ownership/base-private-storage-directory’,‘
   cuar_change_private_directory’);
 * [https://wordpress.org/plugins/customer-area/](https://wordpress.org/plugins/customer-area/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Vincent Mimoun-Prat](https://wordpress.org/support/users/vprat/)
 * (@vprat)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/securing-your-private-files/#post-6419099)
 * Hi,
 * First you have to create the folder on your server. Take note of the full path
   to that folder.
 * Then copy/paste that code snippet in the functions.php file of your theme. And
   replace the dummy path with your own path.

Viewing 1 replies (of 1 total)

The topic ‘Securing your private files’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Vincent Mimoun-Prat](https://wordpress.org/support/users/vprat/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/securing-your-private-files/#post-6419099)
 * Status: not resolved