Open multiple chrome browsers all with different unique IP addresses?

jasondenzer

Power Member
Joined
Nov 11, 2015
Messages
644
Reaction score
215
Hi programmers!

I was wondering, is it possible to programmatically make a program that will open up a lot of google chrome browsers (then perform some procedure such as liking your own facebook page)? I know that would be possible but what about setting every single chrome browser and account as a "unique IP address" each? Is that possible to do?

I want to make a Facebook Like bot but I want to protect my IP addresses of each account I'm going to use.
 
You would have to open the browsers one at a time. I do not think that there is a way to have multiple open with different IP. Even if you did, having 100 likes to a post all at the exact same time is very suspicious so that makes it useless anyways.
 
Multiple Chrome with "unique IP address" each? I hardly think it's possible. To switch proxies fast, try using FoxyProxy plugin, it might be of use.
 
Well never heard of concepts like that.
But since virtualization is bit slimier type of concept i don't know your concept might work .
All the best for your project :)
 
You could build and run a ZennoPoster bot which would handle proxies/cookie/cache issues for you (or maybe UBot, though I've never used it so I'm not sure) .
 
Out of curiosity, why do you want to use Chrome? You could very well use a headless browser and set the user agent to Chrome's.

If it must be Chrome, you can use Selenium with ChromeDriver to achieve this. By default, ChromeDriver creates a new temporary profile for each session so there wouldn't be anything preserved between them. You can also set the HTTP proxy as a desired capability from the documentation:

Code:
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
// Add the WebDriver proxy capability.
Proxy proxy = new Proxy();
proxy.setHttpProxy("myhttpproxy:3337");
capabilities.setCapability("proxy", proxy);

// Add ChromeDriver-specific capabilities through ChromeOptions.
ChromeOptions options = new ChromeOptions();
options.addExtensions(new File("/path/to/extension.crx"));
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
ChromeDriver driver = new ChromeDriver(capabilities);

I believe the same can be achieved with iMacros but only with Internet Explorer and FireFox. iMacros doesn't yet have the capability to set the proxy for Chrome.
 
Out of curiosity, why do you want to use Chrome? You could very well use a headless browser and set the user agent to Chrome's.

If it must be Chrome, you can use Selenium with ChromeDriver to achieve this. By default, ChromeDriver creates a new temporary profile for each session so there wouldn't be anything preserved between them. You can also set the HTTP proxy as a desired capability from the documentation:

Code:
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
// Add the WebDriver proxy capability.
Proxy proxy = new Proxy();
proxy.setHttpProxy("myhttpproxy:3337");
capabilities.setCapability("proxy", proxy);

// Add ChromeDriver-specific capabilities through ChromeOptions.
ChromeOptions options = new ChromeOptions();
options.addExtensions(new File("/path/to/extension.crx"));
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
ChromeDriver driver = new ChromeDriver(capabilities);

I believe the same can be achieved with iMacros but only with Internet Explorer and FireFox. iMacros doesn't yet have the capability to set the proxy for Chrome.

Wait you can seriously make multiple IP addresses with iMacros? I don't mind using Firefox to be honest but used to script some iMacros account bots before. Does it really work to open multiple IP address accounts?
 
Wait you can seriously make multiple IP addresses with iMacros? I don't mind using Firefox to be honest but used to script some iMacros account bots before. Does it really work to open multiple IP address accounts?
Yes, here is confirmation from their documentation. You can also find a tutorial on this here.

I figure you already know how to set the proxy, but here's the documentation for that too. ;)
 
Yes, here is confirmation from their documentation. You can also find a tutorial on this here.

I figure you already know how to set the proxy, but here's the documentation for that too. ;)

To be honest, while I did do some iMacros, I never actually set up proxies. So basically what I do is just create a new Proxy object and then run my script of whatever I want to do right? (Login, then press the like button then log out each loop)?
 
To be honest, while I did do some iMacros, I never actually set up proxies. So basically what I do is just create a new Proxy object and then run my script of whatever I want to do right? (Login, then press the like button then log out each loop)?
Yes, pretty much. You can input the proxies in a csv file what you can use as datasource, with using the "CLEAR" command, iMacros will clear the cookies, so maybe it's a good idea to use it, if you want to login to the same site with different accounts.

This is a code for using proxies from a .csv while looping:
HTML:
VERSION BUILD=8961227 RECORDER=FX
TAB T=1
TAB CLOSEALLOTHERS
SET !ERRORIGNORE NO
SET !DATASOURCE_DELIMITER ;
SET !DATASOURCE c:\proxy.csv
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
CLEAR
PROXY ADDRESS={{!COL1}}:{{!COL2}}
SET !ENCRYPTION NO
ONLOGIN USER={{!COL3}} PASSWORD={{!COL4}}

You need to input the proxies like this, one per line:
ip;port;username;password

This is for private proxies with username : pass auth. Obviously if you use proxies with only ip auth or public proxies, the last two line of the code is not needed.
 
Using selenium for automation like @cloaking is suggesting is the best answer.

I don't know for imacros, but don't forget you can have multiple chrome profile, and specify a different proxy for each profile...
 
