How to implement Modsecurity for Nextcloud AIO

@jtr @szaimen thx for ur reply but i want to block access to https://domain.com/apps/mail/api/messages/846/attachment/2
for anyone accessing it outside of local network.

this would block users from downloading mail attachments outside of local network.

I’m using nginx proxy manager