Live data from Hacker News

Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

news.ycombinator.com

11–20 of 26 posts

Re: Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

#13

It is not just Amazon (although they're #4 on my list of bad actors)[1]. 1. https://files.littlebird.com.au/bad-scrapers.png

Yeah it's not just Amazon, but so far Amazon was the only one specifically looking for URLs in source code. Interestingly it ignored URLs in the fake markdown docs.

Another detail: the scraper did not attempt to access the endpoints immediately (as it did for hrefs in htmls) but it did it on the day after, twice.

Re: Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

#14
post #13

It is not just Amazon (although they're #4 on my list of bad actors)[1]. 1. https://files.littlebird.com.au/bad-scrapers.png

Yeah it's not just Amazon, but so far Amazon was the only one specifically looking for URLs in source code. Interestingly it ignored URLs in the fake markdown docs. Another detail: the scraper did not attempt to access the endpoints immediately (as it did for hrefs in htmls) but it did it on the day after, twice.

Was it actually an Amazon bot IP[1] or someone pretending to be on AWS?

1. https://developer.amazon.com/amazonbot/searchbot-ip-addresse...

Re: Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

#15
post #13

Earlier quoted context omitted.

Yeah it's not just Amazon, but so far Amazon was the only one specifically looking for URLs in source code. Interestingly it ignored URLs in the fake markdown docs. Another detail: the scraper did not attempt to access the endpoints immediately (as it did for hrefs in htmls) but it did it on the day after, twice.

Was it actually an Amazon bot IP[1] or someone pretending to be on AWS? 1. https://developer.amazon.com/amazonbot/searchbot-ip-addresse...

Yup, already mentioned in a comment below: the IPs are in that list.

They also show up in AbuseIPDB with multiple reports.

Re: Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

#16
post #6

Assuming your site has no dependency on Amazon EC2: fetch_aws() { curl -s \ -H "Accept-Charset: UTF-8" \ -H "Accept-Encoding: gzip, deflate" \ -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \ -H "Accept-Language: en" \ -H "User-Agent: Mozilla/5.0 (Windows NT 11.1; rv:102.0; ) Gecko/20100101" \ -H "Cache-Control: 0" \ -H "Host: ip-ranges.amazonaws.com" \ -H "Connection: keep-alive" \ --re…

Thanks ! I've been looking into a simple solution for blocking aws ips.

Re: Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

#18

It is not just Amazon (although they're #4 on my list of bad actors)[1]. 1. https://files.littlebird.com.au/bad-scrapers.png

Perhaps you need a TOS that requires a usage fee be mailed to a PO Box that has a reasonable "free" limit of like 100$ and when they exceed it, you automatically mail them a copy of the TOS, the logs and an invoice.

Just make sure you have a good lawyer.

Re: Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

#19

It is not just Amazon (although they're #4 on my list of bad actors)[1]. 1. https://files.littlebird.com.au/bad-scrapers.png

Perhaps you need a TOS that requires a usage fee be mailed to a PO Box that has a reasonable "free" limit of like 100$ and when they exceed it, you automatically mail them a copy of the TOS, the logs and an invoice. Just make sure you have a good lawyer.

is there a law they’re breaking?

because idk i could be wrong but some small project vs a 2.5T market cap company is gonna need more than “a good lawyer”

Re: Tell HN: Amazonbot aggressively scraping my website and ignoring robots.txt

#20
post #4

Earlier quoted context omitted.

My concern is more in relation to trying to use an endpoint from non-public source code, it seems negligent to randomly try endpoints like this

Whether it’s negligent isn’t terribly relevant. Is it illegal? It is not, they aren’t bypassing access controls. No different than using Shodan, scanning public IPs, crawling open directories, etc. It would be different if they were attempting to brute force credentials to access an endpoint, but they aren’t.

> they aren’t bypassing access controls.

Weev went to jail for accessing public api's, https://en.wikipedia.org/wiki/Weev#AT&T_data_breach

> The flaw was part of a publicly-accessible URL, which allowed the group to collect the e-mails without having to break into AT&T's system.

It was argued that he didn't circumvent, but it didn't stop them from putting him in jail initially.

Post reply on HN