View Full Version : Implementation of IDN Domains
dneureuter
08-07-2005, 05:28 AM
Hello,
how can i make the script working to accept IDN Domain requests??
Because you can use IDN Domains (Special Characters >> äöüÄÖÜéáúÚÉÁß) for .de, .com, .net, .org, .info, .biz, .at, .ch
Now i get the Errormessage that i use invalide Characters
thnx for the help
Daniel
Patrick
08-07-2005, 10:31 AM
I know, I need to fix the regex that checks domains.
You can change it now though: open whois/classes/domains.php and edit "^[a-zA-Z0-9]+[a-zA-Z0-9-]*[a-zA-Z0-9]+$" (found on line 88).
The three sections correspond to the default set of restrictions for domains. As you can see, there are three sections (see the three different sets of brackets). The first corresponds to the first character of a domain, the second corresponds to the middle characters, and the last corresponds to the last character.
So in the middle example [a-zA-Z0-9-], valid characters include letters a through z, A through Z, 0 through 9, and the hyphen character.
dneureuter
08-07-2005, 10:56 AM
Thnx for the fast answer,
i have tried but it does not work with .de .com. net
and the Whois-Info also does not work with IDN Domains (Illegal Characters error) from the Whois-Server.
I think the Whois-Servers need a translation to the Punny-Code from the Script.
Regards
Daniel
Patrick
08-07-2005, 02:06 PM
Thnx for the fast answer,
i have tried but it does not work with .de .com. net
and the Whois-Info also does not work with IDN Domains (Illegal Characters error) from the Whois-Server.
I think the Whois-Servers need a translation to the Punny-Code from the Script.
Regards
Daniel
Do you know much about PHP?
If you want, you could include this class I just found and run the domain through it, around the same location I said to edit above:
http://www.phpclasses.org/browse/package/1509.html
Powered by vBulletin™ Version 4.0.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.