I am curious whether someone could find out if a site hosted on GitHub Pages could be traced back to the user that published it. This is of course, assuming that:

  • the GitHub repository containing the website’s file is private,
  • the website is connected to a custom domain (using something like a CNAME record, rather than a redirect from example.com to user.github.io/secret-site),
  • the GitHub account itself isn’t compromised.

1 Answer 1


Yes, you can identify the Github username of the person. This works because CNAME records are public. CNAME records essentially work like a redirect, and tell a DNS resolver to use the records from elsewhere.

For example, spec.commonmark.org is hosted with GitHub pages. How do I know? I can run dig spec.commonmark.org CNAME and get the following response:

spec.commonmark.org.    1608    IN      CNAME   jgm.github.io.

From this I can see that the GitHub user or organization “jgm” controls the repository from which that website is built.

In this case, that is an individual user. But if it is a GitHub organization, it might not be possible to know who controls that organization, since members can set their membership to private.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.