Jellyfin Forum
How to disable access for internet browsers like CHROME or FIRFOX ? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: How to disable access for internet browsers like CHROME or FIRFOX ? (/t-how-to-disable-access-for-internet-browsers-like-chrome-or-firfox)



How to disable access for internet browsers like CHROME or FIRFOX ? - eranzil - 2024-01-10

Hi hello 

Can someone tell me please how to disable the Access to the server website by web browsers like Chrome or Mozila or Internet explorer ?
But continue to use only with android and iphone Apps ?
I have Jellyfin windows server last version
Because users downloading media from me with Chrome Download Video Extension
Thank you very much !!!


RE: How to disable access for internet browsers like CHROME or FIRFOX ? - niels - 2024-01-10

It is not possible to block certain clients (or browsers) in Jellyfin.


RE: How to disable access for internet browsers like CHROME or FIRFOX ? - toytown - 2024-01-10

If you are using a reverse proxy (such as nginx) you can block browser user agents using a piece of code like this in the "server" section.  I'm not home to try it, but it should look something like this

Code:
if ($http_user_agent ~* (Chrome|Edge|Firefox) ) {
return 403;
}



RE: How to disable access for internet browsers like CHROME or FIRFOX ? - niels - 2024-01-10

We highly recommend against those kinds of configurations as it will most likely cause unforeseen issues


RE: How to disable access for internet browsers like CHROME or FIRFOX ? - tmsrxzar - 2024-01-10

no global setting but you can do it per user

dashboard -> users -> (username) -> access
uncheck "allow access from all devices"
uncheck any device listed that you do not want access from (chrome, firefox)

downside, jellyfin doesn't recognize chrome as 1 device so you'll have to check periodically, a user on mine currently has 20+ "Chrome" entries and 10+ "FireFox", i assume different versions of the browser

also, any user can just change their user-agent and be back to downloading so no fix other than banning the offending users


RE: How to disable access for internet browsers like CHROME or FIRFOX ? - eranzil - 2024-01-11

(2024-01-10, 02:09 PM)niels Wrote: It is not possible to block certain clients (or browsers) in Jellyfin.

(2024-01-10, 02:59 PM)tmsrxzar Wrote: no global setting but you can do it per user

dashboard -> users -> (username) -> access
uncheck "allow access from all devices"
uncheck any device listed that you do not want access from (chrome, firefox)

downside, jellyfin doesn't recognize chrome as 1 device so you'll have to check periodically, a user on mine currently has 20+ "Chrome" entries and 10+ "FireFox", i assume different versions of the browser

also, any user can just change their user-agent and be back to downloading so no fix other than banning the offending users

Hi

I tried that before 
It's not working
I removeD this user device from the list
And i changed this user settings to not allow CHROME 
And he connect again ana again from the same PC


RE: How to disable access for internet browsers like CHROME or FIRFOX ? - eranzil - 2024-01-11

(2024-01-10, 02:26 PM)toytown Wrote: If you are using a reverse proxy (such as nginx) you can block browser user agents using a piece of code like this in the "server" section.  I'm not home to try it, but it should look something like this

Code:
if ($http_user_agent ~* (Chrome|Edge|Firefox) ) {
return 403;
}

Sound good !
I would like to hear more about this
Because i new to this Jellyfin thing
This is my first server
And i don't know to install nginx and make it run with Jellyfin


RE: How to disable access for internet browsers like CHROME or FIRFOX ? - eranzil - 2024-01-11

(2024-01-11, 06:54 AM)eranzil Wrote: [quote="toytown" pid='13247' dateline='1704896775']
If you are using a reverse proxy (such as nginx) you can block browser user agents using a piece of code like this in the "server" section.  I'm not home to try it, but it should look something like this

Code:
if ($http_user_agent ~* (Chrome|Edge|Firefox) ) {
return 403;
}

Hi thank you !
I did it and it's working
But if you put in the Chrome Browser the URL: "Jellyfin.dns.net:8096" It's still working !!!
How can i shut it off ?

Thank you

(2024-01-10, 02:26 PM)toytown Wrote: If you are using a reverse proxy (such as nginx) you can block browser user agents using a piece of code like this in the "server" section.  I'm not home to try it, but it should look something like this

Code:
if ($http_user_agent ~* (Chrome|Edge|Firefox) ) {
return 403;
}
Hi 
I did it and it works but if user put URL : "Jellyfin.ddns.net:8096" it's still showing the site
How i can change it ?
Thank you very much
 
hhhhhhank you !
I did it and it's working
But if you put in the Chrome Browser the URL: "Jellyfin.dns.net:8096" It's still working !!!
How can i shut it off ?

Thank 
Hi thank you !
I did it and it's working
Hi thank you !hhh
I did it and it's working
But if you put in the Chrome Browser the URL: "Jellyfin.dns.net:8096" It's still working !!!
How can i shut it off ?

Thank you
But if you put in the Chrome Browser the URL: "Jellyfin.dns.net:8096" It's still working !!!
How can i shut it off ?

Thank you
Hi thank you !
I did it and it's working
But if you put in the Chrome Browser the URL: "Jellyfin.dns.net:8096" It's still working !!!
How can i shut it off ?

Thank you

Hi thank you !
I did it and it's working
But if you put in the Chrome Browser the URL: "Jellyfin.dns.net:8096" It's still working !!!
How can i shut it off ?

Thank you
Hi thank you !
I did it and it's working
But if you put in the Chrome Browser the URL: "Jellyfin.dns.net:8096" It's still working !!!
How can i shut it off ?

Thank you


RE: How to disable access for internet browsers like CHROME or FIRFOX ? - TheDreadPirate - 2024-01-11

In your nginx logs, double check that the user agent matches the strings you set.