by derefr · 4y ago · 0 comments
If there was a big list of all reallocatable / not-permanently-allocated IP ranges, I'd willingly — gleefully! — just dump it into Cloudflare as an IP blocklist for our website / registration flow. And there'd be zero fear in my mind of getting any false positives or user complaints by doing so.
After all, none of these reallocatable ranges are ever purchased by residential/commercial broadband ISPs; those customers would much rather solve their IPv4 problems permanently, by doing either IPv6 enablement or CGNAT, than solve them for only the next 1024 customers, by buying a piddly /22 — especially at an unpredictable, un-budget-able price!
And for registrations, any IP other than ISP IPs doesn't matter. IaaS IP? Bot. VPS IP? Bot. Colo IP? Bot. "Internal-use" IP? Bot. if someone's traffic isn't coming from an IP address owned by an ISP, then for purposes of registration, it's not good traffic, 99.999% of the time†. Those IPs are perfectly fine when it comes to actual requests — obviously, your application backend using our API is a "bot" in some sense — but your application backend shouldn't be going to our website and filling out a sign-up form. :)
(† The other 0.0001% are people using "workstation in the cloud" services. But people using those are used to being treated as second-class Internet citizens when trying to do web browsing from their cloud workstation; and they already know the solution is always to switch back to their real computer's web browser for anything requiring IP reputation.)
> The other 0.0001% are people using "workstation in the cloud" services.
Yeah, no. I've been using VPNs/SSH tunnels/proxies set up on various VPS hosters/"cloud" vendors for more than a decade to bypass heavy internet censorship. It is much cheaper than using ready-made VPN solutions, and the server can be reused for other purposes. I understand that may be <0.1% of your market, but it's not 0.
We're definitely used to being treated as third-class internet citizens not only by our own government, but also by various internet companies, which your comment demonstrates pretty clearly.
Here's a nice write-up. It's not mine, and it's not even the same country, but the experience he describes is very relatable.
https://shahinsorkh.ir/2019/07/20/how-is-it-like-to-be-a-dev...
A key property of people who aren’t willing to relinquish their anonymity for even a moment in registering for your service, is that they’ll never be able to pay money for your service, either, because doing so would reveal their identity through their credit card.
(Yes, they can use Bitcoin or whatever, but then you’re basically signing up to be a dark web business, having to deal with being a money-laundering sink for stolen funds.)
So, if your goal in getting users to sign up, is to feed them through a funnel that eventually ends up with them paying you money, then you can take “signs up using a VPN” (or an email anonymization service, or…) as an immediate self-disqualification.
Of course, most such failed attempts are innocent first-time “I didn’t realize you cared” attempts; so we just throw a clear error message, telling them to try again with their real email+IP+etc.
But when a user responds to that error by just trying more and more email proxy domains, or repeatedly rotating their VPN country… well, that’s someone who’ll never be a customer. May as well just block them and be done with it.
Wow, you just keep swinging and missing with such confidence! I use VPNs because I don’t trust rando open WiFi hotspots or the ISPs that serve them. I frequently still buy things over the VPN and stay logged in with accounts attached to me.
You seem like the type of business owner that would remove the handicap accessible entrance because it’s easier to break into.
They are talking about *registration*, how often do you register new accounts?
I also believe all registration forms should outright ban non-ISP IPs.
So what? If our service gave you that clear error message that we don't accept VPNs — well, you would have the perfectly-viable option of just waiting until you get home to register. It's not the sort of service you register for "in anger" with any kind of urgency. It's a B2B data-analysis API, only relevant for companies and professionals; and it's one that you need to spend hours exploring and reading the docs of to get real use out of, because "real use" almost always consists of calling multiple endpoints, graph-walk-wise, to explore data relationships.
Also, as it happens, we don't consider "invited by a team member" to be a registration; coming in through an invite link doesn't go through any of the checks. (This is because we've yet to actually see a promotion-fraud attacker who has ever taken advantage of the teams system. Probably they assume all accounts in a team will be rate-limited together at the team level, even though we've never said anything to that effect.)
So if you're working for a company that has chosen to use our API, and you're not the one person in your company who was tasked with initially evaluating our API, but rather are just someone who needs to actually use it — then you'll do that by receiving an email, clicking on the magic link, and filling out your details; and all of that will work just fine over your VPN on the rando open WiFi hotspot. Because "clicking on an invite link" is distinguishable from promotion fraud.
It's only if your traffic is indistinguishable from promotion fraud — if it fits the signature of promotion fraud — that we'll block it. And that signature, right now, for us, is:
1. sends traffic from a colo, VPN, or Tor exit-node IP address;
2. uses an email address where the domain is either:
2a. from a "temporary inbox service";
2b. from one of a few common mail services which do not themselves speed-limit registrations (Microsoft / outlook.com is bad for this; Rambler.ru is another. Perhaps surprisingly to any cypherpunks in the audience, ProtonMail isn't in this set — so they're fingerprinting you somehow to enable that!):
2c. freshly-created (<2d old);
2d. has an MX record whose zone's NS record indicates that their MTA is hosted on a cheap colo (you'd think this would generate false positives, but it's very unlikely on the modern web, as an MTA on such a box would have too low a reputation to send mail, so nobody would bother unless the MTA is only for receiving, i.e. is a one-off temporary email proxy-host);
3. uses an email address where the username is either:
3a. "gibberish" — indistinguishable from keyboard-mashing (see https://pypi.org/project/gibberish-detector/);
3b. generated by combining census-data-list names with 4+-digit number suffixes, with the former to make the address look real, and the latter to ensure a low change of collision at time of address registration;
4. specifies a user name, organization name, and/or API-key label (all free-text fields) as either gibberish, or mail-merged repetitions of the name in the address. (Real people who don't want to fill these out say something petulant here, rather than keyboard-mashing.)
5. matches the browser fingerprint of a previously-detected multiple-incident attack. (We do client-side browser fingerprinting, only for the registration page, to catch people who use e.g. Puppeteer + Zyte Smart Proxy Manager to automate registrations; but who don't realize that the Puppeteer Stealth plugin exists. Which is, surprisingly, a lot of people.)
These are all just factors in your registration "credit score"; you have to trigger multiple of them to get denied by our accounts backend.
We only start putting IPs into blocklists (thus making it into, in a sense, a single-factor denial) once we've actually seen attacks coming from these IPs. But we do investigate each such attack; and if the offending IPs all came from some "dedicated-bare-metal unmetered-bandwidth machine host" that nobody's ever heard of + exists as its own ASN + has no claim on its website to be policing its customers for abusive behavior (or worse, doesn't even have a website!)... then it's time to block that entire netblock, and every other netblock owned by the ASN, and every other ASN owned by the company. Every time we haven't before, the attacks just come back.
Surely that is not a pleasant web browsing experience? How do you deal with the constant captchas or straight-up blocks against vps ip ranges?
Commercial vpn's for all their faults are treated much better than a diy setup on average.
While my tool is just a proof of concept, it can easily be scaled up to run checks on a sign up form to prevent bad actors from abusing the system.
Maybe the closest thing would be an ASN reputation score, where one of the factors is the ASN’s newness, and another is the average recency of their acquisition of the IP blocks they own.
Some of the sketchiest ASNs I know of have been assigned for many years, and perfectly reputable ISPs have to acquire new IP space occasionally.
...which can be addressed perfectly fine with a static, human-audited blacklist, because the old bad actors don't change.
The goal of a reputation score would be to complement such a static blacklist, by recognizing the fly-by-night operations that constantly crop up and disappear for what they are; or, conversely, by rewarding the ASNs who manage to stick around long enough without ever doing anything to land them on the static blacklist.
In other words, just like how mail domain reputation works. If your domain sticks around long enough without ending up on a DNSRBL, then it builds up a positive reputation, which acts as a counterweight in spam-filtering algorithms. If you sell the domain, though, then its reputation resets.
> perfectly reputable ISPs have to acquire new IP space occasionally.
Yeah, but the average age "by volume" of all their IPs would still be pretty old, as the new acquisitions would be marginal compared to their existing holdings.
… only to find out that you’re through no fault of your own blocked by region because we suddenly have a splinternet in the great year of 2022
For example, does "free-tier" provide an opportunity for the "API SaaS" operators to collect personal information, or at least email addresses, belonging to users who have no intent of paying the "API SaaS".
The notion of "fraudulent sign-ups" for something allegedly offered for "free" sounds funny. Fraud implies that the alleged perpetrator is obtaining something unlawfully or unfairly. However if that thing is "free" then how could this ever be true. Perhaps the operator of the "free" service actually is expecting to receive (or take) something from the user. When the user fails to provide or allow the operator to take this thing from her, then the operator complains of "fraud".
The problem with this reasoning is that it fails to account for value of the right to privacy.
Consider a telephone analogy, imagine a _toll-free_ number for free information. Imagine the operator referring to callers with unlisted numbers or ones who did not allow caller-ID when calling a toll-free number to obtain free information as comitting "fraud on the service".
As a user, I see no point in "free-tier services" that require "sign-up" because they are really not "free". The user is being asked to give up some of her rights in exchange for the "service".
Consider a public square analogy, imagine someone standing on a street corner handing out _free pamphlets_ but requiring people to "sign-up" to receive one. Then imagine the pamphlet publisher accusing those who did not provide real names and other details when "signing-up" as comitting "fraud".
If the operator ceases the "free-tier" tactics to gather data/information about users and simply sells paid service then this problem "fraud on our service" becomes moot. The question becomes why the operator feels it _must_ provide "free" service.
Consider a www analogy, imagine the "CTO" of HN accusing users who read HN but do not create accounts or provide their real names to HN as committing "fraud on our service".
The www provides an enormous amount of free information. Beyond purchasing service from an ISP, no other "sign-up" is required. Accusing www users of committing "fraud" for retrieving such information without "signing-up" is silly.
The majority of "fraud" occuring via the internet is not being perpetrated by users on "tech" companies. It's being perpetrated by "tech" companies on users.
So, technically, our revenue is entirely independent of customers. Which is why free-tier users still benefit us: the more DAU our platform receives, the more our partners value it, and the more they’re willing to pay us to make their data available through it.
And before you ask, no, we don’t give our customer data to our partners; all they get to know is DAU and API call count for their network.
> Whats the purpose of "free-tier" API SaaS.
Mostly? Giving people a taste without the friction of paying, so that they get hooked, and start paying later. Like how you can have one Heroku VM for free. Or how GCP gives you a free month of usage when you sign up.
I can’t think of a direct analogy within the API SaaS vertical specifically; but a hypothetical analogy would be if Twilio gave N free credits on each sign-up.
> Fraud implies that the alleged perpetrator is obtaining something unlawfully or unfairly. However if that thing is "free" then how could this ever be true.
Our free offer is intended to give people a certain amount of credits to spend to try out the service. By registering multiple accounts, you get multiples of that promotional amount. And, in fact, by registering multiple accounts, you escape the rate-limiting we place on every account, to ensure QoS and prevent Denial-of-Service attacks against our service. So we prevent people from registering multiple accounts.
Analogy: someone who sees a free sample display in a grocery store, and stuffs the entire display into their bag. And then camps out the display each day, taking the whole thing again the instant it gets restocked. While also going around to N other stores in the chain, camping them out as well.
It may not be illegal, but it’s 1. unethical, 2. against the spirit in which the promotion was intended, and 3. screws all the other customers out of their opportunity to get the free thing, because you’re using up their “share.”
Just like if you go to Costco and get free sample of a product, the staff won't let keep taking more and more and more free samples. That's exactly what free usage tiers are, free samples.
As it happens, this particular company does not have such a restriction in their terms. Maybe they should add one, e.g., an explicit prohibition against multiple free API keys assigned to the same user.
Using the physical retail analogy, there is no sign stating something like, "One sample per person. Thank you for you cooperation."
"Free usage tiers" are nothing like "free samples" in a retail setting. A potential retail customer does not _need_ to provide an IP address in order to take a sample. Costco does not track the behaviour of potential customers who take free samples. Nor is Costco providing "free" samples as bait in order to collect data on behalf of other entities. This particular "API SaaS" crypto/blockchain company collects aggregated data for other entities. Their "legal terms" also permit them to sell this data. According to the HN comment, it wants usage data from IP addresses issued by ISPs not auctions.
The "free tier" problem being articulated here with respect to IP addresses is not that there are "too many" potential customers, i.e., too many IP addresses accessing the "free" API, thereby denying some potential customers from obtaining their "free samples". The problem is that the data collector cannot distinguish whether particular IP addresses represent distinct ISP subscribers, and whether such persons may be using automation to avoid mouse clicking, touchscreen tapping or other burdensome interaction. The complaint is that the "tech" company's efforts to _collect data about computer users_ are not working.
"Tech" companies require people to "sign-up". The incorporated "tech" website gets something in return for the "free" service. API's can be rate-limited. Potential paying customers, or non-paying users, can easily be blocked from using the API. This can all be done remotely from a keyboard. The retailer offering free samples of physical goods without requiring any information cannot adjust the number of samples available to each potenital customer, and certainly not remotely from a keyboard.
As such, the "limited supply" argument falls short. The complaint here is that a "tech" company wants to collect data about computer users and monetise it, and this is difficult because IP addresses do not necessary represent distinct computer users with certain charactersistics, not that a retailer is "running out of free samples".
My main bad actor problem was fraudulent credit cards but stripe took care of that.
"Free usage tiers" are nothing like "free samples" in a retail setting. A potential retail customer does not _need_ to provide an IP address in order to take a sample. The retailer does not track the behaviour of potential customers who take free samples. Nor is it providing "free" samples as bait in order to collect data on behalf of other entities. This particular "API SaaS" crypto/blockchain company collects aggregated data for other entities. Their "legal terms" also permit them to sell this data. According to the HN comment, it wants usage data from IP addresses issued by ISPs not auctions.
The "free tier" problem being articulated here with respect to IP addresses is not that there are "too many" potential customers, i.e., too many IP addresses accessing the "free" API, thereby denying some potential customers from obtaining their "free samples". The problem is that the data collector cannot distinguish whether particular IP addresses represent distinct ISP subscribers, and whether such persons may be using automation to avoid mouse clicking, touchscreen tapping or other burdensome interaction. The complaint is that the "tech" company's efforts to _collect data about computer users_ are not working.
APIs can be rate-limited. IP addresses can be blocked. All with a few keystrokes. Users are granted _permission_ to use the "free" sample and that permission can be revoked. Retailers of physical goods have no such abilities. They generally cannot control how many samples a person takes, they generally cannot ban selected people from taking samples, and they certainly cannot do this with a few keystrokes. Generally, the physical retailer will have a finite suply of free samples. When one person takes a sample, that is one less sample available for someone else. Whereas when one person accesses data, it does not result in "less data" for another person to access. There is no such depletion.
As such, the "limited supply" argument falls short. The complaint here is that a "tech" company wants to collect data about computer users and monetise it, and this is difficult because IP addresses do not necessary represent distinct computer users with certain charactersistics, not that a retailer is "running out of free samples".
Regarding the abuse, bots, etc. Yes, we have abuse cases, and you are partially right about that. However, we take every abuse case very seriously since we are responsible for hundreds of LIRs who brought their IPs to IPXO. If we ignore the abuse, we would not be boarding tens of thousands or hundreds of thousands of new IPv4 every week.
- Vincentas, CEO @ IPXO
We find IP lists alone dont really cut it though. Its easy for someone to just tether to their phone to signup.
If your interested we would love to chat :)
CGNAT requires buying IPs and a /22 is big enough for 100k customers. Your assumptions are wrong.