403 Forbidden Error: causes and fix
Quick answer: A 403 means the server understood the request but refuses access. Visitors should clear cookies and try another connection; site owners should check permissions and .htaccess.

Symptoms
- A plain page titled "403 Forbidden" or "Access Denied"
- "You don't have permission to access this resource"
- A Cloudflare page saying "Sorry, you have been blocked"
- Only some pages (such as the admin area) return the error
Likely causes
- The site's server or firewall (for example a CDN) is blocking your IP address or country.
- An old cookie or session in your browser conflicts with the site.
- File or folder permissions on the hosting account are set wrong (site owners).
- A rule in .htaccess or a security plugin is rejecting the request.
- You requested a folder listing and the folder has no index file.
Step-by-step fix
Start from step one and test again after each step; steps go from the simplest to the most technical.
-
Open the page in Incognito
If it loads in an Incognito window, an old cookie or session is the cause. Clear that site's cookies in "Delete browsing data" and sign in again.
-
Try another connection
Some sites block certain countries or a provider's IP range. Test on mobile data or another network, and if a VPN is on, turn it off, because many sites reject VPN addresses. If the site isn't available in your region, reach the service through another official channel.
-
Simplify the URL
If the address ends in a folder (like site.com/files/), the server may simply not allow folder listings, which is normal. Go to the home page and navigate from the site's menu. If the section needs an account, sign in first.
-
Site owners: read the error log
In your hosting control panel (cPanel or DirectAdmin), open "Errors" or the error_log file. It shows exactly which file was denied and why, for example "client denied by server configuration".
-
Site owners: fix file permissions
In your host's File Manager, folders should be 755 and files 644. Permissions of 777 or 600 can also trigger a 403, and 777 is a security risk. Make sure an index.php or index.html file exists in the site root.
-
Site owners: check .htaccess
Look for lines like Deny from all, Require all denied or IP restrictions. To test, back up the file, temporarily rename it to .htaccess_old and reload the site. Warning: on WordPress, then go to "Settings > Permalinks" and click "Save Changes" to generate a clean file.
-
Site owners: check firewall and CDN
If you use Cloudflare or a security plugin such as Wordfence, check its firewall events or live traffic log to see which rule blocked the request. Remove your IP or your visitors' country from the block list, or adjust the rule. Your host's ModSecurity can also be the cause, and host support can disable that specific rule.
If nothing worked
If you're a visitor and still get a 403 on a different connection and browser, the site is deliberately blocking you or your region; the only route is that site's own support. Skip any tools or apps that promise to "fix 403 errors".
If you own the site and the error log shows nothing, contact your host with the exact time and URL of the error; ModSecurity or a server firewall may be rejecting the request before it reaches your site.
Back up before changing .htaccess or file permissions.
Frequently asked questions
What's the difference between 403 and 401?
A 401 means you aren't signed in yet and is fixed by logging in correctly. A 403 means the server knows who you are, or doesn't care, and still won't allow access to that page; signing in again usually doesn't help.
Does a 403 error hurt SEO?
If Googlebot also gets a 403, the page drops out of search results after a while. Check the "Pages" report in Google Search Console, and if Google is being blocked, fix the firewall rule or allow Googlebot's verified IP ranges.
Related problems

404 Not Found Error
A 404 means the site is up but that page doesn't exist. Visitors should check the URL and use the site's search; site owners should re-save permalinks and check redirects.

502 Bad Gateway Error
A 502 means a gateway such as a CDN or Nginx got a bad response from the site's main server. Visitors should wait and refresh; site owners should check PHP and server services.

WordPress 500 Internal Server Error
A 500 error means the server hit a problem running your site without saying why. A broken .htaccess file, a faulty plugin or low PHP memory are the usual causes; check your host's error log first.
Terms used on this page
More Internet, Browser & Website Errors problems
All problems Internet, Browser & Website Errors
Last updated: