2023-12-28, 06:41 PM
(This post was last modified: 2023-12-28, 11:53 PM by sleepparalysisdemon. Edited 1 time in total.)
Is there a way to hide the browser accessible login page and only allow log ins from the media player client?
2023-12-28, 06:41 PM
(This post was last modified: 2023-12-28, 11:53 PM by sleepparalysisdemon. Edited 1 time in total.)
Is there a way to hide the browser accessible login page and only allow log ins from the media player client?
2023-12-29, 05:29 PM
Short answer, no. Jellyfin has no way to only allow certain clients. I've seen some people suggest you might be able to use a reverse proxy to only allow certain user agents. But no one has posted a walk through to actually make that happen.
2023-12-30, 12:56 AM
(This post was last modified: 2023-12-30, 03:38 AM by sleepparalysisdemon. Edited 1 time in total.)
Wanted to give an update. Here is a solution for Caddy. It will reverse proxy any user-agents with the string JellyfinMediaPlayer, but redirect all others to an HTML page. This works with both the Windows and Linux Flatpak media players, but not the iOS app as the User-agent for that client is Mozilla (see below for Swiftfin)
Use this for your Caddyfile: Code: yourdomain.xyz { EDIT: You can support other native clients like Swiftfin, just change the header_regexp line: Code: @notbot header_regexp User-Agent (?i)(JellyfinMediaPlayer|Swiftfin)
2023-12-30, 01:52 AM
What about Swiftfin on iOS? Jellyfin Mobile if web based, IIRC.
2023-12-30, 03:30 AM
Yes, you can get Swiftfin to work if you change the header_regexp line:
Code: @notbot header_regexp User-Agent (?i)(JellyfinMediaPlayer|Swiftfin) |
|
|