You click a link on your own website and get a blank page that says 403 Forbidden, or "You don't have permission to access this resource." Your site hasn't been hacked and it hasn't been deleted. The server has received the request and decided not to show the page.

The good news is that a 403 nearly always comes down to a handful of causes, and most can be fixed in a few minutes. Below is the order our support team works through when a customer reports one, from the simple checks to the server firewall.

What a 403 Forbidden error means

A 403 means the server understood the request but refused to allow it. That is different from the errors it often gets confused with:

Error What it means Usual cause
403 Forbidden The page exists, but access is blocked Permissions, .htaccess rules, a security plugin or firewall
404 Not Found The page doesn't exist at that address A deleted page, broken link or changed permalink
500 Internal Server Error The server hit an error building the page A faulty plugin, theme or PHP error
503 Service Unavailable The server is busy or in maintenance Resource limits or a stuck update

The key question with a 403 is who is doing the blocking: the file system, a rule in your site, a plugin, or a firewall in front of your site. Each one has a different fix.

Quick checks before you change anything

These take a couple of minutes and rule out the problem being on your side.

  1. Try another device or network. Load the page on your phone using mobile data, not Wi-Fi. If it works there, the block is tied to your computer or your IP address.
  2. Turn off your VPN. Firewalls often block VPN and proxy addresses because they're shared with lots of other users.
  3. Clear your browser cache and cookies for the site, or open it in a private window.
  4. Check the exact address. A folder address with no page in it (for example /wp-content/uploads/) will often show a 403 on purpose, because directory listing is turned off for security.
  5. Note when it started. A plugin update, a new security setting or a site move just before the error is usually the cause.

If the page works on mobile data but not at your office, skip straight to the firewall section below. Your IP address has most likely been blocked.

Business owner looking at a laptop after their WordPress site shows a 403 error

Most 403 errors can be fixed in a few minutes once you know where the block is coming from.

The common causes and how to fix each one

1. Wrong file or folder permissions

WordPress needs the web server to be able to read its files. If permissions are too strict, the server refuses to serve them. If they're too loose (like 777), many servers block them for safety.

The standard settings are:

  • Folders: 755
  • Files: 644
  • wp-config.php: 600 or 640

You can check and change these in cPanel's File Manager (right-click, then Change Permissions), or over SSH with:

find ~/public_html -type d -exec chmod 755 {} \;find ~/public_html -type f -exec chmod 644 {} \;

File ownership matters too. After a site is copied across from another host, files can end up owned by the wrong user. If permissions look right but the error stays, ask your host to check ownership.

2. A broken or overly strict .htaccess file

The .htaccess file in your site's main folder controls redirects, caching and access rules. One bad line, often added by a plugin or copied from a tutorial, can block the whole site.

To test it:

  1. In File Manager, open public_html and turn on Show Hidden Files.
  2. Rename .htaccess to .htaccess-old.
  3. Reload your site. If it works, the file was the problem.
  4. In WordPress, go to Settings » Permalinks and click Save Changes. WordPress writes a fresh, clean .htaccess.

If you had custom rules (redirects, caching or security rules), add them back one at a time from the old file to find the one causing the block.

3. A security plugin blocking you

Plugins like Wordfence, Solid Security and All In One WP Security can block IP addresses, countries or login attempts. If you've had a few failed logins, you may have locked yourself out.

  • Check the plugin's email alerts. Most send one when they block an IP.
  • If you can't get into WordPress, rename the plugin's folder in wp-content/plugins/ (for example wordfence to wordfence-off). That turns the plugin off until you rename it back.
  • Once you're in, unblock your IP in the plugin's settings and rename the folder back.

4. Another plugin or your theme

Some plugins restrict access to certain pages, for example membership, maintenance mode or "coming soon" plugins. To find out if one is responsible, rename the whole wp-content/plugins folder to plugins-off, then check the site. If the 403 is gone, rename the folder back and turn plugins off one by one in WordPress until you find it.

5. A missing index file

If your site's main folder has no index.php or index.html, the server has nothing to show and returns a 403 instead of listing the folder's contents. This often happens after an incomplete upload or migration. Check that index.php is in public_html. If it's missing, copy it from a fresh WordPress download (it's the same file on every site).

6. Hotlink protection or a CDN rule

