Live data from Hacker News

Ban me at the IP level if you don't like me

boston.conman.org

451–460 of 516 posts

Re: Ban me at the IP level if you don't like me

#451
post #65

Earlier quoted context omitted.

If you are traveling without a vpn then you are asking for trouble

Yes, and I’m arguing that that’s due to companies engaging in silly pseudo-security. I wish that would stop.

so you just raw dog hotel and conference wifi?

Re: Ban me at the IP level if you don't like me

#452
post #134

I think a lot of really smart people are letting themselves get taken for a ride by the web scraping thing. Unless the bot activity is legitimately hammering your site and causing issues (not saying this isn't happening in some cases), then this mostly amounts to an ideological game of capture the flag. The difference being that you'll never find their flag. The only thing you win by playing is lost time. The best wa…

My friend has a small public gitea instance, only use by him a a few friends. He's getting thousounds of requests an hour from bots. I'm sorry but even if it does not impact his service, at the very least it feels like harassment

Thousands per hour is 0.3-3 requests per second, which is... not a lot? I host a personal website and it got much more noise before LLMs were even a thing.

Re: Ban me at the IP level if you don't like me

#453

This is a problem. There's a recent phishing campaign with sites hosted by Cloudflare and spam sent through either "noobtech.in" (103.173.40.0/24) or through "worldhost.group" (many, many networks). "noobtech.in" has no web site, can't accept abuse complaints (their email has spam filters), and they don't respond at all to email asking them for better communication methods. The phishing domains have "mail.(phishing d…

If you block them and they're legitimate, they'll surely find a way to actually start a dialogue. If that feels too harsh you could also start serving captchas and tarpits, but I'm unsure if it's worth actually bothering with.

Re: Ban me at the IP level if you don't like me

#454
post #31

We solved a lot of our problems by blocking all Chinese ASNs. Admittedly, not the friendliest solution, but there were so many issues originating from Chinese clients that it was easier to just ban the entire country. It's not like we can capitalize on commerce in China anyway, so I think it's a fairly pragmatic approach.

Why stop there? Just block all non-US IPs! If it works for my health insurance company, essentially all streaming services (including not even being able to cancel service from abroad), and many banks, it’ll work for you as well. Surely bad actors wouldn’t use VPNs or botnets, and your customers never travel abroad?

> Surely bad actors wouldn’t use VPNs or botnets, and your customers never travel abroad?

They usually don't bother. Plus it's easier to take action against malicious traffic within your own country or general jurisdiction.

Re: Ban me at the IP level if you don't like me

#455

Earlier quoted context omitted.

Yes, and this makes ip banning have false positives. But ultimately it's worth it, you are responsible for your neighbours.

> [Y]ou are responsible for [how] your neighbours [use the Internet]. Nope. I'm very much not responsible for snooping on my neighbor's private communications. If anyone is responsible for doing any sort of abuse monitoring, it is the ISP chosen by my neighbor.

If your CGNAT IP gets blocked then you are responsible for not complaining to your ISP that they're still doing CGNAT and that someone is being abusive within their network.

Re: Ban me at the IP level if you don't like me

#456
post #83

Wouldn't it be better, if there's an easy way, to just feed such bots shit data instead of blocking them. I know it's easier to block and saves compute and bandwidth, but perhaps feeding them shit data at scale would be a much better longer term solution.

if ($http_user_agent ~* "BadBot") { limit_rate 1k; default_type application/octet-stream; proxy_buffering off; alias /dev/zero; return 200; }

I recommend you use gzip_static and serve a zip-bomb instead. Frees up the connection sooner and probably causes bad crawlers to exhaust their resources.

Re: Ban me at the IP level if you don't like me

#457
post #44

Earlier quoted context omitted.

No, it's really the same thing with just different (and more structured) prefix lengths. In IPv4 you usually block a single /32 address first, then a /24 block, etc. In IPv6 you start with a single /128 address, a single LAN is /64, an entire site is usually /56 (residential) or /48 (company), etc.

Note that for the sake of blocking internet clients, there's no point blocking a /128. Just start at /64. Blocking a /128 is basically useless because of SLAAC.

Some cloud providers only give out /128 so it's fair to start blocking just a /128 at first.

Re: Ban me at the IP level if you don't like me

#458

I would never have considered this, but someone on HN pointed out that web user agents work like this. Servers send ads and there is no way for them to enforce that browsers render the ads and hide the content or whatever. The user agent is supposed to act for the user. "Your business model is not my problem", etc. Well, my user agents work for me, not for you - the server guy who is complaining about this and that.…

Well done on pointing out exactly what everyone here is saying in the most arrogant way possible. Also, well done on linking to your own comment where people explain this to you. The problem is that there is no way to "block me if you don't want me". That's the entire issue. The methods these scrapers use mean it's nigh on impossible to block them.

So far it's actually not. Though it is getting harder.

I suspect we'll get integrity attestation or tokens before it becomes an unsurmountable problem to block bots.

Re: Ban me at the IP level if you don't like me

#459

Earlier quoted context omitted.

Doesn’t that tie up a socket on the server similarly to how a keepalive would on the bot user end?

I don't think so. The payload size of the bytes on the wire is small. This premise is all dependent on the .zip being crawled synchronously by the same thread/job making the request.

What if bots catch on to zip bombs, and just download them really slowly?

https://en.wikipedia.org/wiki/Zeno%27s_paradoxes#Dichotomy_p...

Re: Ban me at the IP level if you don't like me

#460

Earlier quoted context omitted.

It is funny how people immediately jump to conclusions, while I was merely pointing out an circular argument. People immediately think I am jumping to "aid one side". Shows much more about them than me, actually.

Nobody is jumping to any conclusions except you with this very comment. ;)

My conclusion is: People downvote, but why, when I am merely stating, that the reasoning is circular? Are they unable to get this simple fact? Or are they interpreting more into it, than there is? What is more likely? I choose to believe the second one.
Post reply on HN