r/github • u/certifiedwangus • 14h ago
Question issue trying to verify .zip domain in pages?
I bought a .zip domain because Funny, and am trying to connect it to github pages.
The verification produces this link (i.e. this is where the "Verify" button leads):
https://github.com/settings/pages_verified_domains/MY_DOMAIN.zip
which presumably is supposed to direct me to the continued verification process. However,
- When I'm not logged in, I get a bare "Could not authenticate" text page
- On Safari or Orion, the browser downloads an empty .zip file
- On Chrome, I get a
ERR_INVALID_RESPONSEerror screen
This makes me think it's something weird on Github's end (vs. my browser mishandling the URL as a .zip file. Like if it were the browsers' fault, I would expect case 1 to also download a bogus .zip file).
anyone run into this? i guess it would only affect TLDs that are also common file extensions, so .zip and .mov .
Github won't give any support because i don't pay.
2
u/AllanTaylor314 14h ago
What is the content type in the response header for that vs a normal domain? Does it work with an extra slash on the end?
3
u/andeeeeeeeeer 9h ago
Looks to me like it's the .zip at the end of the path. GitHub is a Rails app, and Rails treats a trailing .zip as the response format, so the server tries to answer as a zip. That fits the empty download in Safari and the invalid response in Chrome. Run the dig command from the docs first (dig _github-pages-challenge-YOURNAME.yourdomain.zip TXT) so you know the record is live. Then click Verify on the same Pages settings screen where you added the domain, without leaving it, so you never go through that broken URL.
1
u/TPECKA180 2h ago
Buying a .zip domain just because it's funny is already a great start 😂
Since the same link fails differently across browsers, I'd suspect something on GitHub's side too. Have you tried opening the verification page with the browser's developer tools open to check the actual HTTP response?
-3
u/SeniorIdiot 12h ago
https://security.snyk.io/research/zip-slip-vulnerability