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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Campaign for a new HTTP Error code: 451 - Blocked for legal reasons

362 点作者 JayEnn将近 12 年前

24 条评论

vilya将近 12 年前
Seems like a good idea, but the wrong way to achieve it. The right way, as I understand it, would be to write it up as an RFC and submit it to the IETF; and to contribute code for it to some of the popular web servers (apache, nginx, etc). The site doesn&#x27;t make any mention of either of those things.<p>Edit: oops, I was wrong. There is an RFC and it&#x27;s linked from <a href="http://www.451unavailable.org/what-is-error-451/" rel="nofollow">http:&#x2F;&#x2F;www.451unavailable.org&#x2F;what-is-error-451&#x2F;</a>
评论 #6217297 未加载
评论 #6217212 未加载
merlincorey将近 12 年前
I once worked somewhere where some resources could not be displayed to all clients. We chose to (ab)use HTTP 409 Conflict.<p>&gt; 10.4.10 409 Conflict<p>&gt; The request could not be completed due to a conflict with the current state of the resource. This code is only allowed in situations where it is expected that the user might be able to resolve the conflict and resubmit the request. The response body SHOULD include enough<p>&gt; information for the user to recognize the source of the conflict. Ideally, the response entity would include enough information for the user or user agent to fix the problem; however, that might not be possible and is not required.<p>&gt; Conflicts are most likely to occur in response to a PUT request. For example, if versioning were being used and the entity being PUT included changes to a resource which conflict with those made by an earlier (third-party) request, the server might use the 409 response to indicate that it can&#x27;t complete the request. In this case, the response entity would likely contain a list of the differences between the two versions in a format defined by the response Content-Type.
edent将近 12 年前
Discussion on HN from when the IETF Draft was created <a href="https://news.ycombinator.com/item?id=4099751" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=4099751</a><p>My blog post which helped inspire it <a href="http://shkspr.mobi/blog/2012/06/there-is-no-http-code-for-censorship-but-perhaps-there-should-be/" rel="nofollow">http:&#x2F;&#x2F;shkspr.mobi&#x2F;blog&#x2F;2012&#x2F;06&#x2F;there-is-no-http-code-for-ce...</a><p>Simultaneously glad and disgusted that there is a campaign around this.
chrisfarms将近 12 年前
Is this saying:<p>&quot;As a web user I want our ISPs&#x2F;governments to give us a nice error page so we understand what is going on when they DNS block or seize websites&quot;<p>Or is it saying:<p>&quot;As a web-master, when have to take down content due to legal proceedings I want a nice HTTP code to return&quot;<p>They give example of the first (Virgin Media), but that takes down an entire domain, so it&#x27;s kind of irrelevant if the correct HTTP code is returned, it&#x27;s not like that is going to be resolved quickly. 503 would be the correct code here.<p>The second might be useful to spiders (who might want to back-off spidering so often for a while), but then wouldn&#x27;t you just want to show your users a 404 with a nice reason why the content has gone.
评论 #6217234 未加载
评论 #6219285 未加载
yxhuvud将近 12 年前
I don&#x27;t get it? There are already drafts for it, which were created close in time to when Bradbury died.<p><a href="http://tools.ietf.org/html/draft-tbray-http-legally-restricted-status-00" rel="nofollow">http:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;draft-tbray-http-legally-restrict...</a>
评论 #6217340 未加载
DharmaSoldat将近 12 年前
Surprised no one has made any reference to Farenheit 451.<p>Allow me to be the first.<p>Thankfully websites are not flammable.
评论 #6218846 未加载
评论 #6221453 未加载
mcv将近 12 年前
For some reason, this article is blocked from my work due to proxy avoidance.<p>Somehow seems fitting.
corobo将近 12 年前
Surely this should be within the 5xx range of status codes? I get there&#x27;s a reference to be had using 451 but this is more of a server error than client.
评论 #6218911 未加载
评论 #6217339 未加载
评论 #6217449 未加载
venus将近 12 年前
Well, the cool thing about HTTP error codes is that you don&#x27;t need a campaign or get permission from the W3C, you can just start using them if you want.
评论 #6217168 未加载
评论 #6218289 未加载
krajzeg将近 12 年前
There is a lot of discussion below on whether 451 is the right error code and how to implement it properly, but I&#x27;m missing one thing - what&#x27;s the benefit of doing it as a status code at all?<p>If you&#x27;re going to say that it raises censorship awareness - Internet protocols are intended as useful technical standards for programs to communicate, not vehicles for political goals.<p>What is the <i>technical</i> benefit of failing with a different error code? Is there need for client software to react differently to a 451 and a 403? The status code is not intended for the human user. If we want to raise awareness, than we already have means to do that - a 403 with a descriptive page citing the reasons. Many websites already do that when complying to DMCA takedowns.
eatitraw将近 12 年前
Some sites in Russia actually return 451:<p>curl -I <a href="http://lurkmore.to/Конопля" rel="nofollow">http:&#x2F;&#x2F;lurkmore.to&#x2F;Конопля</a>
评论 #6218311 未加载
nawitus将近 12 年前
Technically speaking 403 can be returned if it&#x27;s blocked for legal reasons, but obviously it would be nice to know why it is forbidden.
评论 #6217240 未加载
jvdh将近 12 年前
I bet you they are really happy you submitted this smack in the middle of the holiday of their main employee&#x2F;volunteer :-).<p>Messages to their volunteer address get a vacation message that they&#x27;re away until September 1st.
nilved将近 12 年前
We should absolutely not be standardizing censorship.
评论 #6220170 未加载
alexchamberlain将近 12 年前
I got Access Denied at work...
mrab将近 12 年前
Is this really necessary? How about 456 - unavailable because someone spilled coffee on our backend server? Or 467 - unavailable because garden gnomes invaded our offices?
javindo将近 12 年前
I can see some reasoning behind this, but the reasoning is that the emphasis of the problem is &quot;people are angry at the site because something is blocked so let&#x27;s show an error code reflecting the real reason.&quot; Using 451 would take the emphasis away from the site and onto the legal oppressor.<p>On the other hand, why not inverse all inaccessible content to legal oppressors? Change the default meaning of 403 for example to &quot;Access denied for permissive or legal reasons&quot;.
评论 #6217145 未加载
p_papageorgiou将近 12 年前
The whole point of this is wrong... The internet is free, content shouldn&#x27;t be blocked for legal reasons
评论 #6217283 未加载
评论 #6217261 未加载
评论 #6217258 未加载
评论 #6220178 未加载
taopao将近 12 年前
452 Blocked for reasons which may or may not be legal but I probably shouldn&#x27;t say either way
dlitz将近 12 年前
How does this interact with the effort to encourage the use of HTTPS everywhere?
评论 #6219110 未加载
Inetgate将近 12 年前
Unfortunately, that page return 200 OK. Why does not it return 451 status code?
bugsense将近 12 年前
That would be great when you have to block access to OFAC listed countries
aaronkrolik将近 12 年前
Tried to open this link at work. Blocked for legal reasons :)
hawleyal将近 12 年前
That is a dumb error code.<p>404 already exists.
评论 #6218439 未加载