To be honest, while I did do some iMacros, I never actually set up proxies. So basically what I do is just create a new Proxy object and then run my script of whatever I want to do right? (Login, then press the like button then log out each loop)?

The proxy needs to be set by the same script that controls the later actions. Once a script ends, iMacros removes the proxy settings too. If you're running a different script subsequently then, the proxy would no longer be set. I don't believe this is mentioned anywhere in iMacros' documentation, but it's important to note that the proxy settings aren't preserved after the script setting it terminates.

@HoNeYBiRD did a great job explaining how to set the proxies.
 
you can, you will need some coding skills though, and try chromium ,it's what's chrome is base on.
 
Yes, pretty much. You can input the proxies in a csv file what you can use as datasource, with using the "CLEAR" command, iMacros will clear the cookies, so maybe it's a good idea to use it, if you want to login to the same site with different accounts.

This is a code for using proxies from a .csv while looping:
HTML:
VERSION BUILD=8961227 RECORDER=FX
TAB T=1
TAB CLOSEALLOTHERS
SET !ERRORIGNORE NO
SET !DATASOURCE_DELIMITER ;
SET !DATASOURCE c:\proxy.csv
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
CLEAR
PROXY ADDRESS={{!COL1}}:{{!COL2}}
SET !ENCRYPTION NO
ONLOGIN USER={{!COL3}} PASSWORD={{!COL4}}

You need to input the proxies like this, one per line:
ip;port;username;password

This is for private proxies with username : pass auth. Obviously if you use proxies with only ip auth or public proxies, the last two line of the code is not needed.

So Loop 1 is the loop that has the functions of logging in and pressing the like button then logging out? I just set the variables first then I run the loop. I should prob use a for loop for this.

Hmm, I don't know much about proxies but where do you typically find your proxy lists? Do you just google the top results or is there a secret list in BHW?

The proxy needs to be set by the same script that controls the later actions. Once a script ends, iMacros removes the proxy settings too. If you're running a different script subsequently then, the proxy would no longer be set. I don't believe this is mentioned anywhere in iMacros' documentation, but it's important to note that the proxy settings aren't preserved after the script setting it terminates.

@HoNeYBiRD did a great job explaining how to set the proxies.

But I log out on my accounts every time I need to end the script so it wouldn't matter right? I can always re-run the script to set the proxy.
 
So Loop 1 is the loop that has the functions of logging in and pressing the like button then logging out? I just set the variables first then I run the loop. I should prob use a for loop for this.

Hmm, I don't know much about proxies but where do you typically find your proxy lists? Do you just google the top results or is there a secret list in BHW?



But I log out on my accounts every time I need to end the script so it wouldn't matter right? I can always re-run the script to set the proxy.
Yes, but you need to record that part yourself and add it to the macro below the code i posted. :) So the macro set the proxy before you login, like and log out. With the first loop you'd login to the first account, with the second you'd login to the second account and so on. You just need a datasource file with the accounts and loop through it similarly i explained it with the proxies above. Ideally you'd have a datasource file with the accounts and proxies together, so something like this:
fbusername;fbpassword;ip;port;username;password

You can find public proxy lists all over the place, even on BHW in the proxies section, but i wouldn't recommend those. Public proxies are slow, unreliable and abused to hell, so chances are that you will just kill your accs with them, if they work at all. Instead you should purchase private proxies.

I added the login part to the code, you just need to record the liking process now and add it below my code.
HTML:
VERSION BUILD=8961227 RECORDER=FX
TAB T=1
TAB CLOSEALLOTHERS
SET !ERRORIGNORE NO
SET !DATASOURCE_DELIMITER ;
SET !DATASOURCE c:\proxy.csv
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
CLEAR
PROXY ADDRESS={{!COL3}}:{{!COL4}}
SET !ENCRYPTION NO
ONLOGIN USER={{!COL5}} PASSWORD={{!COL6}}
URL GOTO=https://www.facebook.com/
TAG POS=1 TYPE=INPUT:EMAIL FORM=ID:login_form ATTR=ID:email CONTENT={{!COL1}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ID:login_form ATTR=ID:pass CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:login_form ATTR=ID:u_0_m
 
proxychains is used for this sort of thing but if I were you I'd download the tor browser or use a proxy network to send the http requests using a script of some sort
 
Proxychains is a lot of Linux standard repos but it's open source, you can download it here http://proxychains.sourceforge.net
 
It's not hard but different IP is absolutely NOT enough to stay under facebook's radars.
Multiloginapp does what you need while spoofing tons of parameters besides IP address.
You can either combine it with iMacros for automation or wait 1-1.5 months until automation API documentation gets released.
 
It's not hard but different IP is absolutely NOT enough to stay under facebook's radars.
https://multiloginapp.com/ does what you need while spoofing tons of parameters besides IP address.
You can either combine it with iMacros for automation or wait 1-1.5 months until automation API documentation gets released.
The detection isn't really as good as people usually think. If you use a proxy service that you pay for and have a legitimate user agent string in the header your usually fine
 
Back
Top