RFC 7725: HTTP 451: Unavailable for legal reasons

Summary

In June 2012, Tim Bray proposed a dedicated HTTP status code for legally enforced blocking, which appeared as RFC 7725 in February 2016. Code 451 tells the client that a resource is withheld because of a legal demand, and the response body should state who demands this and on what basis. The number alludes to Ray Bradbury's novel Fahrenheit 451, and the RFC's acknowledgements explicitly thank Bradbury.

Why 403 was not enough

The impulse came from Terence Eden, who noted in a blog post that 403 Forbidden does not fit blocking by order. 403 only says that the server refuses access; 451 says that a legal demand is behind it.

The example in the RFC denies access in the Roman Province of Judea under the Lex Julia Majestatis because the server is said to be operated by the People's Front of Judea. This is a nod to Monty Python's Life of Brian.

Whoever blocks should say so

The code need not come from the actual web server. ISPs, caches or DNS servers can also block and should then identify themselves with a Link header carrying rel="blocked-by". What is meant is the entity implementing the block technically, not the authority ordering it.

The security considerations stay sober: clients cannot rely on 451, because some authorities do not want to disclose that a block was demanded at all.

Ideas

  • 451 separates legal blocks from technical errors.
  • The response body should name the demand, legal basis and affected parties.
  • A Link header with blocked-by names the blocking entity.
  • 451 says nothing about whether the resource exists.
  • Responses with 451 are cacheable by default.
  • The RFC concedes that a VPN or Tor can bypass such blocks.

Insights

  • A status code cannot prevent blocking, but it can make it visible and measurable.
  • Transparency depends on the will of those involved: whoever wants to hide a block simply does not send a 451.

Facts

  • RFC 7725 appeared in February 2016 and is five pages long.
  • Tim Bray's first draft dates from June 2012.
  • The blocked-by link relation was registered with IANA by RFC 7725.
  • The acknowledgements name Terence Eden and Ray Bradbury.

References

Remarks

  • The RFC creates no obligation to report blocks with 451; whether the code appears is up to the blocking entity.

Recommendations

  • Send 451 only for an actual legal demand; 403 remains for your own house rules.
  • Name the legal basis and the ordering authority in the response body where permitted.
  • If you run blocking infrastructure yourself, set a Link header with rel="blocked-by".

Read the RFC at the RFC Editor

Search the Web Archive

Found a mistake or have something to add? Get in touch.