TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The 451 status code is now supported

421 点作者 cujanovic大约 9 年前

11 条评论

schlowmo大约 9 年前
Besides the reference to Fahrenheit 451 the referece to Life of Brian at the example from the RFC made my day:<p><a href="https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc7725#section-3" rel="nofollow">https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc7725#section-3</a><p>&quot;Unavailable For Legal Reasons<p>This request may not be serviced in the Roman Province of Judea due to the Lex Julia Majestatis, which disallows access to resources hosted on servers deemed to be operated by the People&#x27;s Front of Judea.&quot;
评论 #11315619 未加载
dcw303大约 9 年前
This could be really useful. If this was done by other big content sites (Youtube for example) then a search bot could build up an index of banned resources. A repository of burned books.
评论 #11310598 未加载
chippy大约 9 年前
&quot;Responses using this status code SHOULD include an explanation, in the response body, of the details of the legal demand: the party making it, the applicable legislation or regulation, and what classes of person and resource it applies to.&quot;<p>So in the articles example, GitHub should really include who is requesting the DCMA in the response.
评论 #11311494 未加载
评论 #11318995 未加载
nothis大约 9 年前
<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Fahrenheit_451" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Fahrenheit_451</a><p>Coincidence? I think not!
评论 #11312005 未加载
评论 #11312653 未加载
TuringTest大约 9 年前
I like the Farenheit 451 reference. Is that intentional, or does destiny have a sense of humor?<p>Edit: Wikipedia knows it all, as always. [1]<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;HTTP_451" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;HTTP_451</a>
edent大约 9 年前
Original discussion on HN from 4 years ago <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4099751" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4099751</a>
评论 #11312619 未加载
sanqui大约 9 年前
I was under the impression that the 451 status code should be used for requests blocked by proxies, where the original content is technically still available at the source but blocked for some reason. Probably got the wrong idea.
评论 #11310876 未加载
评论 #11310883 未加载
apalmer大约 9 年前
Help Me Understand:<p>I am a government who is censoring content. I do not like the explicitly saying I am &#x27;censoring&#x27; the internet I instruct my infrastructure not to use the status code 451. and I instruct my nation&#x27;s infrastructure to reject or rewrite all responses with 451 status code to 404.<p>What stops me?
评论 #11312689 未加载
评论 #11313209 未加载
评论 #11312959 未加载
评论 #11313159 未加载
评论 #11313761 未加载
jasonjei大约 9 年前
If I understand NSL correctly, its existence cannot be published without a government waiver? So in the case a repo needs to be taken down due to a NSL, what does GH do? 404? 401? 451? Returning 451 in response to a NSL would definitely violate NSL requirements?
评论 #11315066 未加载
ape4大约 9 年前
This means webcrawlers&#x2F;bots can now compile stats.
lolidaisuki大约 9 年前
I actually saw the status code 451 in the wild.<p>First time I saw it was in December and after that in January, both on the same site. The site that was blocked was archive.is.<p>This block was targeted at Finland and none of the different Internet connections I tried could get to the site, I tried my home connection, cellular and connecting from my school network. It&#x27;s a shame that anyone even thought of censoring such an useful tool for history and other legitimate uses. I wrote a thing about it to a Finnish newspaper and a few weeks after that the block was gone. I suspect that the newspaper conatcted archive.is and it was removed so they don&#x27;t get bad publicity.<p>It was kind of ironical that I had to subvert the archive.is censorship to read an archived version of a thread discussing web censorship in Sweden.<p>I think this error code is a bad idea as it legitimizes censorship.
评论 #11311489 未加载
评论 #11313288 未加载
评论 #11311784 未加载
评论 #11310991 未加载
评论 #11313778 未加载
评论 #11311742 未加载
评论 #11313217 未加载
评论 #11312147 未加载