做浏览器连接code在微不足道的code仅域或整个URL? [英] Do browsers encode in punycode only domain or whole url?

查看:168
本文介绍了做浏览器连接code在微不足道的code仅域或整个URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到有关IDN同形异义阿塔克并没有准确地找到描述不符浏览器连接在微不足道的code仅域或URL的其余code包括(路径和查询)。所以我的问题是确实的流行的浏览器(FF,IE,Chrome浏览器,Safari浏览器,Opera)的连接的URL code休息一(IRI是精确的)与弱小code?

I was reading about IDN homograph atack and didn't find exactly stated does browsers encode in punycode only domain or rest of the URL is included (path and query). So my question is does one of popular browsers (FF, IE, Chrome, Safari, Opera) encode rest of the URL (IRI to be exact) with punycode ?

推荐答案

只有域名部分是带弱小code codeD。这是由于在一个(传统)域名施加在允许的字符的限制。 URL的路径部分有没有这样的限制,所以UTF-8的时候使用。

Only the domain name part is encoded with punycode. This is due to the restrictions imposed on the allowable characters in a (traditional) domain name. The path part of the URL has no such restrictions, so UTF-8 is often used.

这篇关于做浏览器连接code在微不足道的code仅域或整个URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