If images or files show a 403 but pages load fine, check Hotlink Protection in cPanel. Make sure your own domain, including the www version, is on the allowed list. If you use Cloudflare or another CDN, check its firewall or WAF events as well. The block may be happening there before the request ever reaches your host.

7. The server firewall (ModSecurity or a blocked IP)

If none of the above fixes it, the block is probably coming from the server's firewall. This is the cause we see most often in support tickets, and it's covered in the next section.

Server rack in a data centre, where the hosting firewall checks each request

When nothing on your site is to blame, the firewall in front of it usually is.

When it's the server firewall: what to send your host

Most good hosts run a web application firewall in front of every site. It reads each request and blocks anything that looks like an attack. The most common one is ModSecurity, often alongside tools like Imunify360 and a network firewall.

These firewalls stop a huge number of real attacks. Now and then, though, they block something harmless. This is called a false positive. Typical examples:

  • Saving a page in the WordPress editor that contains code, a script tag or an embed
  • Submitting a form with text that looks like a database command
  • Uploading a file through a page builder
  • Several failed logins from the same office, which blocks the whole office's IP address

You can't fix these from inside WordPress, because the request is stopped before it reaches your site. Your host can, usually in minutes, as long as they know what to look for. Send them:

Detail Why they need it Where to find it
The full page address (URL) Firewall logs are searched by address Your browser's address bar
The date and time of the error Narrows down thousands of log lines Your clock, as close as you can
Your public IP address Shows whether your IP is blocked Search "what is my IP"
What you were doing Saving, uploading, logging in or just browsing Your own notes
A screenshot of the error Some firewalls show a reference number The error page

With those details, your host can find the exact firewall rule, confirm it's a false positive and allow it for your site. A good host will also check whether your IP was blocked for failed logins and unblock it.

If your host can't tell you why a 403 is happening, or tells you to just turn your security plugin off, that's a sign it may be time to look elsewhere.

How HostMidas handles 403 errors

403 errors from the firewall are one of the most common tickets our support team handles, so we have a set process for them. When you send us the details above, we:

  1. Check the ModSecurity and Imunify360 logs for the exact rule that blocked you
  2. Confirm whether it's a false positive or a real attack
  3. Allow that rule for your site only, so every other site on the server stays protected
  4. Check the firewall for a blocked IP and remove it if needed
  5. Look at permissions and ownership if the firewall isn't the cause

You don't have to choose between a secure site and a site that works. Every HostMidas WordPress hosting plan includes:

  • NZ servers in Auckland, for fast load times for Kiwi visitors
  • LiteSpeed Enterprise, Redis and OPcache for speed
  • Imunify360 and ModSecurity protection, tuned so real false positives get fixed
  • Automatic JetBackup backups with one-click restores
  • Free SSL on every domain
  • Free expert migration from your current host
  • Support from people who check the logs, not just send you a help article

Plans start at $15 a month, with a free domain for the first year on yearly plans and a 30-day money back guarantee.

Tired of chasing 403 errors with your current host? See our WordPress hosting plans or request a free migration and we'll move your site across for you.

FAQ

Is a 403 error bad for my SEO?

A short one usually isn't. If Google keeps getting a 403 on a page for days, it may drop that page from search results. Fix it quickly and check Google Search Console for pages marked as blocked.

Why do I get a 403 but other people can see my site?

Your IP address has most likely been blocked, often after a few failed logins. Try your phone on mobile data to confirm, then ask your host to unblock your IP.

Why do I get a 403 when I save a page in WordPress?

This is nearly always the server firewall reacting to code, scripts or embeds in the page. Send your host the page address and the time you saved it.

Can I turn off ModSecurity myself?

Some hosts let you, but turning off the whole firewall removes protection for your entire site. It's safer to ask your host to allow the one rule that's causing the false positive.

Can a 403 mean my site has been hacked?

Sometimes. Malware can change .htaccess or file permissions. If you find rules in .htaccess you didn't add, scan your site and read our WordPress security guide.

What if my whole site is down, not just showing a 403?

Start with our guide on what to check when your website is down. If you're seeing 503 or 508 errors, see WordPress resource limits.

HostMidas is a New Zealand-based boutique web hosting provider helping Kiwi startups and small businesses get online with fast, reliable, locally-hosted websites.