Is it worth it to dig in this direction? On the site protection-screening, which does not allow to frequently connect to servers, access is temporarily blocked. I tried to slip different user agents, but apparently still banyat by IP. What can be done?

1 answer 1

To request from a different IP address, you can use a proxy server.

Document doc = Jsoup .connect(request) .proxy("<имя хоста прокси>", <номер порта прокси>) .userAgent("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)") .timeout(5000).get(); 
  • Ie can I specify random ip? :) - Flippy
  • @Flippy In general, not every ip hosts is available on the network and a proxy server is not running on every host. - Alex78191
  • @Flippy proxy list to google. - Alex78191