13 ms·
Cloudproxy – hide your scrapers IP behind the cloud
- pacifika 5y agoMaybe it’s a better idea to start or subscribe to an ethical scraping initiative with some user agent header that references some kind of policy and verifiable membership id
- intev 5y agoI think it's a pretty safe assumption that if everyone started scraping with certain headers almost every website will blanket block those headers.
- weird-eye-issue 5y agoNaive
- meltedcapacitor 5y agoThat's the existing default: if a service doesn't mind scraping, they need not take any countermeasure (other than simple rate limiting with a clear status code). Any site that does go beyond that is telling data thieves that they're not welcome.
- dzhiurgis 5y agoHiding behind any larger cloud or VPN looks futile. If there's one place to hide scraper nowadays it's Apple's iCloud+ or whatever stupid name they've picked - two proxies to mimic tor.
- ameshkov 5y agoIt’d be easier to use Cloudflare WARP command line client for the same purpose. Apple uses Cloudflare for their private relay so there’s a chance that these IPs won’t be blocked.
- fxtentacle 5y agoIronically, Cloudflare is selling both protection against scraping and tools to facilitate it.
- EveYoung 5y agoIf I remember correctly, Cloudflare WARP forwards your client IP in the header. So it probably won't be useful for scraping.
- gibson1 5y agoi tend to use tor network as a proxy which enables me to request a new ip whenever i need
- dorianmariefr 5y agoquite slow and often blacklisted (by Cloudflare for example)
- gibson1 5y agowith parallelization you can come up to speed - on big machine with several cores may be still cheaper than many cloud instances of course no option if your 'target' blocks tor ips
- aeyes 5y agoTor has a couple of hundred exit nodes and they are all on public lists, the Tor network is easy to identify and block. If you are in a position were you need a rotating list of proxy servers in the cloud to scrape, Tor is probably way too slow.
- tushar-r 5y agoThis is relatively easy to block, given that these companies publish their IP ranges. Similar to the Tor block, blocking "datacenter IP's" simply becomes the norm. This is why you have companies offering "resi's" or residential proxies to bypass such blocks for some years now.
- TheFreim 5y agoI heard a while back, on HN 8 I think, that a lot of residential proxies are computers that have been infected with malware. How true is that?
- robjan 5y agoThere have been a number of Chrome extensions which monetize by selling your bandwidth to provide this kind of service. Not ethical but probably not a compromise.
- oefrha 5y agoBrowser extensions, and VPNs. Notably, Luminati was allegedly selling HolaVPN users as exit nodes. https://www.trendmicro.com/vinfo/hk-en/security/news/cybercrime-and-digital-threats/shining-a-light-on-the-risks-of-holavpn-and-luminati https://www.trendmicro.com/vinfo/hk-en/security/news/cybercr...
- dstick 5y agoThis is not alledgedly but very much true. I was in the proxy business for a few years and in talks with the Luminati people to white-label their product for a very specific type of proxy. It’s such a weird field to be in. It’s not illegal by definition of law, but you’re definitely in shady territory, with most of the customers being of the “get rich quick” persuasion. Or at the very least trying to cut corners. One way or another, they were not playing by the rules ;-)
- Scoundreller 5y agoAlso the economic basis of a lot of "cell-phone farming".
- _whm1 5y agoThis is easy to block since all IPs of these cloud machines will belong to the same ASN. Advanced scrapers mostly use residential IPs nowadays, but there are some services to detect those too, e.g. https://focsec.com/ https://focsec.com/
- holstvoogd 5y agoIf your scraper behaves, perhaps it would not be blocked…
- r_singh 5y agoNot really, most popular websites block any requests coming from curl
- TheFreim 5y agoIs it ethical to scrape things, trying to bypass prevention methods, against the expressed wishes of a site?
- holstvoogd 5y agoAs someone who has to deal with a lot of bots, bot networks and other weird scraper apps people use: The biggest issue is that most of these tools are not behaved very well. This tool is clearly designed to circumvent protections, rate limits mostly, against scraping that might be essential to keep things running. They follow links that are explicitly marked as do not follow, they do not even try to limit their rate, they spoof their user agent strings etc etc. These bots cause real problems and cost real money. I do not think that kind of misuse is ethical. In fact, using this tool to circumvent protections can turn your scraping into a DDOS attack, which I do not feel are ethical. If your bot behaves itself though, public information is public imo. Just don't take down websites, respect rate limits and do not follow 'no-follow' links. To give an idea of the size of the issue, we have websites for customers that have maybe 5 hits per minute from actual users. Then _suddenly_ you go to 500 hits/minute for a couple of hours, because some bot is trying to scrape a calendar and is now looking for events in 1850 or whatever. (Not the greatest software that these links are still there tbh, but that is out of my control.) Or another situation, not entirely related, but interesting i think: A few years back for days on end 80% of our total traffic came from random IPs across china & request could be traced through HTTP referrers where the 'user' had apparently opened a page in one province, then traveled to the other side of China and clicked a link 2 hours later. All these things are relatively easy to mitigate, but that doesn't make it ethical.
- wu_187 5y agoExactly. We'd get customers thats sites would drown in bot traffic because they pulled the same shit, changing user agents, different ips, etc. I had to build custom mod security rules to block the patterns these boys would pull. What's funny is that the bots would have a site where you could control the crawl rates but it's just a placebo. They would crawl even if you requested them to stop. The issue with bots hosted on AWS or any cloud for that matter is that as a web host you can't just block the IPs because legitimate traffic comes from them in the form of CMS plugins, backups, etc.
- Havoc 5y agoNot following how this is helpful? From what I've seen the cloud IPs are the first to get blocked by anti-scraping tech. e.g. Built an amazon scraping thing at home. Worked fine. Deployed to cloud. Literally first request Amazon goes nope you're a bot
- popotamonga 5y agoI have my crawlers running on a 24/7 notebook at my house because of that. No blocks whatever rate i use. Deployed to digital ocean runs for 5 minutes then blocked forever.
- trutannus 5y agoEssentially. All you're doing here is making it easy for the target sites to mass block a bunch of scrapers. Running it off your device is generally better.
- cpach 5y agoAnother idea: Buying an LTE modem/router. That IP address would probably be harder to block.
- nullify88 5y agoI agree, it would be impossible for sites to block individual customers behind carrier grade NAT without blocking other customers sharing that NAT endpoint. Of course, the websites can raise an abuse complaint with the ISP, and they may take further action.
- jimmySixDOF 5y agoIn a related note the US Supreme Court just 10 days ago vacated a previous ruling against LinkedIn blocking a Scraper service. So the issue is back to the 9th circuit for a new determination that might, if reversed, change the landscape for Cloudflare and anyone else these operators try to sit behind. https://www.scotusblog.com/case-files/cases/linkedin-corp-v-hiq-labs-inc/ https://www.scotusblog.com/case-files/cases/linkedin-corp-v-...
- cortesoft 5y agoI don’t think the Supreme Court ruled they can’t block them with technical means, just that they can’t sue them if they get around the block.
- jimmySixDOF 5y agoYou are basically correct although it seems to hinge on the definition of an authorized use(r) and also they only vacated the appeals court decision so Microsoft will continue with the same case now in the lower court. There is a good discussion of the more nuanced situation here: https://news.ycombinator.com/item?id=27510103 https://news.ycombinator.com/item?id=27510103
- superasn 5y agoEven though I only do it for hobby projects, crawling pages is becoming increasingly difficult unless you are a big player like Google or Microsoft with a whitelisted IP range. I've had some success in scraping lately with a similar project called FlareSolverr(1). It's purpose it to get you access to sites which won't let you crawl unless you are using a real browser (e.g amazon, instagram). It doesn't hide your IP but uses puppeteer with stealth mode to get you access to otherwise restricted urls. (1) https://github.com/FlareSolverr/FlareSolverr https://github.com/FlareSolverr/FlareSolverr
- temp8964 5y agoDoesn't Amazon have an API? Why everyone wants to scrape Amazon? Honest question.
- helsinkiandrew 5y agoYes, all their product data is available for affiliates: https://webservices.amazon.com/paapi5/documentation/ https://webservices.amazon.com/paapi5/documentation/
- temp8964 5y agoAlso, the document says "Product Advertising API is free". I am confused.
- blantonl 5y agoUnpopular opinion around here, but scraping Web pages is often unethical, and the scourge of many Web developers and infrastructure managers. For Christ sakes people, develop your own products! If you have to develop and use a cloud based tool to "get around" businesses blocking your scraping app, maybe reevaluate your business and life choices.
- arsome 5y agoSure, let me just develop my own monopoly on all real estate information.
- blantonl 5y agono business is under any obligation to provide you access to their data and services for you to build a business on top of. If you feel that the owner of data or services maintains an illegal monopoly over that data, work to lobby government to resolve that issue. It's not your individual place to unilaterally decide that a business owes you anything other than what is described in their terms and conditions of use. Period.
- iakh 5y agoOr if you don't want info public, don't make it public then complain people are using it. If you want to stop scrapers, offer an api. Nobody scrapes by choice if there's a supported alternative to getting the same data.
- arsome 5y ago> no business is under any obligation to provide you access to their data and services for you to build a business on top of. I mean, they're the ones who gave it to me, I'm just using it. Not my problem if they don't like it. I never saw any terms and conditions when my browser loaded the page, no reason I'm going to go looking for them before I scrape it. I have just as much right to access it as my web browser does or my phone does. I'm not saying they owe me anything, they're offering it to me, I'm just taking it.
- dmw_ng 5y agoI have a webshare.io subscription for stuff like this, it's something extremely negligible like $3/mo. for 100 addresses and some liberal bandwidth cap. Always happy to self-build, but sometimes it just doesn't make any sense
- deleted 5y ago[deleted]
- ericcholis 5y agohttps://www.scrapingbee.com/ https://www.scrapingbee.com/ does this as a service + a headless browser.
- stephen123 5y agoI proxy through an aws lambda. Works well for my lowish rate project. Does anyone else do this?
- whalesalad 5y agoI’ve wanted to build something similar with Lambda. I ran an experiment recently and there is pretty good distribution of IP space on AWS Lambda… you could fan out to 20+ pretty easily.
- dawnerd 5y agoI’ve been using lambda to scrape an api that technically is only available in their app. The api uses aws so running the scraper on lamda seems to have hidden it well enough. Doubt they want to start blocking amazon ips.
- banana_giraffe 5y agoI indirectly worked on a project for a company trying to create an in house web indexer to track user generated content to find trends. Like 80% of the work was making it look like the web scrapers weren't coming from an IP in the cloud. The IPs for the different cloud providers are super well known, and the big guys either put you behind captcha hell, or just flat out block you if you're coming from one of them.
- raxi 5y agoWhen you order/cancel DigitalOcean instances, the IPs of new instances will be reused from recently cancelled. So, you will not get many IPs this way.
- judge2020 5y agoI wonder if there's some internal APIs the cloud providers share to let them know when customers release ownership of an IP so that its reputation can be reset.
- gizdan 5y agoSeems more economical to attach multiple IPs to a single instance and route traffic accordingly as opposed to spinning up multiple instances.
- aaadult 5y agoA similar approach I use is google cloud sdk + ssh socks5 proxy. Create some preemptible instances on google cloud first, then connect them with commands like "gcloud compute ssh instances-name -- -D localhost:port". And the last step is to connect scrapper to those proxy ports over localhost.
- claffin 5y agoHi all - I'm the creator of CloudProxy and only just came across this. Appreciate all the comments and stars (over 600 in less than two days). All the points shared are valid, you won't get the same effectiveness as residential IPs and may face issues with the proxies being blocked. That being said this solution, if you find they're not being blocked, is a lot cheaper and very quick. I've used it to scrape some major websites extensively without issue. I created it for my own use but then decided to open source it. Just hope you guys find it useful!