15 ms·
Or even just sha256(unixtime().rand()).com Or a domain in a TLD that allows only second level TLDs (such as some of the commonwealth countries).
by kuschku 10y ago
Or even just sha256(unixtime().rand()).com
Or a domain in a TLD that allows only second level TLDs (such as some of the commonwealth countries).
- nathan_f77 10y ago> sha256(unixtime().rand()).com Yep, that's the way to do it.
- kijin 10y agoThat gives you 64 characters to the left of the dot. The maximum number of characters allowed in any single component of a domain name is 63. Some systems might react in unexpected ways if you try to resolve an invalid domain name, making your check unreliable. Better use md5 or sha1.
- kuschku 10y agoWell, that'd be an implementation detail, but the general concept stays the same. And is superior to hardcoding.