View Single Post
Old 12-20-2020, 10:31 AM   #4972
vikarti
Groupie
vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.
 
Posts: 185
Karma: 1004974
Join Date: May 2013
Location: Solar system, Earth
Device: none
Quote:
Originally Posted by Arkeus View Post
What is this user_agent you are talking about how do you set it to something else?

EDIT: Added a line to personal.ini saying user_agent with said Mozilla/5.0 thing and it worked, but can someone explain to me how you know what numbers to say after mozilla/etc?
It's convention that every client program("user-agent") which talks over HTTP should identify.
Original idea was just identification. Later sites started to tweak itself according to user-agent, because it's usually browser and it's only way to determine browser and show 'This is best viewed with X,Y , please update your older Z'(or just provide special version of site to Z)

Because of a lot of historcal bagge, it's got rather complicated.
example:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

This is Chrome 87(it's really is), but it's want pages for Safari (so if site detects Safari and NOT Chrome - correct page will be choosen) (because Blink engine was once WebKit, WebKit was originally Safari's engine). AppleWebKit is another Safari's rudiment
KHTML; like Gecko - this is inherited from KDE's Konquer (WebKit was created from Konquer's engine named KHTML), 'Gecko' was started it's life as Netscape Navigator 6.0 and Mozilla Suite's engine(Firefox didn't exist at this time).
'Mozilla' is rudiment of pre-6.0 Netscape Navigator
Win NT/Win64/x64 - just OS data.
Numbers are versions of older engines browser says it's compatible to.

If you want to see user agent of your regular browser - just visit https://developers.whatismybrowser.c...user-agent=yes
Try from different devices/browsers if you have more than one.sa


It's usually possible to fake user agent (setting user-agent: in personal.ini does just that) but it's also possible to detect user agent via other means, indirectly.




New versions of chrome starting to depricate this in favor of 'client hints' (basially 'I can do X').
vikarti is offline   Reply With Quote