1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Open multiple chrome browsers all with different unique IP addresses?

Discussion in 'General Programming Chat' started by jasondenzer, Jul 5, 2016.

  1. jasondenzer

    jasondenzer Newbie

    Joined:
    Nov 11, 2015
    Messages:
    43
    Likes Received:
    2
    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.
     
  2. kittykut

    kittykut Jr. VIP Jr. VIP

    Joined:
    Feb 9, 2016
    Messages:
    510
    Likes Received:
    223
    Gender:
    Male
    Location:
    localhost
    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.
     
  3. MuayThai

    MuayThai Jr. VIP Jr. VIP

    Joined:
    Aug 25, 2015
    Messages:
    568
    Likes Received:
    173
    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.
     
  4. Racerz

    Racerz Jr. VIP Jr. VIP

    Joined:
    Dec 27, 2014
    Messages:
    100
    Likes Received:
    26
    Gender:
    Male
    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 :)
     
  5. phr0zt

    phr0zt Jr. VIP Jr. VIP

    Joined:
    Jun 30, 2007
    Messages:
    488
    Likes Received:
    202
    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) .
     
  6. cloaking

    cloaking Registered Member

    Joined:
    Aug 21, 2015
    Messages:
    94
    Likes Received:
    31
    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.
     
  7. jasondenzer

    jasondenzer Newbie

    Joined:
    Nov 11, 2015
    Messages:
    43
    Likes Received:
    2
    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?
     
  8. cloaking

    cloaking Registered Member

    Joined:
    Aug 21, 2015
    Messages:
    94
    Likes Received:
    31
    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. ;)
     
  9. jasondenzer

    jasondenzer Newbie

    Joined:
    Nov 11, 2015
    Messages:
    43
    Likes Received:
    2
    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)?
     
  10. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    6,954
    Likes Received:
    7,985
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    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.
     
  11. pierz

    pierz Registered Member

    Joined:
    Nov 9, 2009
    Messages:
    58
    Likes Received:
    64
    Location:
    France
    Home Page:
    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...
     
  12. cloaking

    cloaking Registered Member

    Joined:
    Aug 21, 2015
    Messages:
    94
    Likes Received:
    31
    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.
     
  13. coitza

    coitza Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 26, 2007
    Messages:
    2,686
    Likes Received:
    696
    Occupation:
    freelancer
    Home Page:
    you can, you will need some coding skills though, and try chromium ,it's what's chrome is base on.
     
  14. jasondenzer

    jasondenzer Newbie

    Joined:
    Nov 11, 2015
    Messages:
    43
    Likes Received:
    2
    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.
     
  15. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    6,954
    Likes Received:
    7,985
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    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
     
  16. superindian

    superindian BANNED BANNED

    Joined:
    Jun 28, 2016
    Messages:
    79
    Likes Received:
    4
    Gender:
    Male
    why dont use multiple chrome profiles?
     
  17. Mathanaut

    Mathanaut Newbie

    Joined:
    Aug 19, 2016
    Messages:
    11
    Likes Received:
    0
    Gender:
    Male
    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
     
  18. Mathanaut

    Mathanaut Newbie

    Joined:
    Aug 19, 2016
    Messages:
    11
    Likes Received:
    0
    Gender:
    Male
    Proxychains is a lot of Linux standard repos but it's open source, you can download it here http://proxychains.sourceforge.net
     
  19. BloodyNinja

    BloodyNinja Power Member

    Joined:
    Oct 28, 2013
    Messages:
    583
    Likes Received:
    547
    Location:
    Deeptown
    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.
     
  20. Mathanaut

    Mathanaut Newbie

    Joined:
    Aug 19, 2016
    Messages:
    11
    Likes Received:
    0
    Gender:
    Male
    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