{"id":2929,"date":"2019-10-04T21:10:26","date_gmt":"2019-10-04T13:10:26","guid":{"rendered":"https:\/\/www.aoisnow.net\/blog\/?p=2929"},"modified":"2019-10-04T21:10:26","modified_gmt":"2019-10-04T13:10:26","slug":"tont-38463-%e7%95%99%e5%bf%83%e9%82%a3%e4%ba%9b%e7%a4%ba%e4%be%8burl%e4%bb%ac","status":"publish","type":"post","link":"https:\/\/www.aoisnow.net\/blog\/archives\/2929","title":{"rendered":"TONT 38463 \u7559\u5fc3\u90a3\u4e9b\u793a\u4f8bURL\u4eec"},"content":{"rendered":"<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/20040713-00\/?p=38463\" target=\"_blank\" rel=\"noopener\">https:\/\/devblogs.microsoft.com\/oldnewthing\/20040713-00\/?p=38463<\/a><\/p>\n<p>When writing documentation, one often has need to come up with a sample URL to illustrate some point or other. When you do, make sure the sample URL is under your control.<\/p>\n<p>\u64b0\u5199\u6587\u6863\u65f6\uff0c\u6709\u65f6\u9700\u8981\u4e00\u4e2a\u793a\u4f8b URL \u6765\u63cf\u8ff0\u4e00\u4e9b\u8bba\u70b9\u4e4b\u7c7b\u7684\u4e1c\u897f\uff0c\u9047\u5230\u8fd9\u79cd\u60c5\u51b5\u65f6\uff0c\u7559\u5fc3\u8ba9\u90a3\u4e9b\u793a\u4f8b URL \u5728\u4f60\u7684\u638c\u63a7\u4e4b\u4e0b\u3002<\/p>\n<p>I remember a Windows beta that used the sample URL http:\/\/www.xxxxx.com\/ in a dialog box. You can imagine where that actually goes.<\/p>\n<p>\u6211\u8bb0\u5f97\u6709\u4e00\u4e2a Beta \u7248\u7684 Windows \u5728\u67d0\u4e2a\u5bf9\u8bdd\u6846\u4e2d\u4f7f\u7528\u4e86\u00a0http:\/\/www.xxxxx.com\/ \u4f5c\u4e3a\u793a\u4f8bURL\uff0c\u53ef\u60f3\u800c\u77e5\u8fd9\u4e2a\u7f51\u5740\u6307\u5411\u7684\u662f\u4ec0\u4e48\u5730\u65b9\u3002<\/p>\n<p><a href=\"http:\/\/www.iron.net\/www\/userguide\/configuration.html\" target=\"_blank\" rel=\"noopener\">This web site uses www.wallyworld.com as a sample URL<\/a>. Perhaps they didn\u2019t realize that it\u2019s a gay porn site.<\/p>\n<p>\u8fd9\u4e2a\u7f51\u7ad9\uff08\u8bd1\u6ce8\uff1a\u94fe\u63a5\u5df2\u5931\u6548\uff09\u4f7f\u7528\u4e86 www.wallyworld.com \u4f5c\u4e3a\u793a\u4f8b URL\uff0c\u4f30\u8ba1\u4ed6\u4eec\u6ca1\u60f3\u5230\u8fd9\u4e2a\u7f51\u5740\u662f\u4e00\u4e2a\u540c\u6027\u604b\u8272\u60c5\u7f51\u7ad9\u3002<\/p>\n<p>(Raymond\u2019s strange dream story: One night I dreamt that I found a web site that had a complete Dilbert archive, and for some reason the name of the site was \u201cWally World\u201d. In the morning, I checked out the site and was in for a big surprise\u2026)<\/p>\n<p>\uff08Raymond \u7684\u602a\u68a6\u5c0f\u6545\u4e8b\uff1a\u67d0\u665a\u6211\u505a\u4e86\u4e00\u4e2a\u68a6\uff0c\u68a6\u89c1\u6709\u4e2a\u7f51\u7ad9\u4e0a\u6709 Dilbert \u6f2b\u753b\u7684\u5168\u96c6\u5b58\u6863\uff0c\u5e76\u4e14\u4e0d\u77e5\u4e3a\u4f55\u7f51\u7ad9\u7684\u540d\u5b57\u53eb Wally World\u3002\u7b2c\u4e8c\u5929\u65e9\u4e0a\uff0c\u6211\u641c\u4e86\u4e00\u4e0b\u8fd9\u4e2a\u7f51\u7ad9\uff0c\u7ed3\u679c\u975e\u5e38\u4ee4\u4eba\u201c\u60ca\u559c\u201d\u3002\uff09<\/p>\n<p>So play it safe. When you need a sample URL, don\u2019t just make something up. If you do, odds are good that somebody is going to rush in and register it. Make your sample URLs point back to your company\u2019s home page, or use http:\/\/www.example.com, which the IANA has reserved for use in sample URLs. If that\u2019s too dorky, you can always go out and register the domain you want to use as your sample, so that nobody else can sneak in and steal it. (This does have the problem of incurring renewal fees.)<\/p>\n<p>\u6240\u4ee5\u8fd8\u662f\u5c0f\u5fc3\u4e3a\u5999\u3002\u5f53\u9700\u8981\u7528\u5230\u793a\u4f8b URL \u65f6\uff0c\u4e0d\u8981\u968f\u624b\u7f16\u4e00\u4e2a\u5c31\u7b97\u4e86\uff0c\u603b\u6709\u4eba\u4f1a\u7acb\u9a6c\u8dd1\u53bb\u628a\u8fd9\u4e2a\u57df\u540d\u6ce8\u518c\u4e0b\u6765\u3002\u4f60\u53ef\u4ee5\u8ba9\u8fd9\u4e2a\u793a\u4f8b URL \u8df3\u8f6c\u56de\u8d35\u516c\u53f8\u7684\u4e3b\u9875\uff0c\u6216\u8005\u76f4\u63a5\u7528 http:\/\/www.example.com \uff0c\u8fd9\u662f IANA \u4e3a\u793a\u4f8b URL \u4fdd\u7559\u7684\u4e00\u4e2a\u57df\u540d\u3002\u5982\u679c\u4f60\u89c9\u5f97\u8fd9\u6837\u592a\u50bb\u4e86\uff0c\u4f60\u5f53\u7136\u4e5f\u53ef\u4ee5\u9009\u62e9\uff08\u5148\uff09\u7279\u610f\u6ce8\u518c\u4e00\u4e2a\u57df\u540d\uff0c\u7136\u540e\u5c06\u5b83\u7528\u5728\u4f60\u7684\u793a\u4f8b URL \u4e4b\u4e2d\uff0c\u8fd9\u6837\u5c31\u4e0d\u4f1a\u6709\u4eba\u6084\u6084\u5730\u5c06\u5176\u636e\u4e3a\u5df1\u6709\u4e86\u3002\uff08\u4e0d\u8fc7\u8fd9\u6837\u4e5f\u4f1a\u6709\u4e3a\u5176\u7eed\u8d39\u7684\u95ee\u9898\u5b58\u5728\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/devblogs.microsoft.com\/oldnewthing\/2004071 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2929","post","type-post","status-publish","format-standard","hentry","category-tont_history"],"_links":{"self":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/2929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/comments?post=2929"}],"version-history":[{"count":0,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/posts\/2929\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/media?parent=2929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/categories?post=2929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aoisnow.net\/blog\/wp-json\/wp\/v2\/tags?post=2929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}