Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I'm trying to use Seamonkey, but some sites only want Firefox or Chrome, and seem to be using some other method than the useragent string to detect it - any ideas how to work around this?
Are you sure it's really not User Agent? SeaMonkey uses the same web engine as Firefox, I don't think it would be easy for websites to tell them apart by any other means. Moreover, what would be the purpose of a website going to great lengths in order to distinguish between SeaMonkey and Firefox?
Perhaps, the SeaMonkey you're using just happens to be of much older version than Firefox?
No, I'm not sure, but I've tried spoofing the useragent with a FF 90 string and it still says outdated browser - maybe I had the strings wrong though - will post here in a sec
This is the string I used (in general.useragent.override) and it gave the same error: "Mozilla/5.0 (X11; Linux; x86_64; rv:90.0) Gecko/20100101 Firefox/90.0"
Have you restarted the browser - I've noticed useragent overriding can be cached after first change. Check F12 > Network tab to confirm whether the value being sent matches your config.
If a site uses a server-side check to generate a HTML message, you can grep the output of curl to identify an [un]accepted value before making the actual change:
Code:
curl -LSs -A 'INSERT_USERAGENT_HERE' 'INSERT_URL_HERE' | grep -i browser
Unfortunately, many sites instead will always output the HTML then use JavaScript to hide/show it, so can't always do that. (It's probably more common that sites with bloated HTML and bloated JavaScript that can't be arsed to do basic graceful degradation and so show such messages.)
This is the string I used (in general.useragent.override) and it gave the same error: "Mozilla/5.0 (X11; Linux; x86_64; rv:90.0) Gecko/20100101 Firefox/90.0"
Yes, restarted the browser (although Seamonkey doesn't seem to cache it - reloading a page such as https://gs.statcounter.com/detect shows the updated value immediately).
Not sure it affects the actual detection, but it seems to be handled with a redirect (the page in question is https://trader.degiro.nl/login/uk#/login which reloads a different page when it detects an "old" browser).
What likely happened is that the site checked whether your browser supports what it actually needs to run, and the test was negative. They do this by executing JavaScript and looking at what fails. In that case, you actually do need a more up-to-date browser.
One question I have is: does the site actually not work, or does it just show a message that you can really ignore?
The site won't load with the latest version of Seamonkey, but it will load with an outdated version of Midori! It doesn't show the login screen at all (and the actual login seems to be done with javascript, it doesn't seem to be possible to just load the target page by passing a username and password anywhere).
I wonder if it is possible to write a rule for the Add-on Ublock Origin to block the execution of this special feature testing inline script? Or to save the code to disk and delete this test and make a local injection of the changed code? Or just make an 'on the fly' usage of those browser integrated web developer tools? Has anybody a nice solution how to deal with such annoyances?
Last edited by linux12345; 09-27-2021 at 02:09 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.