403 Forbidden access denied error displayed on a website

403 Forbidden Error on Your Website? What It Means and How to Fix It

You’re trying to visit your own website, log into your administration area or update a page when you’re suddenly presented with a message saying “403 Forbidden” or “You don’t have permission to access this resource”.

It’s particularly frustrating when everything was working perfectly the day before.

Unlike some website errors, a 403 Forbidden error doesn’t necessarily mean your website has stopped working. In many cases, the website is still running, but something is preventing you or your visitors from accessing it.

Whether your website runs on WordPress, WooCommerce, Magento, OpenCart or another platform, understanding where that restriction is coming from is the first step towards fixing it.

Getting a 403 Forbidden error on your website?

Send us your website address and let us know when the error appears. We’ll investigate what’s blocking access and help get your website working again.

Get Your Website Checked

What Does a 403 Forbidden Error Mean?

A 403 Forbidden error is an HTTP status code indicating that a request has been understood but access has been refused.

You may see the error displayed in several different ways:

  • 403 Forbidden
  • HTTP Error 403 – Forbidden
  • Access Denied
  • You don’t have permission to access this resource
  • Request blocked by security rules

The wording depends on which part of your website infrastructure is returning the error. It could be your web server, a security plugin, your hosting provider’s firewall or a service such as Cloudflare.

Some restrictions are intentional. For example, visitors should not be able to access private configuration files or protected administration areas. The problem arises when legitimate users are prevented from accessing something they should be able to use.

Common causes of a 403 Forbidden website error, including file permissions, firewalls and IP address restrictions

Is Your Entire Website Showing a 403 Error?

Before changing any website settings, establish exactly what is affected. This can save a surprising amount of time when diagnosing the problem.

When the error appears Possible cause
Every page on your website Server configuration, firewall or file permissions
Only on your computer IP address restriction or browser-related issue
When accessing your administration area Security plugin or administrator access restrictions
When saving a page or submitting a form Firewall rule or application security restriction
Only certain images or downloads File permissions or hotlink protection
Following a website migration File ownership, permissions or server configuration

These symptoms are useful starting points rather than definitive diagnoses. A website that works on your mobile phone but not on your office computer, for instance, is unlikely to need the same repair as a website returning a 403 error to every visitor.

Common Causes of a 403 Forbidden Error

1. Incorrect File or Folder Permissions

Every file and directory on your hosting server has permissions controlling who can read, modify or execute it. If those permissions are incorrect, the web server may be unable to access the files it needs to display your website.

This can happen following a website migration, manual file upload, backup restoration or changes made through a hosting control panel.

On many Linux-based hosting environments, permissions of 644 for ordinary files and 755 for directories are commonly used. However, the correct settings depend on your particular server configuration, and sensitive files may require more restrictive permissions.

Never set all your website files and folders to 777 in an attempt to remove a 403 error. Doing so can introduce serious security vulnerabilities without resolving the underlying problem.

2. Incorrect Rules in the .htaccess File

Websites hosted on Apache or compatible web servers often use a file called .htaccess to manage redirects, access restrictions, security settings and URL behaviour.

An incorrectly configured access rule can prevent visitors from reaching an individual page, an entire directory or the whole website. Sometimes an old rule remains in place long after the original reason for adding it has been forgotten.

Although replacing the .htaccess file may appear to resolve the error, it can also remove important redirects and security rules. The better approach is to identify the offending instruction and correct it while preserving the rest of the configuration.

Websites running on Nginx use a different configuration system, so changing an .htaccess file will not resolve an Nginx access restriction.

3. Website Security Plugins

WordPress security plugins are designed to protect websites against malicious traffic, brute-force login attempts and unauthorised access. Occasionally, legitimate activity gets caught by those same protections.

You might encounter a 403 error after entering an incorrect password several times, installing a new plugin or using a page builder to save certain types of content.

Check your security plugin’s activity logs if you still have access to your WordPress dashboard. These may identify the IP address, request or security rule responsible for the block.

If you’re completely locked out, our WordPress support services can help restore access without unnecessarily removing your website’s security protection.

4. Cloudflare and Website Firewall Restrictions

Services such as Cloudflare sit between website visitors and the hosting server. They can block suspicious requests before those requests reach your website.

