The subject of supporting IDN's is tricky.  We have talked about supporting 
them, but there are some issues because they map into ASCII domains in a way 
that increases risks of performing domain name spoofing.  This is known as the 
Homograph Attack.
See http://en.wikipedia.org/wiki/Internationalized_domain_name#Spoofing_concerns
 
I'm not sure yet what we want our policy to be regarding support for IDN's in 
Zend Framework.  We could implement a class to convert Unicode strings to 
Punycode in ASCII to support the way IDNA says to map IDN's.  Then validate the 
ASCII domain normally.  Zend_Validate_Hostname could even do this transparently 
if it detects any Unicode characters in its string argument.  Since PHP 5 has 
weak support for Unicode, this might not be something that can be done 
transparently until PHP 6.
 
In the meantime, until ZF includes a Punycode converter, an application 
developer must do it themselves and then validate the ASCII domain name.
 
Regards, 
Bill Karwin


________________________________

        From: Pádraic Brady [mailto:[EMAIL PROTECTED] 
        Sent: Saturday, June 23, 2007 11:33 AM
        To: Zend Framework i18n; Zend Framework General
        Subject: [fw-general] IDN Validation
        
        
        Hi all,
        
        I was just wondering what plans are for IDN support. We currently have 
about 10? or less tlds covered in Zend_Validate - there's somewhere around 40+ 
currently supporting IDNs in total. This probably isn't a priority at the 
moment - mainly curious since I had some test runs of an application meet some 
failures from the validator.
        
        On a sidetrack, how do IDNs effect the framework's email validator?
        
        Bear in mind most of the tlds like .com, .org etc also allow for IDNs. 
e.g. http://www.المعرفة.com 
<http://www.%D8%A7%D9%84%D9%85%D8%B9%D8%B1%D9%81%D8%A9.com>  (arabic).
        
        Kind regards,
        Pádraic
        
         
        Pádraic Brady
        http://blog.astrumfutura.com
        http://www.patternsforphp.com
        


________________________________

        Need Mail bonding?
        Go to the Yahoo! Mail Q&A 
<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>
  for great tips from Yahoo! Answers 
<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>
  users.

Reply via email to