How to disable the usage access from Nestcloud desktop client

Hi Everyone,

I need a help in disabling the access of nextcloud from mobile and desktop client, for that where i have to configure and what i have to change, if anyone done any work regarding this problem, kindly give me a solution.
apache 2.4.57
php 8.1.27
nextcloud 31.0

Hi sjed_asif,

Especially those two? Or any WebDAV connection?

What is your goal in doing this?

To prevent Nextcloud-desktop-client(Mirall) from accessing Nextcloud

Thanks for the reply but i found a solution for blocking the desktop client from accessing nextcloud, by making config changes in the virtual host config file.
for httpd the file is located in /etc/httpd/conf.d/“your_virtual_host”.conf

for knowing which “your_virtual_host”.conf file is used by your httpd

For finding HTTPD virtual config files

httpd -S

It gives output:

*:80 “your_ip_addr” (/etc/httpd/conf.d/“your_virtual_host”.conf:1)

To Block requests from Mirall User-Agent

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} "mirall" [NC]
RewriteRule ^ - [F,L]

By adding these lines you can block request from the desktop clients and “mirall” is the client name used by desktop client.