Skip to content

Python audit utility

About 1 min read · reviewed 2026-11-26

Python audit utility

From this folder, run the offline regression tests with:

python3 -m unittest test_backlink_audit.py -v

Nineteen offline tests passed during this checkpoint. For a small permitted URL list:

python3 backlink_audit.py audit_input_example.csv --psl public_suffix_list.dat --output audit_results.json

The example is a real public source/target pair, but unsupported robots syntax can legitimately cause manual review. The utility preserves all rel tokens and repeated headers, records original/final domains, and avoids treating redirects as new independent sources. It performs read-only HTTP observations; it does not render JavaScript or prove indexation/SEO benefit.

A full live network run was not verified. Direct DNS preflight was unavailable in this proxied research environment. Public research pages were independently fetched through the configured proxy and web sources. Mandatory public-address checks were not removed. The conservative robots subset intentionally defers valid but unsupported patterns/groups/rates rather than guessing permission.