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
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.
Error 403: "The server understood the request, but is refusing to authorize it."
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."
The
Apache
The Apache ( ) are several Southern Athabaskan language-speaking peoples of the Southwestern United States, Southwest, the Southern Plains and Northern Mexico. They are linguistically related to the Navajo. They migrated from the Athabascan ho ...
web server returns 403 Forbidden in response to requests for
URL
A uniform resource locator (URL), colloquially known as an address on the Web, is a reference to a resource that specifies its location on a computer network and a mechanism for retrieving it. A URL is a specific type of Uniform Resource Identi ...
paths that corresponded to
file system directories when directory listings have been disabled in the server and there is no
Directory Index directive to specify an existing file to be returned to the browser. Some administrators configure the
Mod proxy
Mod, MOD or mods may refer to:
Places
* Modesto City–County Airport, Stanislaus County, California, US
Arts, entertainment, and media Music
* Mods (band), a Norwegian rock band
* M.O.D. (Method of Destruction), a band from New York City, US
* ...
extension to Apache to block such requests and this will also return 403 Forbidden. Microsoft
IIS responds in the same way when directory listings are denied in that server. In
WebDAV
WebDAV (Web Distributed Authoring and Versioning) is a set of extensions to the Hypertext Transfer Protocol (HTTP), which allows user agents to collaboratively author contents ''directly'' in an HTTP web server by providing facilities for conc ...
, 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.
Causes
A 403 status code can occur for the following reasons:
[HTTP status code 403](_blank)
How do I solve the problem with the 403 status code?
*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

Client request:
[Example of "Client request" and "Server response" for HTTP status code 403](_blank)
/ref>
GET /securedpage.php HTTP/1.1
Host: www.example.org
Server response:
HTTP/1.1 403 Forbidden
Content-Type: text/html
403 Forbidden
Forbidden
You don't have permission to access /securedpage.php on this server.
See also
* List of HTTP status codes
Hypertext Transfer Protocol (HTTP) response status codes are issued by a server in response to a client's request made to the server. It includes codes from IETF Request for Comments (RFCs), other specifications, and some additional codes us ...
* URL redirection
URL redirection, also called URL forwarding, is a World Wide Web technique for making a web page available under more than one URL address. When a web browser attempts to open a URL that has been redirected, a page with a different URL is opened. ...
Notes
References
External links
Apache Module mod_proxy – Forward
* Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
{{DEFAULTSORT:Http 403
Computer errors
Hypertext Transfer Protocol status codes