A 403 Forbidden error means the web server got your request and refused to serve it. In most cases WordPress never even starts, which is why you see a bare server page (“Forbidden. You don’t have permission to access this resource.”) instead of a WordPress error.
It can hit the whole site, only /wp-admin/, only the Save button, or only your own IP. Where it happens tells you most of the cause, so start there.
As of 2026-12-02 this is still a common question in the WordPress.org support forums, and the answers there point at the same five suspects: file permissions, .htaccess, a security plugin, a server firewall (ModSecurity or another WAF), and web server access rules.
Narrow it down before you change anything
Answer these questions first. Each one points at a different step below.
- The whole site, for every visitor: almost always permissions, ownership or a broken
.htaccess. Go to Step 2. - Only you, or only from one network: your IP is blocked by a security plugin, the host firewall or Cloudflare. Try from mobile data. If the site loads there, go to Step 4.
- Only when saving a post, a menu or a form: a WAF rule (ModSecurity, Coraza, Cloudflare) matched something in the request body. Go to Step 4.
- Only
/wp-admin/orwp-login.php: a security plugin rule or an.htaccessblock someone added to protect the login. Steps 3 and 4. - Only a folder URL like
/wp-content/uploads/: that is normal. Directory listing is off and there is no index file, so the server returns 403 on purpose.
Then open the server error log. On Apache the matching line usually says client denied by server configuration or Permission denied, or names a ModSecurity rule ID. That one line saves you the guessing.
# Apache (Debian/Ubuntu)
tail -n 50 /var/log/apache2/error.log
# Nginx
tail -n 50 /var/log/nginx/error.log
On shared hosting you won’t have these paths. Look for “Errors” or “Logs” in the control panel instead.
Step 1. Back up the files you will touch
You are going to rename .htaccess, change permissions and maybe rename plugin folders. Copy them first so you can roll back.
cd /path/to/wordpress
cp .htaccess .htaccess.bak
tar czf ~/wp-before-403-fix.tar.gz .htaccess wp-config.php wp-content/plugins
If you can’t SSH in, download .htaccess and wp-config.php over SFTP before you continue.
Step 2. Reset file permissions and ownership
The web server must be able to read every file and enter every folder. The WordPress file permissions guide says directories should be 755 or 750, files 644 or 640, and no directory should ever be 777. A folder set to 700 or a file set to 600 by a migration or an unzip tool gives you exactly this 403.
Run this from the WordPress root to put everything back to the usual values:
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod 640 wp-config.php
These commands print nothing when they succeed. If you get “Operation not permitted”, the files belong to another user and you need to fix ownership first.
Ownership matters as much as the mode. After a migration done as root, files often belong to root while PHP runs as www-data or as your account user. Check it and set it back:
ls -la | head -n 5
sudo chown -R www-data:www-data /path/to/wordpress
💡 Replace www-data with the user your web server and PHP run as. On cPanel and most shared hosts that is your account username, not www-data.
Wrong owners also make WordPress ask for FTP details on updates. I covered that side in WordPress Asks for FTP Credentials? Fix File Ownership First.
If the permissions look right and you are on a RHEL, CentOS, Rocky or Alma server, SELinux can still deny access. getenforce tells you whether it is enforcing, and the WordPress guide linked above lists what to check next.
Step 3. Replace .htaccess with the default WordPress rules
A single Deny from all, Require all denied or IP allowlist added by a plugin or a past developer blocks everyone. Rename the file to test:
mv .htaccess .htaccess.old
Reload the site. If the homepage loads now (posts may give 404 for the moment), the old file was the problem. Create a new .htaccess with the default block:
# 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
Then go to Settings > Permalinks and click Save Changes. This block comes from the WordPress Apache HTTPD documentation.
Copy the rules you still need from .htaccess.old one section at a time and reload after each. The one that brings the 403 back is your culprit. Safe examples are in WordPress .htaccess file examples.
Also look for a stray .htaccess inside wp-admin or wp-content. Some security plugins drop one there with deny rules.
On Nginx there is no .htaccess. Look for deny all; or allow lines in the server block that match more than they should, and run nginx -t before reloading.
Step 4. Rule out security plugins and the firewall
If the 403 page looks branded (Wordfence, Sucuri, Cloudflare, your host’s logo), the block comes from that layer, not from file permissions.
Disable all plugins without logging in. With WP-CLI:
wp plugin deactivate --all --skip-plugins --skip-themes
WP-CLI ends with a “Success” line when the plugins are deactivated. Without SSH, rename wp-content/plugins to plugins_old over SFTP, which has the same effect.
If the site loads now, activate plugins one at a time (wp plugin activate plugin-slug) until the 403 returns. For a security plugin, don’t leave it off. Unblock your IP or allowlist the URL in its settings, then turn it back on.
💡 Wordfence’s firewall can keep running after you rename its folder, because it is loaded through auto_prepend_file in .user.ini or .htaccess. Remove that line if it points to a missing wordfence-waf.php.
When plugins are not the cause and the 403 appears only on save or on certain URLs, a server WAF rule is the usual reason. Ask your host for the ModSecurity log entry at the time of your failed request. They can disable that one rule ID for your domain instead of switching the whole firewall off. With Cloudflare, check the Security Events log for the blocked request.
If you run your own server with OpenPanel, both checks are in the user panel. Fix Permissions resets ownership and file modes under /var/www/html/, and the Web Firewall page (Coraza with the OWASP CRS) shows the logs and lets you disable a single rule per domain or switch a domain to monitor only. In cPanel you usually get a ModSecurity on/off switch per domain, and per-rule exceptions need the host.
A 403 that only hits one plugin’s background requests is a slightly different case. I wrote about that pattern in WP Rocket Preload 403 Errors.
Step 5. Check the index file and directory listing
If the root URL returns 403 but /index.php works, the server does not know to serve index.php as the default file. Add this line to the top of .htaccess on Apache:
DirectoryIndex index.php index.html
On Nginx, the server block needs index index.php index.html;. If index.php is missing from the root entirely, the upload was incomplete. Re-upload the WordPress core files without touching wp-content and wp-config.php.
Keep it from coming back
A 403 usually follows a change: a migration, a restored backup, a new security plugin or a host moving the site to another server. After any of those, run the permission check from Step 2 and load both the front end and /wp-admin/ in a private window.
Don’t fix a 403 with chmod 777. The error may go away, but any process on the server can then write to your files, and some hosts refuse to run PHP from world-writable folders, which just gives you a different error.
TL;DR: Find out who is blocked and where, read the error log, then reset permissions to 755/644 with the right owner, swap .htaccess for the default WordPress rules, and deactivate plugins to rule out a security block. If it still happens only on save or from one IP, get the exact firewall rule ID from your host or WAF log and allowlist it.

