thirdparty

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package thirdparty recognizes requests and frames that belong to ads, analytics and other trackers rather than to the page, and tells whether two hosts are the same site. The AI gets fewer tokens of noise (failed beacons, ad iframes) and the settle engine never waits for them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SameSite

func SameSite(a, b string) bool

SameSite reports whether two hosts share a registrable domain (shop.example.com and api.example.com; www.example.co.uk and example.co.uk). The public suffix is approximated: two labels, or three when the second-level label is a short generic one under a country code.

func Site

func Site(host string) string

Site is the approximate registrable domain of host (ports and a trailing dot removed).

func Tracker

func Tracker(rawURL string) bool

Tracker reports whether rawURL belongs to an ad or analytics service.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL