HackerTrans
TopNewTrendsCommentsPastAskShowJobs

obuda

no profile record

comments

obuda
·5 वर्ष पहले·discuss
OK, but then the prefetch link as it stands is useless, no?
obuda
·5 वर्ष पहले·discuss
Yeah, I don't know about that. Wouldn't it be that the query strings differentiate the two links?

I assume so, because of an old trick where query strings are used for ad-hoc cache control as in /style.css?1629472765
obuda
·5 वर्ष पहले·discuss
Why the prefetch though? Reason being bots don't open them? If so, this is a really good idea!
obuda
·5 वर्ष पहले·discuss
Wouldn't be surprised if pretty much every communication service is doing this.

I sent a link to a large file over Viber and immediately some ip connected and started downloading. Stopped at 350mb of around 3.5gb. I get that they want to show thumbnails or whatnot, but they just don't discriminate between content types.
obuda
·5 वर्ष पहले·discuss
Another idea is to have 3 links, where only one is visible:

  https://example/com/token?forBots
  https://example.com/token
  https://example.com/token?forBots
Hopefully any automated systems will open the first or last link first, so that you can save the request info and filter based on that. In case requests come out of order, you can always add a small delay to the "human" link before responding.

I haven't yet gotten to implementing any of the authentication on my current project, so I might be missing something really basic.

The next best thing is to set a cookie when requesting the magic link, but the downside (or upside?) is that it will be valid only for the browser it was requested with.