# How to implement Modsecurity for Nextcloud AIO

**URL:** <https://help.nextcloud.com/t/how-to-implement-modsecurity-for-nextcloud-aio/199999>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** reverseproxy, docker, security, modsecurity, ncp, aio\
**Created:** [August 2, 2024, 7:08pm UTC](https://help.nextcloud.com/t/how-to-implement-modsecurity-for-nextcloud-aio/199999 "2024-08-02T19:08:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Nanak\_Singh](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nanak_singh/32/51072_2.png) [@Nanak\_Singh](https://help.nextcloud.com/u/Nanak_Singh)\
**Post date:** [August 2, 2024, 7:41pm UTC](https://help.nextcloud.com/t/how-to-implement-modsecurity-for-nextcloud-aio/199999/4 "2024-08-02T19:41:31Z")

</div>

@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

---

_[View the full topic](https://help.nextcloud.com/t/how-to-implement-modsecurity-for-nextcloud-aio/199999)._
