Enable "user-agent" detection in Resource Rules Configuration #1753
shanelord01
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Add support for matching inbound requests by HTTP header values — particularly the User-Agent header — within the Resource Rules configuration.
This would allow conditional routing or authentication based on client type (e.g. mobile vs desktop browsers, API clients, or device families).
Motivation
Today Pangolin rules can match only by Path, IP, IP Range, or Country.
Apps can identify their official clients through the User-Agent string or custom headers (X-Client-Type, X-Emby-Client, etc.).
Being able to match on these values would enable use cases such as:
Allowing official mobile apps through without proxy-level auth while still protecting web logins (Zero-Trust layering).
Creating different auth policies for APIs vs interactive UIs.
Applying custom rate limits or CrowdSec bouncers only to specific client classes.
Without header matching, administrators must work around this using extra proxies or duplicate domains.
Proposed Solution
Extend the Resource Rules “Match Type” list to include Header (or specifically User-Agent) with operators such as:
Header Equals / Header Contains / Header Regex
Example syntax:
Alternatives Considered
Running an external NGINX front proxy to filter by User-Agent before Pangolin (redundant and fragile).
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions