Step 1: Regain Access via File Manager or FTP
Since your WordPress admin dashboard (wp-admin) is locked out, you need to bypass it. Log in to your hosting control panel (like cPanel) and open the File Manager, or connect via an FTP client like FileZilla. Navigate to your public_html or root directory.
Step 2: Reset Your .htaccess File
Malware almost always targets your .htaccess file to redirect traffic or block admin access.
Locate the
.htaccessfile in your root directory. (Make sure “Show Hidden Files” is checked in cPanel).Download a copy to your computer as a backup.
Delete the
.htaccessfile from the server.Try loading your website. If it works, the corrupted file was the issue. You can generate a fresh, clean
.htaccessfile by logging into your WordPress dashboard, going to Settings > Permalinks, and simply clicking “Save Changes.”
Step 3: Correct File and Folder Permissions
A 403 error literally means “Forbidden.” If a hacker or an automated script scrambled your file permissions, the server will block access to the public.
Using your File Manager or FTP client, ensure your permissions follow standard WordPress security rules:
All Folders should be set to 755 (or 750).
All Files should be set to 644 (or 640).
Never leave any file or folder set to 777.
Step 4: Deactivate All Plugins Manually
Sometimes, a corrupted security plugin is what triggered the 403 error in an attempt to quarantine a threat.
In File Manager, navigate to
wp-content.Find the folder named
pluginsand rename it toplugins_old.Check your website. If it loads, a plugin caused the lockout. Rename the folder back to
plugins, then go into that folder and rename each individual plugin folder one by one until the site breaks again—that’s your culprit.
The Real Solution: Stop Relying on Budget Hosting Support
Fixing a 403 error manually is stressful, especially when your site is losing traffic and revenue by the minute. When my own portfolio was hit by a coordinated attack last year, I spent hours digging through .htaccess files because my budget host offered zero immediate help.
That incident is exactly why I moved my entire infrastructure to ChemiCloud.
When you use a premium managed host like ChemiCloud, a 403 error caused by a breach becomes their problem to solve, not yours. Here is why they are the undisputed “Support King” for WordPress:
Proactive Malware Scanning: They catch the malicious scripts before they corrupt your
.htaccessfile.Human-First Support: If a lockout happens, you don’t get sent a link to a generic knowledge base article. You jump on a 24/7 live chat, and a real WordPress expert dives into your cPanel to fix the file permissions for you.
Free Malware Removal: While other hosts charge hundreds of dollars through third-party partners like SiteLock to clean a hacked site, ChemiCloud includes malware cleanup as part of their dedicated support.
If you are tired of playing server admin every time something breaks, it’s time to upgrade your stack.
