Set User-Agent #1139

Closed
opened 2025-09-01 19:12:10 +00:00 by s1shed · 2 comments
Contributor

What I'd like to do and why

Nginx, when running within OPNSense, defaults to blocking "bad bots".

I have Healthchecks monitoring enabled (self-hosted) and python-requests/2.31.0 was seen when Borgmatic pinged my Healthchecks server. The connection was detected as being made by a "bad bot" and dropped. Perhaps it would not be a bad idea for Borgmatic to specify a custom User-Agent in requests to external systems? If nothing else it would not be blocked by any sort of "bad bot" detection as is done by a widely used routing and firewall software.

As a bonus, it could act as advertising, making curious sysadmins aware of this fantastic tool (if they're not already aware of it)?

Other notes / implementation ideas

No response

### What I'd like to do and why Nginx, when running within OPNSense, defaults to [blocking "bad bots"](https://docs.opnsense.org/manual/how-tos/nginx_waf.html#opnsense-specific-information). I have Healthchecks monitoring enabled (self-hosted) and `python-requests/2.31.0` was seen when Borgmatic pinged my Healthchecks server. The connection was detected as being made by a "bad bot" and dropped. Perhaps it would not be a bad idea for Borgmatic to specify a custom User-Agent in requests to external systems? If nothing else it would not be blocked by any sort of "bad bot" detection as is done by a widely used routing and firewall software. As a bonus, it could act as advertising, making curious sysadmins aware of this fantastic tool (if they're not already aware of it)? ### Other notes / implementation ideas _No response_
Owner

Great idea! For now I've hard-coded "borgmatic" as the user agent on all outgoing requests. (Let me know if you need that to be customizable.)

This will be part of the next release.

Great idea! For now I've hard-coded "borgmatic" as the user agent on all outgoing requests. (Let me know if you need that to be customizable.) This will be part of the next release.
Owner

Released in borgmatic 2.0.8!

Released in borgmatic 2.0.8!
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
borgmatic-collective/borgmatic#1139
No description provided.