frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

4•pera•1h ago
At the beginning of the year I decided to set up a scraping and LLM honeypot on one of my personal websites which included a fake git repo with code containing fake HTTP endpoints. The address to this repo was hidden in a public page inside a comment.

About three weeks ago IP addresses from Amazon Searchbot attempted to make requests to the fake endpoints included inside a shell script.

My robots.txt explicitly includes Amazonbot.

I am honestly surprised that this is coming from Amazon. Is this kind of behavior legal?

Comments

KellyCriterion•1h ago
Ah, if its only Amazon, then you are in a good position :-))

I hosted a small website with some newfeeds and it got killed by all the AI scrapers in the end.

toomuchtodo•1h ago
Respecting robots.txt is not a legal obligation. If you don’t want the traffic, ban the offending IP block or ASN, or put the origin behind Cloudflare for their crawler blocker.

You could go down the rabbit hole and try to find someone at Amazon to tell their crawler to chill. Don’t expect success but would make a fun blog post.

https://www.cloudflare.com/learning/ai/how-to-block-ai-crawl...

pera•52m ago
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
toomuchtodo•49m ago
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.

Bender•36m ago
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" \
     --referer https://ec2.amazon.com/ \
     -o /dev/shm/aws.json \
     --url "https://ip-ranges.amazonaws.com/ip-ranges.json"
    grep ip_prefix /dev/shm/aws.json | awk -F "\"" '{print $4}' | sort -n | uniq
    rm -f /dev/shm/aws.json;
    };
Make sure that gives you CIDR blocks, then add it to a script and use a for loop to

    for AWS in $(fetch_aws);do ip route add blackhole "${AWS}" 2>/dev/null

Google and Cloudflare if you need them:

    get_google()
    {
    for line in $(dig +short txt _cloud-netblocks.googleusercontent.com | tr " " "\n" | grep include | cut -f 2 -d :)                                                           
    do                                                                                                                                                                          
            dig +short txt "${line}"                                                                                                                                            
    done | tr " " "\n" | grep ip4 | cut -f 2 -d : | sort -n | uniq
    }
    
    get_cloudflare()
    {
    curl -A Mozilla "https://api.cloudflare.com/local-ip-ranges.csv"|grep -Ev "::|/32"|awk -F "," '{print $1}'|sort | uniq
    }
This assumes you have no need to connect to or get connections from Amazon on your web server. If your server is an instance in Amazon that will break DNS resolution unless you are using something outside of AWS for DNS. The gateway should still work just fine. Obviously test from an out of band console if that is an option. This is easier to maintain if you remove DNS records for IPv6 and eventually disable IPv6 listeners.

If you paste a couple of lines of the bots from your access logs I can offer more suggestions in the event they try from outside of Amazon.

If you want to have some fun, add a hidden link only the bot will see that points to http://cpanel.yourdomain.tld/ after adding a DNS record for cpanel that points to 169.254.169.254 so they start scraping the AWS cloud-init IP.

Cookware Got Worse on Purpose: Who Owns Pyrex and All-Clad Now

https://www.worseonpurpose.com/p/your-cookware-got-worse-on-purpose
2•xbryanx•40s ago•0 comments

"AI Brendans" or "Virtual Brendans" (2025)

https://www.brendangregg.com/blog/2025-11-28/ai-virtual-brendans.html
1•Jimmc414•1m ago•0 comments

Cracking under pressure: silicon fractures on ATLAS strip tracker petals

https://arxiv.org/abs/2607.25080
2•Jimmc414•1m ago•0 comments

Show HN: Crew, a local collaborative (people and agents) IDE

https://github.com/JamelHammoud/crew
1•jamelhammoud•1m ago•0 comments

Fools and Dreamers [video]

https://www.youtube.com/watch?v=3VZSJKbzyMc
1•pvaldes•2m ago•0 comments

My Tests Were Green. My Verification Tool Wasn't

https://igel-data.com/blog/verification-found-two-bugs/
1•yito88•5m ago•0 comments

