r/github • • 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,

  1. When I'm not logged in, I get a bare "Could not authenticate" text page
  2. On Safari or Orion, the browser downloads an empty .zip file
  3. On Chrome, I get a ERR_INVALID_RESPONSE error 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.

0 Upvotes

7 comments sorted by

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?

1

u/certifiedwangus 5h ago edited 5h ago

it's a 406 response with content type "application/zip", on all browsers. so safari and orion download the ".zip" even though it's a 406, while chrome shows an error, but it's the same response.

Same thing with an extra slash, and/or throwing on some bogus `?` parameters just so it doesn't end in .zip

If I put in a random bogus .com domain, the response is a 200 with content type "text/html; charset=utf-8"

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?