A 451 tells you the server cannot serve the resource because of a legal demand: a court order, a regulation, a takedown notice or a sanctions rule. The status is defined in RFC 7725 and the number is a nod to the novel Fahrenheit 451. See the HTTP 451 reference for the summary.
Unlike 403 Forbidden, which only says access is refused, 451 states the reason category. The response can name the entity that blocked the content with a Link header using rel="blocked-by". That entity might be the server operator or an intermediary such as an ISP, and the RFC notes that the header identifies whoever implemented the block, not necessarily who ordered it.
If you are a visitor
- Read the page. A well-formed 451 explains what was blocked and often the authority or law behind it.
- Check whether the block is regional. Content may be unavailable only in your country or state. A site-wide message such as "not available in your region" is common after privacy or sanctions rules.
- Confirm it is a real 451. Some pages show a legal message while returning a different status. Run the URL through the HTTP Status Checker and compare.
- Look for an alternative source. The same information may be available from a different outlet or an official site.
- Do not assume you are being tracked or banned. The block is usually based on the location of your IP address, not your identity.
If you own or operate the site
1. When 451 is the right response
Use 451 only when a legal demand genuinely stops you serving the resource. Typical examples are court-ordered removals, a defamation or copyright injunction, government blocking orders, and data protection or sanctions compliance that makes you stop serving a region. For a missing page use 404 or 410, and for access control use 403.
Keep legal and compliance staff involved. The status code is a communication tool, not legal advice.
2. Implement it in nginx
location = /restricted-article/ {
add_header Link '<https://example.com/legal-notice>; rel="blocked-by"' always;
return 451 "This content is unavailable for legal reasons.\n";
}
For a regional block, combine it with a GeoIP database module (for instance ngx_http_geoip2_module), mapping the visitor's country to a flag and returning 451 when set. Test carefully, since incorrect geolocation affects real users.
3. Implement it in Apache
RewriteEngine On
RewriteRule ^restricted-article/?$ - [R=451,L]
ErrorDocument 451 /legal-notice.html
Apache accepts 451 as a numeric status in R= (the flag needs a status in the 3xx range for redirects, but non-redirect statuses end processing), and recent versions know the standard reason phrase. Verify on your version, since behavior of unusual codes can differ.
4. Return a helpful body
The RFC suggests the response should explain what was blocked and why where it is legal to say so, and may include details such as the legal authority. A short notice page with a contact link for disputes is better than a blank error. Avoid disclosing confidential legal details.
5. Intermediary blocks you did not create
Sometimes your site returns 451 to certain visitors because of a CDN, a hosting provider or an ISP in their country, and your server never sees the request. Diagnose by comparing responses from several locations. Identify intermediaries with the CDN Detector and the Website Hosting Checker, and read the headers with the HTTP Header Checker. Use the IP Lookup and WHOIS Lookup to learn who operates a blocking address range.
If your hosting provider has suspended content after a notice, contact their abuse or legal team and follow their counter-notice process.
SEO and monitoring effects
Search engines treat 451 as an error status and may drop the URL from results if it persists. If the block is regional, serve the content normally to other regions, and consider that crawlers often come from the US. Mark the affected URLs in your own notes so removal is reversible if the order is lifted.
Use an Uptime Monitor with a status code check to confirm a restricted URL keeps returning 451, and that unrestricted pages still return 200, so a broad rule does not block the whole site by accident. Read website downtime and SEO impact for how errors affect rankings.
Next steps
- Read the HTTP 451 reference.
- Compare with 403 Forbidden and 410 Gone.
- Check headers with the HTTP Header Checker.
- Identify who hosts a site with the Website Hosting Checker.
FAQ
Why is the code 451?
It references Ray Bradbury's novel Fahrenheit 451 about book burning. The code was approved in RFC 7725.
Is 451 the same as being geoblocked?
Geoblocking is a technique and 451 is one way to communicate it. Many geoblocked sites use 403 instead.
Can a 451 be temporary?
Yes. If the legal demand is lifted, return the content with 200. Caches may need purging.
Do I have to use 451?
No, it is a standard option, not a legal requirement. It helps transparency for people who are blocked.
Get notified when this fix updates
Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.
This page is general information written by our editorial team and updated when documentation changes. Servers and providers differ, so test changes safely first. See our editorial policy and disclaimer.