My domain got abused on Github Pages

41 points by lalitm


willhbr

This case is covered by the GH docs: https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site

We strongly recommend that you do not use wildcard DNS records, such as *.example.com. These records put you at an immediate risk of domain takeovers, even if you verify the domain. For example, if you verify example.com this prevents someone from using a.example.com but they could still take over b.a.example.com (which is covered by the wildcard DNS record).

radio

I don't understand how they deal with the case in which two GitHub Pages claim the same domain, and that domain is pointing to GitHub and there us no other info. Who wins?

radio

Couldn't they require a CNAME from the exact domain to <github-user>.github.io and verify if that matches the user who is claiming the domain?