[GH-ISSUE #5170] [Feature]: Hwid/device limit #3633

Closed
opened 2026-10-31 20:33:50 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @vegych on GitHub (Jun 10, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5170

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?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
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? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [ ] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:33:50 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 10, 2026):

Thanks for the well-written request, @vegych!

This feature has already been requested several times:

  • #3002 — HWID device limit (closed)
  • #2890 — HWID (closed)
  • #5032 — [Feature]: Please add a HWID control (closed as duplicate)

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.

<!-- gh-comment-id:4671070911 --> @github-actions[bot] commented on GitHub (Jun 10, 2026): Thanks for the well-written request, @vegych\! This feature has already been requested several times: - #3002 — **HWID device limit** (closed) - #2890 — **HWID** (closed) - #5032 — **[Feature]: Please add a HWID control** (closed as duplicate) 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.
Author
Owner

@tfduch commented on GitHub (Aug 27, 2026):

What about Karing clients & HWID ?

<!-- gh-comment-id:5435299479 --> @tfduch commented on GitHub (Aug 27, 2026): What about Karing clients & HWID ?
Author
Owner

@tfduch commented on GitHub (Aug 27, 2026):

Sorry, for Karing need to enable that point

Image
<!-- gh-comment-id:5435423696 --> @tfduch commented on GitHub (Aug 27, 2026): Sorry, for Karing need to enable that point <img width="380" height="693" alt="Image" src="https://github.com/user-attachments/assets/2f5528fd-7500-4ea6-9215-0467f3c25cf1" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
MHSanaei/3x-ui#3633
No description provided.