# Hoe verzoeken te laten vallen met een lege user agent?

**URL:** <https://meta.discourse.org/t/how-to-drop-requests-with-an-empty-user-agent/259069>\
**Category:** Self-hosting\
**Created:** [22 maart 2023 om 16:38 UTC](https://meta.discourse.org/t/how-to-drop-requests-with-an-empty-user-agent/259069 "2023-03-22T16:38:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![CubeCoders](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cubecoders/32/298429_2.png) [@CubeCoders](https://meta.discourse.org/u/CubeCoders)\
**Post date:** [22 maart 2023 om 16:38 UTC](https://meta.discourse.org/t/how-to-drop-requests-with-an-empty-user-agent/259069/1 "2023-03-22T16:38:26Z")

</div>

I’m getting a lot of bad bots/crawlers hitting my Discourse site with an empty user agent. Normally I’d edit the nginx configuration to do this, but this isn’t accessible when using the Docker installation method. I don’t really want to add an extra RP just for this if I can avoid it.

---

_[View the full topic](https://meta.discourse.org/t/how-to-drop-requests-with-an-empty-user-agent/259069)._
