Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

HTTP 403

From Wikipedia, the free encyclopedia
HTTP status code indicating that access is forbidden to a resource
"403 Forbidden" redirects here. For the Mr. Robot episode, see403 Forbidden (Mr. Robot).
HTTP
Request methods
Header fields
Response status codes
Security access control methods
Security vulnerabilities

HTTP 403 is an HTTP status code meaning access to the requested resource is forbidden. The server understood the request, but will not fulfill it, if it was correct.

Specifications

[edit]

HTTP 403 provides a distinct error case from HTTP 401; while HTTP 401 is returned when the client has not authenticated, and implies that a successful response may be returned following valid authentication, HTTP 403 is returned when the client is not permitted access to the resource despite providing authentication such as insufficient permissions of the authenticated account.[a]

Error 403: "The server understood the request, but is refusing to authorize it."[1]: §15.5.4 

Error 401: "The 401 (Unauthorized) status code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource."[1]: §15.5.2 

TheApache web server returns 403 Forbidden in response to requests forURL[2] paths that corresponded tofile systemdirectories when directory listings have been disabled in the server and there is noDirectory Index directive to specify an existing file to be returned to the browser. Some administrators configure theMod proxy extension to Apache to block such requests and this will also return 403 Forbidden. MicrosoftIIS responds in the same way when directory listings are denied in that server. InWebDAV, the 403 Forbidden response will be returned by the server if the client issued a PROPFIND request but did not also issue the required Depth header or issued a Depth header of infinity.[2]

Causes

[edit]

A 403 status code can occur for the following reasons:[3]

  • Insufficient permissions: The most common reason for a 403 status code is that the user lacks the necessary permissions to access the requested resource. This can mean that the user is not logged in, has not provided valid credentials, or does not belong to the appropriate user group to access the resource.
  • Authentication required: In some cases, the server requires authentication to access certain resources. If the user does not provide valid credentials or if the authentication fails, a 403 status code is returned.
  • IP restrictions: The server may also restrict access to specific IP addresses or IP ranges. If the user's IP address is not included in the list of permitted addresses, a 403 status code is returned.
  • Server configuration: The server's configuration can be set to prohibit access to certain files, directories, or areas of the website. This can be due to a misconfiguration or intentional restrictions imposed by the server administrator.
  • Blocked by firewall or security software: A 403 status code can occur if a firewall or security software blocks access to the resource. This may happen due to security policies, malware detection, or other security measures.

Examples

[edit]
MediaWiki error message

Client request:[4]

GET/securedpage.phpHTTP/1.1Host:www.example.org

Server response:[4]

HTTP/1.1403ForbiddenContent-Type:text/html<html><head><title>403 Forbidden</title></head><body><h1>Forbidden</h1><p>You don't have permission to access /securedpage.php on this server.</p></body></html>

See also

[edit]

Notes

[edit]
  1. ^See#Substatus error codes for IIS for possible reasons of why a webserver may refuse to fulfill a request.

References

[edit]
  1. ^abR. Fielding; M. Nottingham; J. Reschke, eds. (June 2022).HTTP Semantics.Internet Engineering Task Force.doi:10.17487/RFC9110.ISSN 2070-1721. STD 97. RFC9110.Internet Standard 97. ObsoletesRFC 2818,7230,7231,7232,7233,7235,7538,7615 and7694. UpdatesRFC 3864.
  2. ^ab"HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)".IETF. June 2007. Archived fromthe original on March 3, 2016. RetrievedJanuary 12, 2016.
  3. ^HTTP status code 403 How do I solve the problem with the 403 status code?
  4. ^abExample of "Client request" and "Server response" for HTTP status code 403

External links

[edit]
System failure
Application failure
Device and data errors
Other
Lists
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=HTTP_403&oldid=1279213461"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp