Since DirectoryMatch can only exist in "server config" and "virtual host", this might be a bit confusing:
```apache# .htaccess
<DirectoryMatch "data">
Require all denied
</DirectoryMatch>
```
A .htaccess inside the data directory will work:
# data/.htaccess
Require all denied
Since [`DirectoryMatch`](https://httpd.apache.org/docs/current/mod/core.html#directorymatch) can only exist in "server config" and "virtual host", this might be a bit confusing:
https://codeberg.org/adele/smolfedi/src/commit/97469a7913a78ff1ec8e07abeefdc4dac435d997/README.md?display=source#L85-L90
A `.htaccess` inside the data directory will work:
```apache
# data/.htaccess
Require all denied
```