A 403 error may result from a firewall rule, country restriction, blocked IP address, bot protection setting or a managed security rule that has incorrectly identified legitimate traffic as a threat.

If your error page includes a Cloudflare Ray ID, make a note of it along with the time the error occurred. This information can help locate the relevant request in Cloudflare’s security events.

Cloudflare provides further information in its official guide to 403 Forbidden errors.

Rather than switching off your entire website firewall, investigate which rule is responsible and whether a carefully scoped adjustment is appropriate.

5. Hosting Firewall and ModSecurity Rules

Even if you don’t use Cloudflare or a website security plugin, your hosting provider may operate its own firewall.

ModSecurity is one example commonly found on web hosting servers. It examines incoming requests for patterns associated with security threats. Occasionally, ordinary website content can trigger one of its rules.

This is particularly noticeable when a website works normally until someone attempts to save a page, update a product description, submit a form or upload a file.

Your hosting provider may be able to identify the rule that blocked the request. In many cases, the solution is a targeted configuration adjustment rather than disabling ModSecurity across the entire website.

6. IP Address and Geographic Restrictions

Some businesses deliberately restrict access to their website administration area so that only approved IP addresses can log in.

It’s an effective security measure, but it can cause problems when someone changes internet provider, starts working from a different location or receives a new IP address.

A less obvious cause is the difference between IPv4 and IPv6 addresses. A computer may have a previously approved IPv4 address but connect to the website using IPv6 instead. If the security configuration doesn’t account for this, access may be refused.

What this can look like in practice

Imagine a member of staff who has been logging into an ecommerce administration area for months without difficulty. Suddenly, they receive a 403 error, while their colleagues can still log in and customers can continue placing orders.

The website software may be perfectly healthy. Checking the blocked request against the server’s access rules could reveal that the member of staff is connecting from a different IP address than the one originally approved.

Updating the authorised access rules, once the new address has been verified, may be all that’s required. Reinstalling the website or changing its hosting would be unnecessary.

7. Missing Index Files or an Incorrect Website Directory

When someone visits your domain name, the web server normally looks for a default file such as index.php or index.html.

If no suitable index file is present and directory browsing is disabled, the server may return a 403 Forbidden error instead of displaying the contents of the folder.

This can occur if website files have been accidentally deleted, uploaded into the wrong directory or left incomplete following a migration.

The domain may also be configured to point at an incorrect document root, meaning the website files are present but the web server is looking somewhere else.

8. Website Migration or File Ownership Problems

Moving a website between hosting providers involves more than copying files and importing a database. The new hosting environment must also be configured to serve those files correctly.

Files restored from a backup or transferred from another server may have ownership or permission settings that don’t match the new environment.

On some servers, a file can have apparently correct permissions but still be inaccessible because its ownership or group settings are wrong.

If the error started immediately after changing hosting providers, investigate the migration before making changes to the website application itself. Our website migration services include resolving issues associated with moving websites between servers.

9. Restricted Images, Downloads and Other Website Resources

A 403 error doesn’t always affect an entire webpage. Individual images, documents, scripts and downloadable files may also be blocked.

For example, hotlink protection is intended to prevent other websites from displaying images hosted on your server without permission. If configured incorrectly, it can also prevent images from displaying on your own website.

This can become an issue after changing a domain name, moving to HTTPS or introducing a content delivery network.

Browser developer tools can help identify which files are returning a 403 response, even when the rest of the page appears to load normally.

10. Application Permissions and Expired Sessions

Content management systems and ecommerce platforms have their own access controls. An administrator, editor, customer and ordinary visitor may each have different permissions.

Changes to user roles, expired login sessions or invalid security tokens can result in otherwise legitimate requests being rejected.

If you can view a page but receive a 403 error when trying to edit or save it, the problem may be within the website application rather than the hosting server.

Logging out and back in is worth trying before investigating user permissions, extensions or application security settings.

What Can You Safely Try Yourself?

There are several straightforward checks you can carry out without changing your website’s files or security configuration:

  1. Check that you are visiting the correct website address.
  2. Try opening the website in a private or incognito browser window.
  3. Visit the website using your mobile phone with Wi-Fi switched off.
  4. Check whether other pages on the website are accessible.
  5. Log out and back in if the problem occurs within an administration area.
  6. Temporarily disconnect from your VPN, if you use one and it is safe to do so.
  7. Make a note of any recent website updates, hosting changes or security configuration changes.
  8. Take a screenshot of the complete error message, including any reference numbers.

