What this problem is
You see a 403 Forbidden error on the site, wp-admin, or specific URLs.
Why it happens
- Incorrect file or folder permissions
- Security plugin rules blocking access
- WAF/CDN blocking your IP
- .htaccess rules denying access
Prerequisites
- FTP/File Manager access
- Access to hosting security/WAF panel if used
Diagnosis
- Check if the 403 happens for everyone or only your IP.
- Review recent changes (plugin installs, security rules, .htaccess edits).
- Check file permissions on
wp-contentandwp-admin.
Step-by-step (detailed)
- Set standard permissions: folders 755, files 644.
- Temporarily disable security plugins (rename plugin folder if you cannot access wp-admin).
- Regenerate
.htaccessby resetting permalinks in wp-admin, or restore a clean .htaccess file. - If you use a CDN/WAF, allowlist your IP and purge rules.
Expected results
- Access is restored
- 403 responses stop
What to do if it fails
- Check server error logs for the exact rule or path blocked.
- Look for
denyorrequire all denieddirectives in .htaccess. - Contact hosting support with timestamps and your IP.
Best practices
- Keep a known-good copy of .htaccess.
- Use a WAF but review false positives.
- Limit admin access by IP only when you have a stable IP.