How to Fix a 403 Forbidden Error
A 403 error means the server is refusing access. Fix it by checking file permissions, .htaccess rules, and index file presence.
Fixing a 403 Forbidden Error
A 403 Forbidden error means the server understands your request but refuses to fulfil it. Common causes: wrong file permissions, a missing index file, or a restrictive .htaccess rule.
Step 1 — Check File Permissions
Incorrect permissions are the most common cause.
- Log into cPanel → File Manager
- Navigate to
public_html - Select all files and folders
- Click Change Permissions
Correct permissions:
- Folders: 755
- Files: 644
- wp-config.php: 600
Step 2 — Check for a Missing Index File
If your public_html folder has no index.html, index.php, or index.htm file, the server may show a 403 instead of a directory listing.
- Check that your homepage file is named exactly
index.phporindex.html - Ensure it is directly inside
public_html(not in a subfolder)
Step 3 — Review Your .htaccess File
A misconfigured .htaccess can block access. Temporarily rename it to .htaccess_backup and test your site. If the 403 disappears, the issue is in your .htaccess.
Common problematic rules:
# This blocks all access — remove if present
deny from all
# This blocks specific IPs — check if your IP is listed
deny from 196.xxx.xxx.xxx
Step 4 — Check for IP Blocking
Your IP may have been blocked by our server's security system (ModSecurity or CSF Firewall) due to too many failed login attempts.
Contact our support team at +254 733 338 989 with your IP address (find it at whatismyip.com) and we will whitelist it.
Step 5 — Check Directory Index Settings
In cPanel → Advanced → Indexes, ensure your directory is set to Default System Setting or No Indexing (not Forbidden).
Still need help?
Our Kenyan support team is on WhatsApp — real people, not bots. We respond in under 15 minutes.