If your website works on mobile data but not through your usual internet connection, an IP-based restriction becomes one of the first things worth checking.

Avoid making multiple changes at once. It becomes much harder to identify the original fault if file permissions, plugins and firewall settings have all been altered before the cause has been established.

What’s the Difference Between a 403, 404 and 500 Error?

Although these errors may look similar to a website visitor, they indicate different types of problems.

  • 403 Forbidden: Access to the requested resource has been refused.
  • 404 Not Found: The requested resource could not be found, or the server is not disclosing its existence.
  • 500 Internal Server Error: An unexpected server-side problem has prevented the request from being completed.

If you’re receiving a 500 error, our guide to common causes of a 500 Internal Server Error explains the types of faults that may be responsible.

For more general loading problems, including connection timeouts and database errors, see our guide to WordPress websites not loading.

Can a 403 Forbidden Error Affect Your Google Rankings?

Yes, if the error prevents Google from accessing pages that should be publicly available.

Google needs to access your website to crawl, understand and index its content. If important pages consistently return a 403 response, they can eventually disappear from Google’s search results.

A website might appear to work normally when you visit it, while a firewall incorrectly blocks search engine crawlers or visitors from particular locations.

If you have Google Search Console configured, check the Page Indexing report for pages identified as blocked due to access being forbidden. The URL Inspection tool can also help establish whether Google can access an affected page.

Google explains how it handles these errors in its HTTP status code guidance.

There is no need to remove legitimate restrictions from private administration areas or sensitive files. The priority is ensuring that publicly available content remains accessible.

Does a 403 Error Mean My Website Has Been Hacked?

Not necessarily. Most 403 errors can be investigated without assuming that a website has been compromised.

However, malicious software can sometimes modify server configuration files, change permissions or introduce unauthorised access rules. If the error appeared alongside unexpected redirects, unfamiliar files or suspicious administrator accounts, a security investigation would be sensible.

Our guide to what to do if your WordPress website has been hacked covers the warning signs and next steps in more detail.

Frequently Asked Questions

Why am I getting a 403 Forbidden error on my own website?

Your website may be blocking your IP address, rejecting your login session or applying an incorrectly configured security rule. File permissions and server settings can also prevent access, even if you own the website.

Why does my website work on my phone but not my computer?

If your phone is using mobile data rather than Wi-Fi, it will normally connect from a different public IP address. This can indicate that your usual internet connection is being blocked by an IP restriction or security rule. Browser-related issues are another possibility.

Can a WordPress plugin cause a 403 Forbidden error?

Yes. Security plugins, access control extensions and other plugins can reject requests based on their configuration. Security tokens and user permissions may also cause an error when editing or saving content.

Can Cloudflare cause a 403 Forbidden error?

Yes. Cloudflare can refuse requests based on firewall rules, security settings and access restrictions. Reviewing security events can help establish which rule is responsible for the block.

Can I fix a 403 error by clearing my browser cache?

Clearing your cache and cookies may help if you have an outdated session or a cached error response. However, it will not correct a genuine server-side access restriction, incorrect file permissions or firewall rule.

How long does it take to fix a 403 Forbidden error?

Straightforward access restrictions and configuration faults can sometimes be resolved quickly once the cause has been identified. More complex issues involving hosting infrastructure, website security or application permissions may require further investigation.

Will I need a new website to fix a 403 error?

In most cases, no. A 403 Forbidden error relates to access being refused rather than the overall condition of your website. Correcting the relevant restriction or configuration problem is usually the appropriate solution.

Need Help Fixing a 403 Forbidden Error?

A website that unexpectedly refuses access can interrupt enquiries, online sales and everyday business operations. Spending hours changing settings without knowing which part of the website is responsible can also create additional problems.

At Web Medic, we investigate website faults across a range of platforms and hosting environments, including WordPress, WooCommerce, Magento and OpenCart.

Our website repair services can help identify what’s preventing access, correct the fault and restore normal website operation while retaining the security measures your business needs.

Whether you’re locked out of your administration area, customers are unable to access your website or a particular feature keeps returning a 403 error, get in touch and tell us what’s happening.