# Hide File/Folders

**URL:** <https://help.nextcloud.com/t/hide-file-folders/7145>\
**Category:** ℹ️ Support\
**Created:** [January 5, 2017, 2:47pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145 "2017-01-05T14:47:37Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![explorer2k](https://help.nextcloud.com/letter_avatar/explorer2k/32/5_5575768a8748004e209b776fc1b2916d.png) [@explorer2k](https://help.nextcloud.com/u/explorer2k)\
**Post date:** [January 5, 2017, 2:47pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145/1 "2017-01-05T14:47:37Z")

</div>

Is there a way to hide files and or folders?  
We’d ideally do this based on tags such as “internal”.  
I have found references to a .hideme.txt file but it only seems to hide itself.

Thank you!

---

<div class="post-metadata">

**Author:** ![Sanook](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sanook/32/13847_2.png) [@Sanook](https://help.nextcloud.com/u/Sanook)\
**Post date:** [January 5, 2017, 3:01pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145/2 "2017-01-05T15:01:16Z")

</div>

What about the [File Access Control](https://docs.nextcloud.com/server/11/admin_manual/configuration_files/files_access_control.html)?

---

<div class="post-metadata">

**Author:** ![explorer2k](https://help.nextcloud.com/letter_avatar/explorer2k/32/5_5575768a8748004e209b776fc1b2916d.png) [@explorer2k](https://help.nextcloud.com/u/explorer2k)\
**Post date:** [January 5, 2017, 3:27pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145/3 "2017-01-05T15:27:46Z")

</div>

We’re actually using that to block access, but the files/folders still show up.  
The user just gets an error when trying to access them.

We’d like to be able to hide them.

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/5_5575768a8748004e209b776fc1b2916d.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [January 5, 2017, 10:41pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145/4 "2017-01-05T22:41:15Z")

</div>

Not directly. You can mount for each user (with individual access code) an external storage and handle all the permissions via the external storage.

---

<div class="post-metadata">

**Author:** ![explorer2k](https://help.nextcloud.com/letter_avatar/explorer2k/32/5_5575768a8748004e209b776fc1b2916d.png) [@explorer2k](https://help.nextcloud.com/u/explorer2k)\
**Post date:** [January 6, 2017, 6:01pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145/5 "2017-01-06T18:01:27Z")

</div>

Bummer.

Using this as a company (2 user right now) Dropbox with the same files needing different security.

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/5_5575768a8748004e209b776fc1b2916d.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [January 6, 2017, 9:55pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145/6 "2017-01-06T21:55:43Z")

</div>

There have been similar feature requests ([https://github.com/owncloud/core/issues/7272](https://github.com/owncloud/core/issues/7272), [https://github.com/owncloud/core/issues/4579](https://github.com/owncloud/core/issues/4579)), feel free to push them to the nextcloud-repo as well. There needs to be a developer who likes the idea and finally implements it or enough enterprise users who push Nextcloud to do it. For single features, you can support feature requests via bountysource.

---

<div class="post-metadata">

**Author:** ![sevocomm](https://help.nextcloud.com/user_avatar/help.nextcloud.com/sevocomm/32/3796_2.png) [@sevocomm](https://help.nextcloud.com/u/sevocomm)\
**Post date:** [April 22, 2017, 9:40am UTC](https://help.nextcloud.com/t/hide-file-folders/7145/7 "2017-04-22T09:40:55Z")

</div>

It would be nice when the “File Access Control” will actually hide files and folders when tagged in a specific rule and not only make them unreadable or writable.

---

<div class="post-metadata">

**Author:** ![Mark\_Page](https://help.nextcloud.com/letter_avatar/mark_page/32/5_5575768a8748004e209b776fc1b2916d.png) [@Mark\_Page](https://help.nextcloud.com/u/Mark_Page)\
**Post date:** [November 24, 2017, 1:57pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145/8 "2017-11-24T13:57:58Z")

</div>

It’s somewhat of a hack but you can do something along those lines using the Custom CSS app and adding CSS selectors to hide rows (TR) based on partial data-type or filename matches. I use this to hide URL and LNK files on mounted SMB shares:

```
tr[data-file*=".url"] {
  display: none !important;
}

tr[data-file*=".lnk"] {
  display: none !important;
}

```

Mark

---

<div class="post-metadata">

**Author:** ![nti](https://help.nextcloud.com/letter_avatar/nti/32/5_5575768a8748004e209b776fc1b2916d.png) [@nti](https://help.nextcloud.com/u/nti)\
**Post date:** [October 23, 2018, 11:29pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145/9 "2018-10-23T23:29:21Z")

</div>

name a folder or a file with a dot at the beginning.  
(Maybe you have to configure your web server to hide it. Nginx:

> ```
> location ~ /\. {
> deny all;
> access_log off;
> log_not_found off;
> }
> 
> ```

)

---

<div class="post-metadata">

**Author:** ![dsmryder](https://help.nextcloud.com/user_avatar/help.nextcloud.com/dsmryder/32/5795_2.png) [@dsmryder](https://help.nextcloud.com/u/dsmryder)\
**Post date:** [April 24, 2020, 8:44pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145/10 "2020-04-24T20:44:29Z")

</div>

I know this is an old topic, but I think my question is relate.

I have my server set up and in my music folder is the band .38 Special.  
Since it starts with the ‘.’ it is taken as a hidden folder. I can’t change the name as it’s owned by www-data. Is there a way to rename the folder or get it ignored by the system as hidden?

---

<div class="post-metadata">

**Author:** ![timewind](https://help.nextcloud.com/user_avatar/help.nextcloud.com/timewind/32/12580_2.png) [@timewind](https://help.nextcloud.com/u/timewind)\
**Post date:** [December 16, 2023, 11:52pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145/11 "2023-12-16T23:52:36Z")

</div>

Hi

Reviving an old subject as I cannot find any new solutions by internet search. I tried to use Marks Idea with Custom CSS to hide “.ini”-files" like:

tr[data-file\*=“.ini”] {  
display: none !important;  
}

but this does not seem to work. I am using Nextcloud 28 now. Any new ideas of how to hide files by name or extension?

Best Regards Stefan

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [December 17, 2023, 8:01am UTC](https://help.nextcloud.com/t/hide-file-folders/7145/12 "2023-12-17T08:01:09Z")

</div>

> [@timewind](#):
>
> but this does not seem to work. I am using Nextcloud 28 now. Any new ideas of how to hide files by name or extension?

Normally, colloborative work works in such a way that files are shared on the basis of folders, for example. File extensions do not play a role here.

Can you explain what exactly you want to achieve? Do you want to prohibit access to files that others shouldn’t or shouldn’t have been allowed to upload in the first place? You will never be able to prevent this 100%.

---

<div class="post-metadata">

**Author:** ![timewind](https://help.nextcloud.com/user_avatar/help.nextcloud.com/timewind/32/12580_2.png) [@timewind](https://help.nextcloud.com/u/timewind)\
**Post date:** [December 17, 2023, 9:12am UTC](https://help.nextcloud.com/t/hide-file-folders/7145/13 "2023-12-17T09:12:00Z")

</div>

Well not all are using NC for colloborative work and are primarily using it for the syncronization features. I think it would be a good idea to be able to hide listing of certain filename and extensions (.ini , .lnk) and so on.

This is (for me ) a, mostly, “cosmetic” feature but others may want to use it for security reasons too.

Best regards  
Stefan Sundberg

---

<div class="post-metadata">

**Author:** ![devnull](https://help.nextcloud.com/user_avatar/help.nextcloud.com/devnull/32/27793_2.png) [@devnull](https://help.nextcloud.com/u/devnull)\
**Post date:** [December 20, 2023, 9:05am UTC](https://help.nextcloud.com/t/hide-file-folders/7145/14 "2023-12-20T09:05:12Z")

</div>

Do you only want to hide or disallow? For disallow look [documentation Files access control](https://docs.nextcloud.com/server/latest/admin_manual/file_workflows/access_control.html), [blog Access Control](https://nextcloud.com/blog/access-control-lists/) and [app Files access control](https://apps.nextcloud.com/apps/files_accesscontrol).

---

<div class="post-metadata">

**Author:** ![timewind](https://help.nextcloud.com/user_avatar/help.nextcloud.com/timewind/32/12580_2.png) [@timewind](https://help.nextcloud.com/u/timewind)\
**Post date:** [December 20, 2023, 10:47pm UTC](https://help.nextcloud.com/t/hide-file-folders/7145/15 "2023-12-20T22:47:53Z")

</div>

Hi I just want to hide certain file-names or extensions (desktop.ini, \*.lnk and so on (in the nextcloud GUI).

Stefan

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [January 16, 2025, 9:24am UTC](https://help.nextcloud.com/t/hide-file-folders/7145/16 "2025-01-16T09:24:59Z")

</div>


