403 Error

A 403 error is an HTTP error code that indicates access to a specific URL is forbidden. Websites often display 403 errors with a generic message such as, "You don't have permission to access this resource."

There are several reasons a web server may produce a 403 forbidden error. Some of the most common include:

  1. A missing index page
  2. An empty directory
  3. Invalid folder permissions
  4. Invalid file permissions
  5. Invalid file ownership

When you access a website directory on an Apache web server (a URL ending with a forward slash "/"), the standard behavior is to display the contents of the index page (index.php, index.asp, etc). If no index page is available, the fallback option is to list the contents of the directory. However, for security purposes, many web servers are configured to disallow directory listings. Therefore, if you access an empty directory or a folder without an index page, you may receive a 403 error because the directory listing is forbidden.

Invalid file and folder permissions can also produce 403 errors. Generally, files and folders on web servers must have the following permissions enabled:

  • Files
    Owner: read, write
    Group: read
    Everyone: read
  • Folders
    Owner: read, write, execute
    Group: read, execute
    Everyone: read, execute

If a specific file or the parent folder has incorrect permissions, the web server may be unable to access it, producing a 403 forbidden error. Similarly, if a file's "owner" does not match the corresponding website user account, it may generate a 403 error. Ownership discrepancies can occur when files are transferred between accounts on a web server or when a file is uploaded by another user.

In some cases, access to a specific URL is intentionally forbidden for security reasons. In other cases, a forbidden error may be caused by an accidental website misconfiguration. If you unexpectedly receive a 403 error in your web browser, you can contact the webmaster of the corresponding website and provide the URL that produced the error.

Updated June 19, 2021 by Per C.

quizTest Your Knowledge

Why has the Telnet protocol mostly been replaced by the SSH protocol?

A
SSH uses less data than Telnet
0%
B
SSH is more secure than Telnet
0%
C
SSH is faster than Telnet
0%
D
SSH supports more languages than Telnet
0%
Correct! Incorrect!     View the Telnet definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of 403 Error on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.