• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Hide Login Page

     
    • 0 Vote(s) - 0 Average

    Hide Login Page

    sleepparalysisdemon
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2023 Dec
    Reputation: 0
    Country:United States
    #1
    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?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    sleepparalysisdemon
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2023 Dec
    Reputation: 0
    Country:United States
    #3
    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 {
    # reverse proxy jellyfin if user-agent contains string JellyfinMediaPlayer
            @notbot header_regexp User-Agent (?i)(JellyfinMediaPlayer)
            handle @notbot {
                    reverse_proxy 127.0.0.1:8096
            }
    # if not, load other page instead
            handle {
                    root * /path/to/your/html/page
                    file_server
                    encode gzip
            }
    }

    EDIT: You can support other native clients like Swiftfin, just change the header_regexp line:
    Code:
    @notbot header_regexp User-Agent (?i)(JellyfinMediaPlayer|Swiftfin)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2023-12-30, 01:52 AM
    What about Swiftfin on iOS? Jellyfin Mobile if web based, IIRC.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    sleepparalysisdemon
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2023 Dec
    Reputation: 0
    Country:United States
    #5
    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)
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode