RE: https://infosec.exchange/@ryanc/117565169922302993 One of the services I bui...

@rckenned@hachyderm.io

RE: infosec.exchange/@ryanc/117565

One of the services I built and maintain at work struggles with this. It reaches out to specifically requested hosts to obtain a usable logo for the site (checks for <link rel=…> stuff, falls back to /favicon.ico if that’s all that’s available). We use these logos in our product so our end users can visually associate their records with the corresponding company.

It sends a distinct User-Agent header identifying our company and the purpose of the request. It only requests the root URL (i.e. it doesn’t fetch any CSS/JS/image assets). Additionally, we cache the result on our end (including misses) for a month.

We’re doing (we think) our best to be good citizens here. About the only thing I can think of that we could be doing that we’re not is checking robots.txt prior to fetching the root (adding that is on the backlog).

However, we struggle with sites throwing anti-scraping mechanisms up, despite us not really falling into the same “scraping” purpose/ferocity of the scrapers they’re trying to limit. Server-side request header fingerprinting (Cloudflare) and client-side JavaScript checks+redirects (AWS WAF) frequently trip us up in obtaining a good logo.

So while site owners are being harassed by the scrapers, genuine, non-scraping use cases are being broken by the countermeasures the site owners need to put into place to safeguard their resources.

I’m curious how things like aggregators (e.g. RSS and Atom) are managing to perform feed URL detection with all of these defenses in place (assuming they’re not encountering exactly the same problems we are).