WordPress : Forbidden error when saving an article


You do not have permission to access this resource.

It is possible that a “Forbidden” message will be displayed in WordPress when you try to save a post containing the term “wp-config php” (with a dot between config and php) due to the security rules built into WordPress. The “wp-config php” file is an important file that contains connection information to the WordPress database, as well as other information that is important to the operation of your site.

To avoid this, you can rename the term “wp-config php” in your post or avoid including it in your posts. If you absolutely need to use the term “wp-config php” in your post, you can modify the WordPress security rules by modifying your WordPress site’s .htaccess file or by using a third-party security plugin. However, this can leave your site vulnerable to attack, so it’s important to take extra precautions to protect your site.

Other Reasons

There are several other reasons why WordPress may display a “Forbidden” message when a user tries to access a page or edit content on a site. Here are some of the most common reasons:

  1. Permission error: files or folders on your site may have incorrect permissions, which can result in a “Forbidden” error. You can change file or folder permissions using your FTP client or hosting control panel.
  2. Security rules – some security plugins or server configurations may block access to certain pages or files on your site for security reasons.
  3. Corrupted files: If some of the files on your WordPress site are corrupted or damaged, this may also cause a “Forbidden” error.
  4. Server configuration problem: Incorrect server configuration can also cause a “Forbidden” error. You can contact your hosting company for help with this.
  5. Firewalls: Some firewalls may also block access to your website, which may cause a “Forbidden” error.
  How to create a WordPress theme?

In any case, it is important to check your site’s error logs to understand the exact cause of the “Forbidden” error and take the necessary steps to correct it.

Leave a Comment