Jump to content
UBot Underground

spinning user agent


Recommended Posts

Can I spin the user agent as follows:

 

set user agent

User Agent:

$Spin

Text to Spin:

{Internet Explorer 6|Internet Explorer 7|Internet Explorer 8|Internet Explorer 9|Internet Explorer 10|Chrome|Safari|Firefox 4|Firefox 5|Firefox 6|Android|iphone|Googlebot|MSNbot|Yahoo Slurp bot}

 

The bot seems to work ok using this format, but is it spinning the user agent?

Link to post
Share on other sites

define pick_user_agent {
   set(#u_agent, $rand(1, 3), "Global")
   if($comparison(#u_agent, "=", 1)) {
       then {
           set user agent("Firefox 6")
       }
       else {
           if($comparison(#u_agent, "=", 2)) {
               then {
                   set user agent("Chrome")
               }
               else {
                   if($comparison(#u_agent, "=", 3)) {
                       then {
                           set user agent("Internet Explorer 10")
                       }
                   }
               }
           }
       }
   }
}

 

This is a little longer. A point of modification would be to set random 1-100, then use this data here http://www.w3schools.com/browsers/browsers_stats.asp to mirror the %'s better.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...