-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
- [ V] I have searched to see if a similar issue already exists.
Is your feature request related to a problem? Please describe.
Gradio installs and validates frpc (Fast Reverse Proxy Client) even if the user never calls share=True.
This is a security concern because frpc is widely flagged by antivirus as HackTool or Riskware, and attackers actively use FRP to create backdoors.
Requiring every user to keep a tunneling binary installed increases the attack surface of ML servers and encourages users to weaken their security posture (e.g. whitelisting the binary).
Describe the solution you'd like
Make frpc completely optional:
Remove it from the default requirements and installation validation.
Only check/download frpc when share=True is explicitly requested, and only at that moment.
This would keep Gradio “secure by default,” while still allowing users who need public sharing to install and use FRPC.
Additional context
Many GitHub issues suggest “whitelisting frpc” when it is blocked, but this is not a good security practice — it normalizes bypassing protections instead of minimizing risk.
By making frpc opt-in, Gradio can stay compatible with strict security environments while still offering the share feature for those who explicitly choose to use it.