A functional hypothesis for the Roman dodecahedron, with measured aperture data

https://zenodo.org/records/21744442
1•DoDecaHeJon•7m ago•0 comments

Show HN: Open OneNote Viewer in Rust

https://github.com/emsi/OneNoteViewer
2•emsi•10m ago•0 comments

Top amputation surgeon had own legs removed due to fetish. Were patients safe?

https://www.theguardian.com/uk-news/2026/aug/01/neil-hopper-surgeon-amputated-legs-fetish-extreme...
12•bookofjoe•12m ago•0 comments

Restoring your suspended Instagram account (by emailing your Congressman) (2024)

https://diamondsinthelibrary.com/instagram-permanently-suspended/
2•fursgonemild•12m ago•1 comments

Dear Alpha School: I Hope You're Right

https://www.aei.org/commentary/dear-alpha-school-i-hope-youre-right/
3•paulpauper•14m ago•0 comments

All in Your Head Excerpt: Psychiatry and the Isolated Demand for Rigor

https://freddiedeboer.substack.com/p/all-in-your-head-excerpt-psychiatry
2•paulpauper•14m ago•0 comments

CannonSmash-web

https://jgbrwn.itch.io/cannonsmash-web
2•indigodaddy•22m ago•0 comments

But can your calculator run Linux?

https://raymii.org/s/articles/But_can_your_calculator_run_Linux.html
2•jandeboevrie•23m ago•0 comments

Reclaim – Resume tailoring that flags adjacent skills instead of keywordstuffing

https://www.reclaim.careers/
2•Adoomah•24m ago•0 comments

Take More Screenshots (2022)

https://alexwlchan.net/2022/screenshots/
2•downbad_•27m ago•0 comments

Google News is just Forrest Gump's shrimp boat now

https://elgan.com/google-news-is-just-forrest-gumps-shrimp-boat-now
22•mikelgan•28m ago•9 comments

Which web browser has no AI?

5•lilerjee•29m ago•6 comments

EU accuses Temu of hindering raid in Ireland

https://www.rte.ie/news/business/2026/0731/1585977-temu-dublin/
3•austinallegro•33m ago•0 comments

The Index – a hand-checked catalog of AI tools

https://theindex.agnissanisaac.com/
2•Code_A-Z•34m ago•0 comments

AI #179 Part 2: Hearing the Fire Alarm

https://thezvi.substack.com/p/ai-179-part-2-hearing-the-fire-alarm
3•paulpauper•35m ago•0 comments

Moiré Pattern

https://en.wikipedia.org/wiki/Moir%C3%A9_pattern
2•petethomas•40m ago•0 comments

Jacques Vallée Spent 70 Years Investigating UFOs. Mystery Is Bigger Than Aliens

https://rmmclaren.substack.com/p/jacques-vallee-spent-70-years-investigating
4•handfuloflight•40m ago•3 comments

Show HN: Unified API for wearable and health data at 1/25th of Terra's price

https://stridee.fit/developer
2•alvaromolina0•42m ago•0 comments

Linux 7.3 to Allow Tuning AMD P-State Dynamic EPP with per CPU Core Granularity

https://www.phoronix.com/news/Linux-7.3-AMD-Per-Core-Dynamic
2•Bender•44m ago•0 comments

Show HN: Posecode inspectable human movement as text

https://www.posecode.org/play
2•brnbrn•46m ago•0 comments

Show HN AI Data Center Alert

https://aidatacenterimpact.com/
3•studsnchayns•49m ago•0 comments

Get ready to flee, Americans in ten countries warned

https://www.dailymail.com/news/article-16021741/flee-Americans-nine-countries-US-embassies-Iran-w...
3•Bender•49m ago•4 comments

Charities remain locked out of CAF Bank online accounts

https://www.theregister.com/security/2026/07/31/charities-remain-locked-out-of-caf-bank-online-ac...
2•Bender•53m ago•0 comments

Kun's Pi Agent Config

https://blog.kunchenguid.com/p/kuns-pi-agent-config
2•handfuloflight•56m ago•0 comments