Jump to content
UBot Underground

How To Rotate Proxies On A Bot. Can We Do That?


Recommended Posts

Is it possible to build a bot that would automatically rotate proxies after finishing a task? 

 

 

I know the bots are meant to work with the internet, but is there a way for the bot to change his own settings? such as rotating proxies? 

Link to post
Share on other sites

Is it possible to build a bot that would automatically rotate proxies after finishing a task? 

 

 

I know the bots are meant to work with the internet, but is there a way for the bot to change his own settings? such as rotating proxies? 

 

Grab a list from a file, load it into a list and then change them each time you run through whatever loop you are running. 

 

ui open file("Proxy List",#proxylist)
add list to list(%proxies,$list from file(#proxylist),"Delete","Global")
change proxy($random list item(%proxies))
Link to post
Share on other sites

You need to define what a task is ... if it's just to the end of a loop, then it's simple. But sometimes you want the loop to run X times before you switch proxy.

The way I have implemented such a case is by using 2 counters and a variable for counts between proxy shift.

 

First I set:

 

counter = 0

current_count = 0

shift_count = 20 (number of loops between proxy shift)

 

on each loop I increment counter. Then I have some logic that says, if counter > current_count + shift_count, then change proxy and set current_count = counter. When I have used all proxies I reset the counters and start again. 

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...