CaffNoir 13 Posted February 13 Posted February 13 Hi ! I'm trying to make a little script to prevent downloading to much but here is my issue : When i download through a web browser like firefox and i try to retrieve Jobs using /sync/jobs i only have jobs that has been made on apps. Is there any way to get also downloads that are made through a web browser ? Thanks for your help
CaffNoir 13 Posted February 13 Author Posted February 13 little update : I'v also saw when we download tv show episode it doing exactly the same has the browser but only for episode and not for the full season using emby theater from microsoft app store, i didn't tired yet with the mobile app or the mac os version
Luke 40007 Posted February 13 Posted February 13 No, no this isn’t possible because browser downloads are immediate and don’t require any scheduling.
CaffNoir 13 Posted February 14 Author Posted February 14 (edited) Thanks for the answer Luke ! Is there anyway to force the browser to schedule the event instead of direct download ? Or maybe disallow downloads from a web browser sessions through the api ? Edited February 14 by CaffNoir
Luke 40007 Posted February 14 Posted February 14 No, because there's no way to tell the browser to download something later.
CaffNoir 13 Posted February 14 Author Posted February 14 hmmm so it could be more tricky but closing connexion that are direct downloading can solve the issue . I should investigate with this maybe server logs can drop more info for this special case 1
Solution CaffNoir 13 Posted February 15 Author Solution Posted February 15 (edited) okay so i'v made it with a tricky way (but it's working). Since i'm using cloudflare, i'v made two custom WAF rule For SSL : Url contain : Download?api_key= and SSL on Redirect to https://mywebsite.com/ For no SSL : Url contain : Download?api_key= and SSL off Redirect to http://mywebsite.com/ This way, we can block download that not use sync and that also prevent content stealing with 3rd party app. All other things from emby are fully working, only downloads are blocked, sync is fully working so if someone want to download it will need to use app. Also i'v saw that now the microsoft store app that was direct DL now use sync with WAF rules on. So now i can use api to add a download limit like i had planned to do Edited February 15 by CaffNoir 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now