Free Proxy Rotator - Complete with Code Tutorial and Working Product

in #blog4 years ago

freeProxyRotator

The code lives here, git clone this directory or use GitHub interface to download .zip: https://github.com/DunnCreativeSS/freeProxyRotator/

See video of me detailing how to write this app from start to finish here: https://lbry.tv/Free_Proxy_Rotator

Use

  1. npm i proxy-lists request-promise socks-proxy-agent
  2. Change this text: /home/jarettrsdunn/testnet-inter-exchange-volume-sma-crosses-trader-on-bitmex-/ to your webserver root WWW directory (usually /var/www/html on Linux).
  3. node proxies.js - this cannot be run as root. It also needs access to your webserver or a directory on it.
  4. Wait a little while, until there's output from the node file into terminal.
  5. DuckDuckGo search how to load a .PAC file into your favorite browser to rotate your proxies for you according to PAC rules. Otherwise, watch the video! I go over how to configure it in Chrome/Brave without need for an extension.
  6. Your PAC address is (ipOrDomainOrLocalhost)/proxies.PAC.
  7. So long as the node app is running, your free proxies will update in realtime. It'll keep testing them to see which are working, and should (for the most part) work to secure your browsing via SOCKS4/SOCKS5.

Check

This probably won't update all that often, but it's a good sample of what a PAC would look like:

http://jare.cloud/proxies/proxies.PAC

Troubleshooting

  1. sudo mkdir /var/www/html/proxies
  2. sudo chmod 777 /var/www/html/proxies
  3. change the path at the bottom of the proxies.js to /var/www/html/proxies/proxies.PAC
  4. your PAC now lives on (ipOrDomainOrLocalhost)/proxies/proxies.PAC.

Coin Marketplace

STEEM 0.21
TRX 0.13
JST 0.030
BTC 66917.83
ETH 3499.90
USDT 1.00
SBD 2.89