All original content is created in Ukrainian. Not all content has been translated yet. Some posts may only be available in Ukrainian.Learn more

Error 403 on the website: what it means and how to fix it

Post cover: Error 403 on the website: what it means and how to fix it
This content has been automatically translated from Ukrainian.
When a user tries to access a website but sees the message “403 Forbidden,” it causes surprise and frustration. Even experienced administrators of WordPress or other CMS websites encounter this problem. To restore access to the resource and avoid a recurrence of the situation in the future, it is important to understand the reasons for this error and know how to fix it quickly.
1.webp

What is a 403 error and why does it occur

A 403 error means that the server received the request but does not allow access to the requested resource. This is not a server error, and there is no need to worry that cheap hosting has let you down. This is a deliberate restriction of access — that is, the site “refuses” to show content to the user. Most often, the problem is related to the fact that the requester does not have the necessary permissions to view the page or file.
This may be due to incorrect access rights, the absence of an index file in the directory, IP address or regional restrictions, or incorrect settings in the .htaccess file. Additionally, access to a specific resource may be blocked due to malfunctioning plugins or during maintenance.

Main ways to resolve a 403 error

The first thing to do is to connect to the site via FTP. For this, you can use FileZilla, for example. Then proceed to check the settings that may be causing the error.

What to check:

  • .htaccess — a damaged or incorrect file often leads to access restrictions.
  • Access rights — incorrectly set permissions on files and folders.
  • Plugins — conflicts or errors in the operation of WordPress extensions.
After each of these steps, check whether the error has disappeared. If not, move on to the next item.
2.webp
Restore .htaccess and check permissions
The .htaccess file, which is usually located in the root folder of the site, contains rules for processing requests by the server. If there are errors in it, this can lead to blocking access to the site.
To recreate it:
  • Make a backup of the existing .htaccess.
  • Delete the file from the server.
  • Log in to the WordPress admin panel and in the “Settings → Permalinks” section, click “Save Changes” — this will automatically create a new .htaccess.
Also, pay attention to the access rights to files and folders. For folders, 755 or 750 is usually set, for files — 644 or 640. The wp-config.php file may require even stricter restrictions — 440 or 400.

Disabling plugins — another effective method

If you suspect that the error is caused by one of the plugins, you can try temporarily disabling all of them. This is done simply — just rename the plugins folder in the wp-content directory, for example, to plugins-stop.
After that, check if the site works. If so, rename the folder back and sequentially disable the plugins by changing their names until you find the culprit. Once the problematic plugin is identified, it can be deleted, and the others can be reactivated.
Situations where the 403 error appears are familiar to many website owners — and in most cases, it is resolved without involving specialists. Check for issues in the .htaccess file, ensure that permissions for files and folders are set correctly, and disable plugins that may have caused the failure. These are basic actions to start with.
To avoid similar difficulties in the future, it is recommended to keep the site up to date — update the management system and extensions. It would also be useful to set up logging on the server: if necessary, this will help quickly determine what went wrong. Regular maintenance and careful attention to the technical part of the site are key to its stable and secure operation.

This post doesn't have any additions from the author yet.

Google Ads for Dummies: A Step-by-Step Guide for a Successful Start
28 May 10:21

Google Ads for Dummies: A Step-by-Step Guide for a Successful Start

meme code
meme code@memecode
What is jemalloc and how does it relate to Ruby / Ruby on Rails
30 May 11:53

What is jemalloc and how does it relate to Ruby / Ruby on Rails

meme code
meme code@memecode
05 Jun 01:52

[Fixed] uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)

meme code
meme code@memecode
The preview in the network tab after the Chrome update has become very small.
05 Jun 18:23

The preview in the network tab after the Chrome update has become very small.

meme code
meme code@memecode
What is the HEIC format and why simply renaming it to .jpg is a bad idea
15 Jun 18:17

What is the HEIC format and why simply renaming it to .jpg is a bad idea

meme code
meme code@memecode
Чому вибір CMS важливий під час розробки сайту?
29 Jun 12:34

Чому вибір CMS важливий під час розробки сайту?

meme code
meme code@memecode
What is vibe coding?
25 Jul 21:51

What is vibe coding?

meme code
meme code@memecode
What is combinatorial explosion?
28 Jul 11:50

What is combinatorial explosion?

meme code
meme code@memecode
What is a brain stack?
28 Jul 19:37

What is a brain stack?

meme code
meme code@memecode
What is integer overflow?
15 Aug 08:28

What is integer overflow?

meme code
meme code@memecode
What is a HAR file (HTTP Archive)?
25 Aug 18:23

What is a HAR file (HTTP Archive)?

meme code
meme code@memecode
What is Bubble Sort (algorithm explanation)?
16 Sep 18:42

What is Bubble Sort (algorithm explanation)?

meme code
meme code@memecode