How do I fix a 403 Forbidden error in WordPress?

On this page
  1. Context
  2. What the error means
  3. Most common causes
  4. 1. Incorrect file or folder permissions
  5. 2. Corrupted or restrictive .htaccess rules
  6. 3. Security rules or firewall blocking access
  7. 4. WordPress security plugins
  8. 5. DNS or hosting-level restrictions
  9. How to diagnose the issue
  10. 1. Check if the error is consistent
  11. 2. Check server logs or hosting panel
  12. 3. Test without .htaccess rules
  13. 4. Disable security plugins (if accessible)
  14. Practical implications
  15. Summary

Context

A 403 Forbidden error in WordPress means the server understood the request but refuses to grant access. The issue is not caused by WordPress itself, but by server-level restrictions, security rules, file permissions, or firewall configurations.

In mybox, this type of error often appears when access to a page, file, or admin area is blocked by security settings or incorrect server configuration.

What the error means

A 403 error indicates that access to the requested resource is denied. This can happen on:

  • website pages
  • wp-admin login
  • specific files or directories
  • REST API or AJAX requests

The website may still be online, but certain parts are blocked.

Most common causes

1. Incorrect file or folder permissions

Files and directories must have correct permissions:

  • folders: 755
  • files: 644

Incorrect permissions can prevent the server from reading website files.

2. Corrupted or restrictive .htaccess rules

The .htaccess file controls access rules on Apache/LiteSpeed servers.

A misconfiguration can:

  • block access to the entire site
  • restrict specific directories
  • trigger a 403 error unexpectedly

3. Security rules or firewall blocking access

A 403 can be triggered by server-level protection systems such as:

  • brute-force protection on login pages
  • WAF (Web Application Firewall) rules
  • IP or country-based restrictions

For example, repeated failed login attempts can temporarily block access to wp-admin.

4. WordPress security plugins

Security plugins may block:

  • suspicious requests
  • repeated login attempts
  • specific IP addresses or bots

This can result in a 403 error even when the site is functioning normally.

5. DNS or hosting-level restrictions

In some cases, the hosting environment may block access due to:

  • misconfigured DNS
  • suspended hosting services
  • external firewall rules

How to diagnose the issue

1. Check if the error is consistent

Try opening:

  • homepage
  • wp-admin
  • a specific page

This helps determine if the block is global or partial.

2. Check server logs or hosting panel

Logs usually indicate:

  • blocked IP address
  • denied file access
  • security rule triggering the block

3. Test without .htaccess rules

Temporarily renaming .htaccess can help identify if it is causing the issue.

4. Disable security plugins (if accessible)

If the admin panel is reachable, disabling security plugins may help isolate the cause.

Practical implications

  • A 403 error is a server-side block, not a browser issue
  • The website may appear online but be partially inaccessible
  • The cause is usually configuration or security-related, not WordPress core
  • Fixing it typically requires file permission, firewall, or rule adjustments

Summary

A WordPress 403 error occurs when the server denies access to a resource due to permissions or security rules. The most common causes are incorrect file permissions, .htaccess configuration issues, or security/firewall restrictions. Once the blocking rule is identified and corrected, access is restored.

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.