Ask HN: How to prevent unwanted scraping
1–8 of 8 posts
Re: Ask HN: How to prevent unwanted scraping
#2No, I take that back. The worst case scenario is hiring a team of people in some low-wage country to manually go through the site to extract the information.
How do you prevent those cases? I think the most you can do is throttle based on a mixture of login account and request IP address.
That said, the first step is to develop a threat model. You need to get an idea of why would people want to scrape your site, the incentive for them to do so, and the effect on your site and business if your data is scraped.
Re: Ask HN: How to prevent unwanted scraping
#3The ONLY way is to as suggested throttle based on IP address and X-Forwarded For.
Re: Ask HN: How to prevent unwanted scraping
#4I would suggest staying away from using JS as it affects genuine users as well (e.g. those who use screen readers).
Re: Ask HN: How to prevent unwanted scraping
#5Re: Ask HN: How to prevent unwanted scraping
#6Re: Ask HN: How to prevent unwanted scraping
#7Outside of preventing scraping, both of these ideas are likely to be seen as stupid.
Re: Ask HN: How to prevent unwanted scraping
#8Use Flash or render your content as images. Neither of them are 100% locked down but its going to give anyone writing a scraper a run for their money. Outside of preventing scraping, both of these ideas are likely to be seen as stupid.