TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

362 pointsby JayEnnalmost 12 years ago

24 comments

vilyaalmost 12 years ago
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 未加载
merlincoreyalmost 12 years ago
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.
edentalmost 12 years ago
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.
chrisfarmsalmost 12 years ago
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 未加载
yxhuvudalmost 12 years ago
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 未加载
DharmaSoldatalmost 12 years ago
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 未加载
mcvalmost 12 years ago
For some reason, this article is blocked from my work due to proxy avoidance.<p>Somehow seems fitting.
coroboalmost 12 years ago
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 未加载
venusalmost 12 years ago
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 未加载
krajzegalmost 12 years ago
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.
eatitrawalmost 12 years ago
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 未加载
nawitusalmost 12 years ago
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 未加载
jvdhalmost 12 years ago
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.
nilvedalmost 12 years ago
We should absolutely not be standardizing censorship.
评论 #6220170 未加载
alexchamberlainalmost 12 years ago
I got Access Denied at work...
mrabalmost 12 years ago
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?
javindoalmost 12 years ago
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_papageorgioualmost 12 years ago
The whole point of this is wrong... The internet is free, content shouldn&#x27;t be blocked for legal reasons
评论 #6217283 未加载
评论 #6217261 未加载
评论 #6217258 未加载
评论 #6220178 未加载
taopaoalmost 12 years ago
452 Blocked for reasons which may or may not be legal but I probably shouldn&#x27;t say either way
dlitzalmost 12 years ago
How does this interact with the effort to encourage the use of HTTPS everywhere?
评论 #6219110 未加载
Inetgatealmost 12 years ago
Unfortunately, that page return 200 OK. Why does not it return 451 status code?
bugsensealmost 12 years ago
That would be great when you have to block access to OFAC listed countries
aaronkrolikalmost 12 years ago
Tried to open this link at work. Blocked for legal reasons :)
hawleyalalmost 12 years ago
That is a dumb error code.<p>404 already exists.
评论 #6218439 未加载