4 ms·
Why not just get this info from the HTTP server?
by dontlaugh 3y ago
Why not just get this info from the HTTP server?
- victorbjorklund 3y agoHard if you run serverless
- dontlaugh 3y agoThere's still a server somewhere and it can log URLs and IPs.
- tmikaeld 3y agoNot if it's static generated html/css. And the real benefit of this trick is separating users from bots.
- throwaway290 3y agoStatically generated HTML+CSS doesn't mean a server is not required, learn basic networking.
- berkes 3y agoAnd even if there are many servers (a CDN or distributed caching) you can collect and merge these.
- victorbjorklund 3y agoTell me how to collect the logs for static sites on Cloudflare Pages (not functions. The Pages sites)
- berkes 3y agoCloudflare Pages are running on servers. These servers (can, quite certainly will) have logs. That you cannot access the logs because you don't own the servers doesn't mean there aren't any servers that have logs.
- victorbjorklund 3y agoYes, no one has argued that Cloudflare Pages arent using servers. But it is "hard" to track using logs if you are a cloudflare customers. Guess only way would be to hack into cloudflare itself and access my logs that way. But that is "hard" (because yes theoretically it is possible i know). And not a realistic alternative.
- throwaway290 3y agoI think people are trying to say there is no such thing as "serverless", be more specific
- berkes 3y ago> Guess only way would be to hack into cloudflare itself and access my logs that way. No. The most obvious way is to reassess running on servers/services that you don't own, and which don't offer features you need.
- victorbjorklund 3y agoOf course. But you can't access it. You can't get logs for static sites on Cloudflare Pages.
- Spivak 3y agoHuh? You can get logs just fine from your ALB's and API Gateways.
- hk__2 3y ago> Why not just get this info from the HTTP server? This is explained in the blog post: > There's always the option of just parsing server logs, which gives a rough indication of the kinds of traffic accessing the server. Unfortunately all server traffic is generally seen as equal. Technically bots "should" have a user-agent that identifies them as a bot, but few identify that since they're trying to scrape information as a "person" using a browser. In essence, just using server logs for analytics gives a skewed perspective to traffic since a lot of it are search-engine crawlers and scrapers (and now GPT-based parsers).
- dontlaugh 3y agoDon't bots now load an entire browser including simulated user interaction, to the point where there's no difference?
- janosdebugs 3y agoNot for the most part, it's still very expensive. Even if, they don't simulate mouse movement.
- spiderfarmer 3y agoAll bots