# Filter with auth-proxy

**URL:** <https://forum.rclone.org/t/filter-with-auth-proxy/35514>\
**Category:** Help and Support\
**Created:** [January 17, 2023, 10:31am UTC](https://forum.rclone.org/t/filter-with-auth-proxy/35514 "2023-01-17T10:31:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfred\_Reibenschuh](https://forum.rclone.org/user_avatar/forum.rclone.org/alfred_reibenschuh/32/14044_2.png) [@Alfred\_Reibenschuh](https://forum.rclone.org/u/Alfred_Reibenschuh)\
**Post date:** [January 17, 2023, 10:31am UTC](https://forum.rclone.org/t/filter-with-auth-proxy/35514/1 "2023-01-17T10:31:53Z")

</div>

hello

rclone version 1.61.1

i am currently using the command to share a folder over http/webdav

```auto
.../rclone --verbose serve webdav --addr :2080 --read-only --include 'data/ **' --include 'backup/**' /

```

i would like to move this into an auth-proxy script but i seem unable to figure out how to specify the filter/inlcude ?

```auto
.../rclone --verbose serve webdav --addr :2080 --read-only --auth-proxy /path/to/auth.sh

```

with auth.sh

```auto
#!/usr/bin/env bash

cat << __EOF__

{ "type": "local", "_root": "/", "include": ["data/ **","backup/**"] }

__EOF__

```

thanks in advance.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [January 17, 2023, 10:40am UTC](https://forum.rclone.org/t/filter-with-auth-proxy/35514/2 "2023-01-17T10:40:19Z")

</div>

You can leave the filters on the command line and they will apply to all proxied servers.

The auth proxy isn't capable of setting filters at the moment so it is all or nothing for now.

---

<div class="post-metadata">

**Author:** ![Alfred\_Reibenschuh](https://forum.rclone.org/user_avatar/forum.rclone.org/alfred_reibenschuh/32/14044_2.png) [@Alfred\_Reibenschuh](https://forum.rclone.org/u/Alfred_Reibenschuh)\
**Post date:** [January 17, 2023, 12:11pm UTC](https://forum.rclone.org/t/filter-with-auth-proxy/35514/3 "2023-01-17T12:11:08Z")

</div>

yes, i have already discovered that setting filters on the commandline works

in the end the auth.sh script should generate \_root and include dirs dynamically from ldap queries,  
so setting filters on the commandline isnt an option.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [January 17, 2023, 4:52pm UTC](https://forum.rclone.org/t/filter-with-auth-proxy/35514/4 "2023-01-17T16:52:58Z")

</div>

This is of course possible... Is it something your company might sponsor me to implement?

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [February 16, 2023, 4:53pm UTC](https://forum.rclone.org/t/filter-with-auth-proxy/35514/5 "2023-02-16T16:53:05Z")

</div>

Closed on February 16, 2023, 4:53pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
