Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force capitalize letters in domain name [closed]

Tags:

browser

http

dns

So I understand the fact that domain names are case insensitive:

google.com, GOOGLE.COM, GooGLe.Com, gOOgle.cOm ===> google.com

but my question is: Is it possible to force letters in a domain name to appear capitalized by default?

For example, if I owned www.crazycapitalization.com is there any way I could make it appear as CrazyCapitaliZation.com by default whenever the domain was accessed?

crazycapitalization.com, CRAZYCAPITALIZATION.COM ===> CrazyCapitaliZation.com

If this cannot be done I would be curious to know why.

Thanks in advance!

like image 662
Cumulo Nimbus Avatar asked Dec 21 '13 20:12

Cumulo Nimbus


People also ask

Can you capitalize letters in a domain name?

You can't, because domain names are case-insensitive. In other words: Surname.com is exactly the same as surname.com .

Do capital letters affect SEO?

URL Capitalization Does Matter in SEO, Just Not Directly For example, you can't change a URL to capitalized letters and expect it to immediately improve your rankings. You can't fix all URL capitalizations and expect an immediate improvement in your SERP performance overnight.

How do I enable capital letters?

To use a keyboard shortcut to change between lowercase, UPPERCASE, and Capitalize Each Word, select the text and press SHIFT + F3 until the case you want is applied.

Should you capitalize letters in URL?

While browsers can handle capital letters in URLs, they also immediately lowercase them. So, while capital letters can make your URL easier for people to read, there's still the potential for risqué words to appear once your browser is done with it.


1 Answers

The place to look this up is the Domain Names specification (RFC 2035).

It states that “while upper and lower case letters are allowed in domain names, no significance is attached to the case. That is, two names with the same spelling but different case are to be treated as if identical.” That's what you noted indeed.

Interestingly (and perhaps surprisingly to many), it also says that “when data enters the domain system, its original case should be preserved whenever possible” and “future additions beyond current usage may need to use the full binary octet capabilities in names, so attempts to store domain names in 7-bit ASCII or use of special bytes to terminate labels, etc., should be avoided.”

So in the original design, there was a possibility to preserve the case (even though comparison always happens in a case-insensitive way). However, when it resolves a domain name, your browser only asks the IP address belonging to that domain (and not the “canonical” name). So even if a certain DNS server would store case (usually not, as far as I know), your browser wouldn't use that information.

So it could be done, but only with a specifically crafted browser (and perhaps DNS server).
The cool thing is: you would still be respecting the DNS protocol.

like image 129
Ruben Verborgh Avatar answered Oct 12 '22 06:10

Ruben Verborgh