SRL Archive - Jr. Member General Help and Discussion

Useragent


Thomas

2015-03-13 13:06:01

What does Useragent default to if you dont specify it in your script?
And what is the use of using it in a script? I assume its just a method to mask the smart client from bot watch?

rj

2015-03-13 13:23:59

mozilla firefox

KeepBotting

2015-03-13 17:44:46

Useragent is the bit that tells a remote host what you are (i.e. OS, browser, render engine)

e.g. mine is
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:36.0) Gecko/20100101 Firefox/36.0

Thomas

2015-03-13 18:16:31

Ye figured as much, was just wondering why you would bother adding it if the client was going to default something properly like Mozilla :)

Flight

2015-03-13 18:37:56

The default Useragent when loading SMART in AeroLib is "'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0'", as I read that was the commonly used agent. However you can change this before calling "initAL()" and SMART will be loaded with your custom useragent.

Le Jingle

2015-04-29 16:04:23

Can compile smart with specific user agents being one of many modifications possible