Developer Tooling · zero-dependency · MIT

larzaccesslog

Your access log already lists every site linking to you.

Parses the Apache/Nginx combined log format into structured records, then external_referrers() does the actual point of a real production backlink tracker: every external site embedding or linking to a page shows up as a Referer header on a real hit, for free, no crawler or paid backlink API needed. Splits on the quoted segments rather than regex, since the format is fixed and this reads more plainly.

larzscript pkg install accesslog
View on GitHub →Learn the stack

What you get

Try it

import "accesslog" as accesslog
let sample = "1.2.3.4 - - [02/Aug/2026:08:43:44 +0000] \"GET /embed/calc HTTP/1.1\" 200 4408 \"https://otherblog.com/best-tools\" \"Mozilla/5.0\"\n" +
  "1.2.3.5 - - [02/Aug/2026:08:43:45 +0000] \"GET /embed/calc HTTP/1.1\" 200 4408 \"https://otherblog.com/best-tools\" \"Mozilla/5.0\"\n" +
  "1.2.3.6 - - [02/Aug/2026:08:43:46 +0000] \"GET / HTTP/1.1\" 200 4408 \"https://example.com/own-preview\" \"Mozilla/5.0\""
let records = accesslog.parse_lines(sample)
let backlinks = accesslog.external_referrers(records, "example.com")
for b in backlinks { print(b["referer"], "->", b["hits"], "hits, last path", b["path"]) }
Output
https://otherblog.com/best-tools -> 2 hits, last path /embed/calc

Why it's in the Larz Stack

larzaccesslog is a real Larzscript package (larzscript pkg install accesslog) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.