mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5170] [Feature]: Hwid/device limit #3633
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3633
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vegych on GitHub (Jun 10, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5170
Is your feature request related to a problem?
Restrictions on the distribution of subscriptions
Describe the solution you'd like
Right now, 3x-ui already has traffic limits, expiration dates, IP limits, and other useful restrictions. But subscription links can still be shared pretty easily. IP limits aren't always a good solution, many users are behind mobile networks, CGNAT, or have IPs that change all the time.
Some clients, like incy, happ, can send a device identifier (HWID or device fingerprint) when requesting a subscription update.
So here's my idea: add an optional device limit based on this identifier.
How it could work:
1 User updates their subscription from a device.
2 3x-ui receives the device identifier.
3 The first device gets registered automatically.
4 More devices can be added until the admin-defined limit is reached.
5 If a new device tries to register beyond the limit , then the subscription update is denied, or the device just doesn't get added.
Example:
User has a device limit of 1.
Their first phone registers and works fine.
If they share the subscription link with another phone or another person, 3x-ui sees a different device identifier and refuses to register it, because the limit has already been reached.
What would be useful in the admin panel:
1 Number of registered devices
2 List of device identifiers
3 First seen date
4 Last seen date
5 Option to remove a specific device
6 Option to reset all registered devices
Why this is useful:
For many admins, device limits are much more practical than IP limits. Users often switch networks, travel, or use mobile data. IP limits just get in the way in those cases.
This feature could help reduce subscription sharing without requiring any changes to Xray-core - since the check would only happen when the client requests a subscription update
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 10, 2026):
Thanks for the well-written request, @vegych!
This feature has already been requested several times:
Closing this as a duplicate of those earlier threads. If you'd like to see this implemented, please add a 👍 reaction to #3002 (the oldest open discussion) or leave a comment there — that helps maintainers gauge interest. If you're willing to implement it yourself, #3002 also contains links to reference implementations (e.g. Remna's HWID device limit docs) that should help get started.
@tfduch commented on GitHub (Aug 27, 2026):
What about Karing clients & HWID ?
@tfduch commented on GitHub (Aug 27, 2026):
Sorry, for Karing need to enable that point