Canonical URLs come to the rescue.
Only for SEO - they don't help at all with aggressive AI scraper bots.