mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6856] [Feature]: Donation codes to permanently disable sponsored ads #4555
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#4555
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 @DiscussionOnly on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6856
Is your feature request related to a problem?
I understand that sponsored advertisements may help support the project.
However, some self-hosted users prefer a clean interface without sponsored
content.
Currently, there does not appear to be a clear way for users to support the
project and permanently disable these advertisements.
Describe the solution you'd like
Please consider adding an optional donation-based ad-free feature.
Suggested behavior:
disabled for the allowed number of installations or devices.
panel installations.
using the normal version with sponsored advertisements.
The exact binding method, such as device fingerprint, panel installation, or
license key, can be chosen by the maintainers.
Alternatives you've considered
I considered continuing to use an older version without sponsored
advertisements, but this may prevent users from receiving security fixes and
new features.
I also considered using a modified or unofficial fork, but unofficial builds
may create security and maintenance risks.
Concrete use case
I run 3x-ui on my own VPS for personal use. I understand that development and
maintenance require resources, so I would be willing to make a donation.
However, I would prefer to support the project once and receive a donation
code that permanently disables sponsored advertisements on a limited number
of my own panel installations or devices.
Mockups, screenshots, or examples
No mockups are available at this time.
A possible location would be:
Panel Settings → Sponsored Ads → Redeem Donation Code
The page could display the activation status and the number of remaining
installations or devices.
Which parts of the panel would this affect?
Frontend (UI / panel pages)
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Oct 16, 2026):
This is a feature request. 3x-ui has no license, activation or donation-code mechanism today, and nothing can switch sponsor slots off. On #6824 the maintainer has already said that sponsor slots stay and that "No opt-out switch or bundling is planned." A paid code would be an opt-out switch with a payment step in front of it, so it needs the maintainer's decision. I have left this open for that.
What the code does today (default branch, v3.10.2)
PanelService.GetSponsors()(internal/web/service/panel/sponsor.go:82) always returns the active list it fetches fromsponsorsURL(sponsor.go:63,raw.githubusercontent.com/MHSanaei/sponsors/...). No setting, environment variable or code check skips it.IndexPage.tsx:217) and the login page (LoginPage.tsx:251). The sidebar also has a/sponsorspage.SponsorSlot.tsx:24filters withisSponsorDismissed(s.id, slot). That choice is stored in the browser's localStorage forSPONSOR_DISMISS_MS = 24 * 60 * 60 * 1000(frontend/src/lib/sponsors.ts:6), so it lasts 24 hours in one browser..github/FUNDING.yml:14listscustom: https://donate.sanaei.dev/, but a donation does not change anything in the panel.If the maintainer ever considers it. These are inferences about design and are not in the code:
GetSponsors(), placed before the fetch. That way the network request is skipped as well as the banner.Related: #6844 (env-variable opt-out, open), #6824 (where the decision above was given), #6818 and #6776 (earlier opt-out requests, closed as not planned). This issue is not a duplicate of them, because it adds the donation mechanism.
Verdict: Feature request
This reply was generated automatically; a maintainer may follow up.
@55575455 commented on GitHub (Oct 17, 2026):
This is a great plan. I really dislike ads, so as long as it is reasonably priced, I would be open to donating—as long as there are payment methods convenient for users in China, of course.
@55575455 commented on GitHub (Oct 17, 2026):
Subject: Suggestion: Adding convenient payment/donation methods for users in China (Alipay / WeChat Pay)
Hi @MHSanaei,
Thank you so much for developing and maintaining 3X-UI!
I'd like to suggest considering payment or donation methods that are accessible to users in China. Currently, many Chinese users would love to donate and support the project, but we run into major payment barriers:
If you could integrate a platform that bridges international creators with Chinese payment channels (such as Afdian / 爱发电, which supports Alipay and WeChat Pay, or a payment gateway that supports cross-border Alipay/WeChat), a lot more users from China would be able and happy to donate to support your work.
Thanks again for the great tool!
@55575455 commented on GitHub (Oct 17, 2026):
Hi, I completely understand that open-source maintainers need and deserve financial support for their hard work. However, the biggest issue right now is that there is simply no workable way for many of us to pay you.
A lot of users, myself included, genuinely want to donate and have the money ready, but we are completely blocked by the lack of supported payment methods in China. Since you are based abroad, personal safety is not a concern here—it's purely an accessibility barrier. Please consider providing at least one channel that works for Chinese users, so our willingness to support can actually reach you.
@55575455 commented on GitHub (Oct 17, 2026):
Hi, I completely understand why upstream maintainers like RPRX (Xray) have to be extremely cautious—they are likely based in mainland China and must rely on crypto mixers, Monero, and high-level anonymity for personal safety.
However, since you are based outside China, you don't face those direct risks and don't need such extreme opsec. While there is always a chance Chinese authorities might eventually block a payment route out of ideological control, standard channels (or platforms supporting Alipay/WeChat) remain fully usable until that happens. Right now, the willingness and money are here, but the lack of an accessible payment channel is the only thing preventing many of us from supporting you.
@55575455 commented on GitHub (Oct 17, 2026):
To be completely honest, even sending just 50 USDT to RPRX was an absolute nightmare for me because of all the hurdles and restrictions around crypto here. That's why having a standard, accessible payment option would make a world of difference for users like us who genuinely want to support you.
@55575455 commented on GitHub (Oct 17, 2026):
Honestly, just trying to donate 50 USDT to RPRX took an insane amount of effort on my end. Crypto is just not practical for regular users in China, which is why a normal payment method would help a lot.
@55575455 commented on GitHub (Oct 17, 2026):
The only way to buy crypto on OKX in China is through P2P. Well, I got caught, and the fucking pigs just summoned me for tea. Holy shit, now I've gotta drag myself to the damn precinct.
@55575455 commented on GitHub (Oct 17, 2026):
These lowlife precinct roaches have zero clue what crypto is, let alone where the money actually went. But our dystopian surveillance dogshit triggered an alert anyway, feeding it down to these useless state goons so they can feel important by harassing regular people.
They played the pathetic "anti-telecom fraud" circus. That miserable 96110 hotline called first to probe into my business with their fake "fraud prevention" bullshit, followed by the local uniformed filth demanding I report to their pigsty before a deadline. Absolute scum of the earth.
@55575455 commented on GitHub (Oct 17, 2026):
I might not have the English skills for complex academic writing or open-source coding, but I've got more than enough words to cuss out these scumbags: their fucking moms got fucked by some stray dogs on the street.
@55575455 commented on GitHub (Oct 17, 2026):
I might not have the English skills for complex academic writing or open-source coding, but I've got more than enough words to say that those bastards' moms got fucked by stray dogs on the street.
My bad, went on a bit of a savage rant there and forgot you might have no clue what I'm talking about! Quick breakdown:
That's why donating with crypto is an absolute nightmare for us in China.
@3094422652 commented on GitHub (Oct 17, 2026):
Such a big project is going to be ruined by ads. How nice would it be to offer a donation option to remove ads? Being forced to watch ads is truly disgusting.
@jamesliu96 commented on GitHub (Oct 18, 2026):
This just pushes individual users toward maintaining a parallel fork and building it themselves. Sponsor ads belong in the README, not in the software itself, especially without user consent.
@M3Fi100F3L commented on GitHub (Oct 22, 2026):
I know the developer doesn't owe anyone anything, but personally, I won't tolerate any ads on my own self-hosted server. I've rolled back to version 3.7.0 for now; as soon as I have time, I'll just vibecode a control panel with the minimum functionality I need. Ads is cancer.
@NethminaYasas commented on GitHub (Oct 24, 2026):
Thanks to the maintainers for all their work. Sponsorships are completely fair. For anyone who just wants a cleaner panel on their own server, I used Xray’s own config: a loopback outbound for the panel’s traffic, plus a routing rule that blocks raw.githubusercontent.com for it. The sponsor list can’t load, and nothing else on the server is affected. A built in option like #6844 would still be simpler for most people.
@55575455 commented on GitHub (Oct 25, 2026):
I believe that if current revenue cannot cover development costs and the
number of donors remains relatively small, introducing advertisements is a
viable option. However, given the unique nature of our project as an
anti-censorship and circumvention tool, we must rigorously audit ad
tracking. Clicking on ads could expose critical sensitive user data to
advertisers—such as IP addresses, screen resolutions, and timezones—and
especially critical identifiers like browser fingerprints and WebGPU
fingerprints.
Nethmina Yasas @.***> 于 2026年10月25日周日 05:18写道: