403 Forbidden error: what it means and how to fix it on WordPress

What a 403 Forbidden error means, why WordPress sites show it, and the fixes to try in order: from clearing your browser to file permissions, .htaccess and security plugins.

By Pluginora Team

Published 30 Nov 2026 10 min read

403 Forbidden error guide: the fixes to check in order, from security plugins to file permissions
In this article
  1. What does a 403 Forbidden error mean?
  2. 403 vs 401 vs 404: what’s the difference?
  3. What causes a 403 Forbidden error on WordPress?
  4. How to fix a 403 Forbidden error: 9 steps in order
  5. 403 Forbidden error on wp-admin or the login page
  6. How to stop it happening again
  7. 403 Forbidden error checklist
  8. Frequently asked questions
  9. Sources

A 403 Forbidden error means the web server understood your request but refuses to let you in. On a WordPress site it is almost always caused by one of three things: a security plugin or firewall blocking you, a broken .htaccess file, or wrong file permissions. Work through the fixes below in order, starting with the quick checks in your browser, and most sites are back within half an hour.

Who this is for: WordPress site owners who see “403 Forbidden” on their own site, on wp-admin or on a single page. Facts checked on 30 November 2026 against the WordPress and MDN documentation.

Key takeaways

  • A 403 Forbidden error is a refusal: the server knows what you asked for and won’t serve it to you.
  • Logging in again doesn’t fix a 403. That is what separates it from a 401 error.
  • On WordPress, the usual causes are a security plugin or firewall, a corrupt .htaccess file, or wrong file permissions.
  • WordPress’s own guidance is 644 for files, 755 for folders and 440 or 400 for wp-config.php on typical shared hosting.
  • If only wp-admin or the login page shows the error, suspect a security rule first.

What does a 403 Forbidden error mean?

Every time your browser asks a server for a page, the server replies with a three digit status code. 200 means “here you go”. 404 means “not found”. 403 means “I know what you want, and you are not allowed to have it.”

MDN’s definition puts it simply: the server understood the request but refuses to process it, and unlike a 401, authenticating again makes no difference.

The message looks different depending on the server:

  • 403 Forbidden
  • Forbidden: You don’t have permission to access / on this server
  • 403 Forbidden nginx
  • Access denied
  • HTTP Error 403: The request was forbidden by rules

They all mean the same thing.

In short: a 403 Forbidden error is the server saying no on purpose, not a page that is missing.

403 vs 401 vs 404: what’s the difference?

CodeNameWhat it meansDoes logging in help?
401UnauthorizedYou haven’t proved who you areYes, usually
403ForbiddenThe server won’t let you in, whoever you areNo
404Not FoundNothing exists at that addressNo
500Internal Server ErrorSomething broke on the serverNo

Some servers deliberately show a 404 instead of a 403 so that they don’t reveal a page exists. So if you are sure a page is there but see “not found”, the cause can still be a permission rule.

In short: a 401 asks you to log in, a 403 refuses you anyway, and a 404 has nothing to show.

What causes a 403 Forbidden error on WordPress?

CauseTypical signHow common
Security plugin or firewall rule403 only on wp-admin, the login page, or after saving somethingVery common
Corrupt or edited .htaccess fileWhole site shows 403 after installing or updating a pluginVery common
Wrong file or folder permissions403 after moving hosts, restoring a backup or uploading by FTPCommon
CDN or host firewall (for example Cloudflare or ModSecurity)403 for some visitors, countries or actions onlyCommon
Missing index file403 on the home page of a new or broken installOccasional
Hotlink protectionImages show 403 when used on other sitesOccasional
Malware or a hacked .htaccessOdd redirects or rules you didn’t addRare, but serious

The pattern of where the error appears is your best clue. If the whole site is forbidden, look at .htaccess and permissions. If only the admin area is, look at security rules. If only some visitors see it, look at your CDN or firewall.

In short: where the 403 Forbidden error appears tells you where to look first.

How to fix a 403 Forbidden error: 9 steps in order

Take a backup before changing files, if you can still reach your host’s control panel. Then work down this list and test the site after each step.

1. Reload and check the address

Refresh the page once, and make sure the address is right. A typo that points at a folder rather than a page (for example /wp-content/uploads/ instead of a file inside it) can produce a 403, because servers usually refuse to list folder contents.

2. Clear your browser cache and cookies

An old cached response or a stale login cookie can keep showing the error after the cause is fixed. Clear them, or try a private window. If the site works in a private window, the problem was on your side.

3. Try another network

Security tools often block by IP address. If the site works on your phone’s mobile data but not on your office wifi, your IP has been blocked by a security plugin, your host’s firewall or your CDN. Ask your host to check, or unblock yourself in the security tool’s settings.

4. Deactivate your plugins

A plugin, most often a security or firewall plugin, is the single most common cause. If you can reach wp-admin, deactivate all plugins and test. If the error is gone, reactivate them one at a time to find the culprit.

If you can’t reach wp-admin, use your host’s file manager or FTP: open wp-content and rename the plugins folder to plugins_off. WordPress then loads with no plugins. Rename it back afterwards and reactivate plugins one by one.

5. Restore the default .htaccess file

On Apache and LiteSpeed servers, the .htaccess file in your site’s main folder controls access rules. Plugins add rules to it, and one bad line can forbid the whole site.

  1. In your file manager, find .htaccess in the folder that holds wp-config.php (turn on “show hidden files” if you can’t see it).
  2. Download a copy, then rename it to .htaccess_old.
  3. Create a new .htaccess file with the default WordPress rules from the WordPress documentation:
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
  1. Test the site. If it works, log in and go to Settings, Permalinks and press Save Changes so WordPress writes its own rules again.

If your site is in a subfolder or is a multisite network, use the matching version from the same WordPress page instead. Sites on Nginx don’t use .htaccess at all; their rules live in the server configuration, so ask your host.

6. Fix file and folder permissions

Permissions decide who can read, write and run each file. Too strict, and the web server can’t read your files, which causes a 403. WordPress’s guidance for typical shared hosting is:

WhatRecommended permission
Folders755 (or 750)
Files644 (or 640)
wp-config.php440 or 400

You can change permissions in your host’s file manager or an FTP app such as FileZilla (right click, File permissions). Many hosts also have a “fix permissions” button. Never set anything to 777: it lets anyone on the server write to the file and is a security risk.

7. Check your CDN and host firewall

If you use Cloudflare or a similar service, look at its firewall or security events log for blocked requests to your site. Rules such as “block this country” or bot protection can catch real visitors or you. Your host may also run ModSecurity, a server firewall that blocks requests matching suspicious patterns; this often shows up when saving a post with certain code or words in it. Your host can check its logs and whitelist the rule.

To rule the CDN out, pause it briefly (Cloudflare has a “Pause Cloudflare on site” option) and test again.

If your home page shows a 403, make sure index.php exists in your main WordPress folder. Without an index file, the server tries to list the folder, and most servers forbid that.

If images show 403 only when embedded on other websites, that is hotlink protection doing its job. If your own site’s images are blocked, check that your domain (with and without www) is on the allowed list in your host or CDN’s hotlink settings.

9. Scan for malware, then contact your host

If you find rules in .htaccess that you didn’t add, redirects to strange sites, or unfamiliar files, the site may be hacked. Run a malware scan through your host or a security service and change your passwords.

If nothing above works, contact your host with the exact address, the time you saw the error and your IP address. They can read the server error log, which usually names the rule or file behind the 403.

In short: browser, plugins, .htaccess, permissions, firewall, then your host. Test after every step.

403 Forbidden error on wp-admin or the login page

When the rest of the site works but wp-admin or wp-login.php shows a 403 Forbidden error, a security rule is almost always the reason:

  • A security plugin has locked out your IP after failed logins, or limits admin access to certain IPs or countries. Unblock yourself in its settings, or rename its folder in wp-content/plugins to switch it off.
  • An .htaccess rule protects wp-admin by IP address. Look for lines with Require ip, Deny from or Allow from and check your current IP is included.
  • A host or CDN rule protects the login page. Check its firewall log.

If the 403 appears only when you press Save or Update on a post, your host’s ModSecurity is the likely cause. Ask them to check the log for the moment you saved.

In short: a 403 on the admin side alone almost always means a security rule, not permissions.

How to stop it happening again

  1. Keep a backup routine. Daily backups make any file fix a five minute job.
  2. Change one thing at a time. Most 403 errors appear right after installing a plugin, editing .htaccess or moving the site.
  3. Note your security rules. If you limit admin access by IP, write down where the rule lives so you can update it when your IP changes.
  4. Watch for errors. A regular site check catches broken pages and blocked addresses before visitors do. Our free Ora Connect plugin checks for broken links and missing pages, and with a free account Ora can look at your site’s health, plugin list and recent errors and suggest a fix. You approve every change, and each one can be undone in one click.
  5. Check search engines aren’t blocked. A firewall that blocks Googlebot or AI crawlers can quietly remove your pages from search. Our guide What is llms.txt? And how to add one to WordPress explains which crawlers to allow in robots.txt.

In short: back up, change one thing at a time, and run regular checks.

403 Forbidden error checklist

  • Reload, check the address, clear cache, try a private window.
  • Try a different network to rule out an IP block.
  • Deactivate plugins (rename the plugins folder if you’re locked out).
  • Rename .htaccess and restore the default WordPress rules.
  • Set folders to 755, files to 644 and wp-config.php to 440 or 400.
  • Check your CDN and host firewall logs.
  • Make sure index.php exists.
  • Scan for malware, then contact your host with the time and your IP.

Frequently asked questions

Is a 403 Forbidden error my fault or the website’s?

If it’s someone else’s site, it is almost always on their side, though an IP block can be triggered by a VPN or shared network. If it’s your own WordPress site, the cause is usually a plugin, .htaccess rule or permission setting you can fix.

Can a VPN cause a 403 Forbidden error?

Yes. Many firewalls and CDNs block IP addresses used by VPNs or flagged for spam. Turn the VPN off and try again.

Will a 403 error hurt my Google rankings?

If Google keeps getting a 403 on a page, it may drop that page from its results. A short outage that you fix quickly usually does no lasting harm. Check Search Console’s Pages report for blocked URLs after fixing.

What permissions should WordPress files have?

On typical shared hosting, WordPress recommends 644 (or 640) for files, 755 (or 750) for folders, and 440 or 400 for wp-config.php. Never use 777.

How do I fix a 403 Forbidden error in Nginx?

Nginx doesn’t use .htaccess. Check file permissions, make sure index.php is listed as an index file in the server configuration, and look for deny rules there. On managed hosting, ask your host to check the Nginx error log.

Why do I get a 403 Forbidden error when uploading files?

Usually a firewall rule such as ModSecurity is blocking the upload, or the uploads folder has the wrong permissions. Set wp-content/uploads to 755 and ask your host to check the firewall log.

What is the difference between 403 Forbidden and 401 Unauthorized?

A 401 means you need to log in or your login failed, so valid credentials can fix it. A 403 means the server refuses access even if you are logged in.

Sources

Written by Pluginora Team

We build WordPress plugins at Pluginora and write practical guides from what we test on real WordPress sites. Plugins, prices and features change, so check the vendor's own pages before you buy, and back up your site before changing anything on it.

Share this article

Cookie settings