
A 403 Forbidden error means the server understood your request but is refusing to authorize it — you are effectively locked out of your own site. It can block the entire website, the wp-admin login page, or specific pages. The 403 forbidden error WordPress fix usually comes down to three things: wrong file permissions, a corrupted .htaccess file, or an overzealous security plugin. In this 2026 guide, we explain the causes and walk you through seven proven fixes to regain access.
What Causes the 403 Forbidden Error in WordPress?
The server is actively saying “no” — unlike a 404, the page exists, but access is denied. The most common causes in WordPress are:
- Incorrect file or directory permissions: The number-one cause. If permissions are too restrictive, the web server cannot read the files it needs. Correct values are 755 for folders and 644 for files (wp-config.php can be tightened to 600/640). Never use 777 — it is a security hole.
- Corrupted or misconfigured .htaccess file: Bad rewrite rules or deny directives in .htaccess can block legitimate requests, including your own access to wp-admin.
- Security plugin blocking you: Firewalls like Wordfence or Sucuri sometimes block your own IP after failed logins, or a misconfigured rule blocks admin pages outright.
- Hotlink protection or CDN rules: Misconfigured CDN or hotlink-protection rules can deny access to images and pages.
- Malware infection: Hacked sites often get .htaccess files injected with deny rules, or core files modified to block access.
- Hosting-level or IP blocks: Your host’s firewall, an IP blacklist, or ISP-level filtering can produce 403s that have nothing to do with your site files.
- Missing index file: If a directory has no index.php/index.html and directory listing is disabled, the server returns 403 instead of showing files.
How to Fix the 403 Forbidden Error in WordPress
Work through these in order:
- Reset file permissions. Connect via FTP or your hosting file manager and set all folders to 755 and all files to 644. Via SSH you can do it in one shot:
find . -type d -exec chmod 755 {} \;andfind . -type f -exec chmod 644 {} \;Then setwp-config.phpto 600 for extra security. Reload your site — this alone fixes most 403 cases. For more hands-on maintenance guides, see the KamiWeb blog. - Regenerate the .htaccess file. Back up the current .htaccess, then delete it from your site root. If you can reach wp-admin, go to Settings → Permalinks and click Save Changes — WordPress creates a fresh one. If you are locked out of wp-admin, upload a new .htaccess containing only the default WordPress rewrite block.
- Deactivate security plugins. If you are blocked from wp-admin, rename the
wp-content/pluginsfolder via FTP to disable everything at once. If access returns, rename it back and reactivate plugins one by one. When you find the security plugin that blocked you, check its firewall/rate-limit settings and whitelist your IP. Find trustworthy replacements in our free WordPress plugins collection.

- Check for malware. If permissions and .htaccess were fine but the 403 returns, scan the site with a security plugin or your host’s malware scanner. Hacked .htaccess files often contain injected deny rules — compare against a clean backup and remove anything suspicious, then change all passwords.
- Disable the CDN temporarily. Pause Cloudflare or your CDN and reload the site directly. If the 403 disappears, the block is in the CDN’s firewall rules — review the security level, bot-fight mode, and any custom firewall rules blocking your paths or IP.
- Try a different network / disable VPN. If the 403 only happens on your connection, your IP may be blacklisted by the host’s firewall. Try mobile data or disconnect your VPN. If that works, ask your host to whitelist your IP or check the firewall logs.
- Contact your hosting provider. If nothing above works, the block is likely server-side: mod_security rules, a web-application firewall, or a misconfigured server setting. Ask support to check the server error logs and firewall rules for your domain. While you wait, explore tools to keep your site healthy via the KamiWeb free tools.
Conclusion
A 403 Forbidden error is the server actively refusing access — and in WordPress it is almost always permissions, .htaccess, or a security plugin. Reset permissions to 644/755, regenerate .htaccess, and rule out your security plugin before digging deeper. Prevent repeats by keeping permissions correct, updating security plugins carefully, and whitelisting your own IP. For more free resources, start at the KamiWeb homepage.
