Skip to content

Wildcard CNAME causes unrelated content to display #22903

Answered by lee-dohm
jspiewak asked this question in General
Discussion options

You must be logged in to vote

Thanks for writing in about this, and sorry for the trouble this has caused!

Setting up a wildcard DNS record will allow anyone to host a GitHub Pages site at one of your subdomains. This is something we specifically warn against in our documentation. As we don’t have any way of verifying domain ownership over DNS the only security method we can recommend is explicitly specifying the subdomain records you need and pointing them at GitHub.

To fix this you’ll need to remove your wildcard record and create an explicit CNAME record for each subdomain you want to use.

Additionally, it would also be very helpful if you could send a list of any affected subdomains you’ve noticed in to private Gi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants