# Server-side desktop sync prevention for multiple users

**URL:** <https://help.nextcloud.com/t/server-side-desktop-sync-prevention-for-multiple-users/7486>\
**Category:** ℹ️ Support\
**Tags:** feature\
**Created:** [January 13, 2017, 5:23am UTC](https://help.nextcloud.com/t/server-side-desktop-sync-prevention-for-multiple-users/7486 "2017-01-13T05:23:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mchrmk](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mchrmk/32/2465_2.png) [@mchrmk](https://help.nextcloud.com/u/mchrmk)\
**Post date:** [January 13, 2017, 5:23am UTC](https://help.nextcloud.com/t/server-side-desktop-sync-prevention-for-multiple-users/7486/1 "2017-01-13T05:23:14Z")

</div>

Dear NextCloud Community,

Is there any way to exclude a specific folder from being synced by the desktop client to the local hard drive for all users? I only know that clients can do that individually in their desktop client settings.

The use case is the following:  
We are successfully using NextCloud for project work with approx. 300 users. Currently we are typing to setup a photo share for all users. Authentication should be required to access the photos share. However, as the photo share will have many hundreds of GBs in size, we’d like to prevent the “Photoshare” folder being synced to individual users. Instead, it should only be accessible through the web interface of NextCloud.

Is there any nicer way than telling users to exclude this folder from their desktop client sync?  
I appreciate your support.

Cheers,  
Michael

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_449c533f586939b6e5f246632a46421f.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [January 13, 2017, 8:18am UTC](https://help.nextcloud.com/t/server-side-desktop-sync-prevention-for-multiple-users/7486/2 "2017-01-13T08:18:29Z")

</div>

You could use file access control and set a filter with the user agent string:  
[https://docs.nextcloud.com/server/11/admin\_manual/configuration\_files/files\_access\_control.html](https://docs.nextcloud.com/server/11/admin_manual/configuration_files/files_access_control.html)

---

<div class="post-metadata">

**Author:** ![mchrmk](https://help.nextcloud.com/user_avatar/help.nextcloud.com/mchrmk/32/2465_2.png) [@mchrmk](https://help.nextcloud.com/u/mchrmk)\
**Post date:** [January 16, 2017, 10:41am UTC](https://help.nextcloud.com/t/server-side-desktop-sync-prevention-for-multiple-users/7486/3 "2017-01-16T10:41:53Z")

</div>

Thank you for the hint! It works with some limitations:

- The Desktop Clients are still downloading empty folders without the files. The files are not synced because the file access control denies access.
- The Desktop Clients raise an error message “server reply: Forbidden” for every single file which would be quite annoying to users.

Any way around that?  
Cheers,  
Michael

---

<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:** [December 2, 2024, 12:35pm UTC](https://help.nextcloud.com/t/server-side-desktop-sync-prevention-for-multiple-users/7486/4 "2024-12-02T12:35:30Z")

</div>



---

<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:** [December 4, 2024, 12:58pm UTC](https://help.nextcloud.com/t/server-side-desktop-sync-prevention-for-multiple-users/7486/5 "2024-12-04T12:58:32Z")

</div>


