Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That depends on your use case. If you're trying to check the hostname against some sort of whitelist or blacklist you're going to want to normalize it. Then you have all kinds of fun like IDN to deal with.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: