JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 04.06.2022, 15:52
StefanM's Avatar
StefanM StefanM is offline
JD VIP
 
Join Date: Oct 2020
Posts: 491
Default Feature Request: User can define standard User Agent string

I noticed that often the User Agent of JD contains an outdated version of Firefox.

Some webpages don't like that...

I would recommend to always use the latest User Agent version of e.g. Firefox.
And I would suggest to implement an option (in advanced settings) that the user can enter their own User Agent string.

For the time being, only with some Hoster PlugIns the user can define that string. But when I look e.g. at the VK.com PlugIn, default settings read
Code:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0


Or is 46.0 being used for a reason?
Reply With Quote
  #2  
Old 04.06.2022, 15:57
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,520
Default

Quote:
Originally Posted by StefanM View Post
I would recommend to always use the latest User Agent version of e.g. Firefox.
There is a reason we don't update default UA thoughtless as this easily can and will break many plugins because they change behaviour/html/js depending on UA. For example instagram recently started to behave differently depending on old/newer UA, which broke account support.

Quote:
Originally Posted by StefanM View Post
And I would suggest to implement an option (in advanced settings) that the user can enter their own User Agent string.
Currently there are no plans for this because there is no need to and custom/different UA can easily break plugins, for example some plugins/api do require a special UA to work properly, and see my comment above.
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 04.06.2022 at 16:00.
Reply With Quote
  #3  
Old 04.06.2022, 15:59
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,520
Default

Quote:
Originally Posted by StefanM View Post
Or is 46.0 being used for a reason?
In case a plugin uses a customized UA, there is a reason. for example different behaviour/layout/js.
Of course it might be outdated and newer UA might work but there is no need to change it when it's working.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 04.06.2022, 16:02
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,520
Default

Quote:
Originally Posted by StefanM View Post
Some webpages don't like that...
For example? We're happy to check and update accordingly
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 04.06.2022, 16:16
StefanM's Avatar
StefanM StefanM is offline
JD VIP
 
Join Date: Oct 2020
Posts: 491
Default

Quote:
Originally Posted by Jiaz View Post
For example? We're happy to check and update accordingly
In fact, VK.com is an example.
With v46.0 you sometimes get unwanted popups, asking you to use another browser or you cannot even access the page at all.

Haven't observed this in JD so far, but I did observe this with an outdated Firefox browsers v56.x.x. And it may very well have been the reason for some problems already - without knowing it for sure...

Another reason, why I would avoid using the same outdated version for a longer period of time is the following:

As you know, many hosters try to detect the use of download managers and then block them.

Now, if JD uses e.g. Firefox 46.0 User Agent for a longer period of time, some IT guys at e.g. VK.com may notice that and know, that people are using JD instead of streaming their videos. One should try to avoid them noticing that...

An as soon as they notice that, a modification of the corresponding PlugIn is needed...
Reply With Quote
  #6  
Old 04.06.2022, 16:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,520
Default

Quote:
Originally Posted by StefanM View Post
In fact, VK.com is an example.
With v46.0 you sometimes get unwanted popups, asking you to use another browser or you cannot even access the page at all.
JDownloader does not have any browser engine,so no dom/html/js/no poups/no ads...nothing. only pure http requests that must be coded in plugin.
as long as the UA does not change the behaviour/flow of the website, all good, which is the case here
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 04.06.2022 at 16:23.
Reply With Quote
  #7  
Old 04.06.2022, 16:20
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,520
Default

Quote:
Originally Posted by StefanM View Post
As you know, many hosters try to detect the use of download managers and then block them.
Now, if JD uses e.g. Firefox 46.0 User Agent for a longer period of time, some IT guys at e.g. VK.com may notice that and know, that people are using JD instead of streaming their videos. One should try to avoid them noticing that...
You don't have to rely on UA to detect tools/bots/scripts! Even with updated UA, it only takes about 1 line of code to detect tools/bots/scripts. Just modify html, that's it. In over 14 years, I can count UA blocking happening with less than 10-20 fingers (and often the same site)
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 04.06.2022, 16:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,520
Default

Quote:
Originally Posted by StefanM View Post
An as soon as they notice that, a modification of the corresponding PlugIn is needed...
Correct! But in that case we'll notice it (either ourselves or by reports), but if ppl just start changing UA themselves, guess who they gonna ask for help or complain when plugin breaks/fails. The many ping/pongs until ...*ah..sorry..my fault..I did experiment with different UA*.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 22.05.2023, 22:28
KCOU KCOU is offline
Modem User
 
Join Date: Mar 2023
Posts: 2
Default

Is there a way to find out the useragent being used at the moment of use by jdownloader by looking at any option or logfile? Without third party software.

In advanced options you can see some plugins able to change from JDDEFAULT to whatever, but what is JDDEFAULT?

I'm looking for the user-agent string, not to change it.
Reply With Quote
  #10  
Old 23.05.2023, 11:52
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,086
Default

Quote:
Originally Posted by KCOU View Post
Is there a way to find out the useragent being used at the moment of use by jdownloader by looking at any option or logfile? Without third party software.
Enable debug logs, then add links and/or start downloads and afterwards simply search for "User-Agent" in your logs.
You will find it in the logged http headers.

Quote:
Originally Posted by KCOU View Post
In advanced options you can see some plugins able to change from JDDEFAULT to whatever, but what is JDDEFAULT?
JDDEFAULT is the global default User-Agent which all plugins are using by default.
It can change and it is not exposed in any of our settings which is why the string "JDDEFAULT" is used in plugin settings in this case.
Currently that resembles to:
Code:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:76.0) Gecko/20100101 Firefox/76.0
It may be different depending on your OS - I haven't checked that.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
Old 14.07.2023, 02:58
djones
Message deleted by pspzockerscene. Reason: Deleted/edited by user so this comment is/was now useless
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 12:51.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.