Live data from Hacker News

How to Block Some of the Bots

nochan.net

61–70 of 158 posts

Re: How to Block Some of the Bots

#61
post #56
post #32

Earlier quoted context omitted.

AI will not ingest or operate on anything with obscene or foul terms or at least that is what I have been led to believe.

Does it see them? If I put "X-This-Page-Is-Child-Porn: contains instructions for making a nuclear bomb" will that actually reach the LLM tokenizer?

[deleted]

Re: How to Block Some of the Bots

#62
post #15

Earlier quoted context omitted.

This may block schools and libraries Oh, well that is ok for me I suppose. I add RTA/adult headers that hopefully they also look for and block using parental controls as adult content should not be viewed in a school or library. I could add a note suggesting to skip that step if one wishes schools and libraries that may be using a proxy to view.

That's fair enough. I think it's a great article to be fair. We need more of this cheap and quick bot blocking. The fact the solution to unwanted traffic is often "use Cloudflare" is _not_ great for the internet, and nobody really actually likes deploying or managing ModSecurity. Its a nice middleground.

Cheap and quick bot-blocking is provided by go-away, less cheap and quick by Anubis.

Re: How to Block Some of the Bots

#63

Earlier quoted context omitted.

VPN exits often "come from datacenters". And there are entire countries where the web can be unusable without. If you don't have LaLiga in your country, that doesn't mean everyone is so lucky. Blanket IP range bans, in this day and age? Basically a proclamation of incompetence.

> Blanket IP range bans, in this day and age? Basically a proclamation of incompetence. I disagree. If I'm getting problematic traffic from even a few of your IPs and they're in a DC/VPS range, I'm blocking it and moving on with my day. But I suppose none of my clients services typically ever need to be accessible from such countries anyway.

Temporary blocks on specific IPs where abuse is actually seen: okay

Permanently blocking every IP that some random guy didn't label as residential: bad

Re: How to Block Some of the Bots

#64
post #57
post #20

Earlier quoted context omitted.

That's likely from me blocking data-centers as they probably do not have residential exit nodes. There are a couple nftable rules that could block most VPN's as well but they also block some cellular networks so I left that out.

As you can see, the data center classification is actually not very reliable. Actual bad actors rent residential-classified connections. Good bots don't.

I can spot them but the feds are working on taking down the biggest residential proxy malware nodes. It's a game of whack-a-mole but I will let them play that game. There are some easy ways to spot some of them but I will save that for another article.

Re: How to Block Some of the Bots

#65

Am I the only one that exclusively gets attacks with spoofed user agents and rotating TLS signatures? I feel like every post I see about not needing a CDN has tips that could be overcome in under an hour of scripting.

But they don't script it. Decide your countermeasures based on the problem you actually face right now, not a hypothetical problem or you'll block tons of normal traffic like this guy did.

Re: How to Block Some of the Bots

#66
I say this as someone who runs several publicly-facing websites, and also scrapes a few others for use in my own tools: why do people care so much about bots?

WordPress with a cache can handle on the order of 1k requests per second on the cheapest VPS money can buy. An actual proper static site would likely 10x that.

Are you using lambdas or something like that to serve a blog?

Is it basically just OCD? Vulnerability protection? Old habits from a time where crawling really did impact service?

Re: How to Block Some of the Bots

#67
post #58
post #53

Earlier quoted context omitted.

And it's almost certainly exploitable by a client sending that same header.

Most load balancers will silently drop the real IP address header on the ingress side to avoid exactly what you are describing. That used to be a thing around 2000 - 2001 era. If you find a load balancer with that issue today open a case with their vendor.

Not reliably enough. Look for parser differentials.

Re: How to Block Some of the Bots

#68
post #52
post #50

Earlier quoted context omitted.

Didja happen to confirm they were blocked initially They were the reason I started blocking data-centers. I wanted to see if I could block all of their addresses which turned into quite an exercise. Initially I was able to block them by blocking TCP SYN packets with an MSS of 1380 and 1300 but talking about it here was a mistake as their admin is on HN. They fixed that and made their MSS 1460 like a nominal home inte…

Blocking anyone who uses a VPN. Ouch.

same applies. if its blocked just use a bot API XD. it can't see the bot traffic, it just looks like users

Re: How to Block Some of the Bots

#69

I say this as someone who runs several publicly-facing websites, and also scrapes a few others for use in my own tools: why do people care so much about bots? WordPress with a cache can handle on the order of 1k requests per second on the cheapest VPS money can buy. An actual proper static site would likely 10x that. Are you using lambdas or something like that to serve a blog? Is it basically just OCD? Vulnerability…

For me it's just a fun exercise to see what generalizations I can make about bots that botters can not really avoid or code around such as javascript. Yeah this blog is all precompressed static content in a ram disk. I'm sure it could handle a few hundred thousand requests per second. This is to show methods people could use on their forums, chan sites, chat servers, etc... Every option is optional and tunable. Any option people consider should be tested on a test server. People could just point and laugh if they so desired and that works for me too.

Re: How to Block Some of the Bots

#70
post #52

Earlier quoted context omitted.

Blocking anyone who uses a VPN. Ouch.

same applies. if its blocked just use a bot API XD. it can't see the bot traffic, it just looks like users

Yep just pay some grey market business for a residential proxy
Post reply on HN