DroidCrunch
  • About
  • Blog
  • Categories
    • Automation
    • Tech
    • SEO
    • WordPress
    • Software
    • Hosting
    • Proxy
  • AI
    • AI Writing
    • AI Image
    • AI Tool
    • AI Video
  • Deals
  • Contact
Subscribe
No Result
View All Result
DroidCrunch
  • About
  • Blog
  • Categories
    • Automation
    • Tech
    • SEO
    • WordPress
    • Software
    • Hosting
    • Proxy
  • AI
    • AI Writing
    • AI Image
    • AI Tool
    • AI Video
  • Deals
  • Contact
Subscribe
DroidCrunch

403 Forbidden Error: What It Means and How to Fix It 2026

Lokesh Kapoor by Lokesh Kapoor
November 23, 2026
3
0

A 403 Forbidden error means the server got your request, understood it and refused to serve the page. A permission, a rule or a firewall setting is saying no, and each one has its own fix.

The error page won’t tell you which. We broke a test server seven different ways and got the same 403 error every time.

The error log told them apart, one line per cause. Below: how to read it as a visitor, a site owner or someone running a scraper.

What a 403 Forbidden error is telling you

A 403 is a decision, not a crash. The server is up, it found what you asked for, and a rule told it not to hand it over.

Compare that with a 503 Service Unavailable error, where the server wants to answer and can’t. Restarting things rarely fixes a 403, because nothing is broken. Something is configured.

Two neighbours get mixed up with it:

  • 401 Unauthorized asks you to log in. Valid credentials would get you in.
  • 403 Forbidden refuses you as things stand. If you’re already logged in, your account lacks the right.
  • 404 Not Found says the page isn’t there. Some sites send it on purpose, to hide a private page rather than admit it exists.

Who said no?

Look at the bottom of the error page before you change anything. It usually names the software that refused you.

“Apache” or “nginx” means your web server did it. A Cloudflare page with a code like 1020 or 1010 means the CDN blocked the request. It never reached your host.

Cloudflare sits in front of your server as a reverse proxy, so it can refuse visitors your server never sees. A page branded by a security plugin points to WordPress itself.

We broke a test server seven ways, and the page never changed

We ran Apache 2.4 on our test server and gave each fault its own folder. Then we requested every folder with curl and with a Chrome user agent.

Every fault produced the same stock page: “Forbidden. You don’t have permission to access this resource.” Same title, same 239 bytes.

Fault we createdWhat we changedWhat Apache logged
Unreadable fileRemoved read permission on one pageAH00132: file permissions deny server access
Locked folderRemoved all permissions on a folderAH00529: unable to check htaccess file
Unreadable .htaccessRemoved read permission on .htaccessAH00529: unable to check htaccess file
No index fileFolder with no index page, listings offAH01276: No matching DirectoryIndex
Deny ruleRequire all denied in .htaccessAH01630: client denied by server configuration
IP blockRequire not ip for our own addressAH01630: client denied by server configuration
User-agent blockRewrite rule refusing curl and python-requestsNothing in the error log
Apache 2.4 with .htaccess allowed and directory listings off. Every row returned the same 403 page.

Here’s what Apache wrote to its error log, with timestamps and folder paths trimmed.

Apache error log from our 403 lab Plain text
[core:error] (13)Permission denied: AH00132: file permissions deny server access: /www/perm/report.html
[core:crit] (13)Permission denied: AH00529: /www/locked/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/www/locked/' is executable
[core:crit] (13)Permission denied: AH00529: /www/badht/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/www/badht/' is executable
[autoindex:error] AH01276: Cannot serve directory /www/noindex/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[authz_core:error] AH01630: client denied by server configuration: /www/blocked/
[authz_core:error] AH01630: client denied by server configuration: /www/ipblock/

Three things in that log matter more than the table.

The locked folder blamed .htaccess. That folder had no .htaccess file. Apache couldn’t open the folder to look for one, so it reported an .htaccess problem. When you see AH00529, check the folder’s permissions too.

The user-agent block logged nothing. Only the access log showed a 403 next to “curl”. An empty error log points to a rewrite rule, a firewall or the CDN.

The bot block leaked. Our rule named curl, wget and python-requests. Python’s built-in urllib library sends a different user agent, and it walked through with a 200.

We repeated the faults on nginx 1.26. The log lines read differently (“open() failed (13: Permission denied)”, “directory index of … is forbidden”), and its user-agent block logged nothing either.

One difference matters more: nginx ignores .htaccess files. On a plain nginx host, editing .htaccess changes nothing.

Every fix worked on the next request. Restoring 644 on the file, 755 on the folder and read access on .htaccess brought the 200 back.

One 403 Forbidden page, four causes: unreadable file AH00132, no index file AH01276, deny or IP rule AH01630, user-agent rule with nothing logged
AH00529, the line for locked folders and unreadable .htaccess files, is in the table above. Paths and timestamps are trimmed.

Seeing a 403 on someone else’s site? Try these

You can’t fix someone else’s server. You can rule out the causes on your side, and most of them come down to where your request comes from.

  • Check the address. A link ending in a folder, such as /files/, can hit a folder with no index page. Trim the last part of the path and try the parent page.
  • Clear that site’s cookies and reload. A stale session cookie can make the site treat you as a user who lost access.
  • Turn off your VPN or proxy. Many firewalls block VPN exit addresses and whole countries. If the page loads without it, the site blocked the address, not you.
  • Switch networks. Try mobile data instead of office or hotel Wi-Fi. Shared networks inherit the reputation of everyone on them.
  • Pause browser extensions. Privacy add-ons strip headers that some bot checks expect. Try a private window with extensions off.
  • Tell the owner. Send the address, the time and any reference code on the page. A Cloudflare block shows a Ray ID that lets the owner find your request in seconds.

Real-world tip: the page loads on mobile data but fails on your laptop’s Wi-Fi? Stop clearing caches. The site is blocking your network’s IP address, and only the owner can lift that.

How to fix a 403 Forbidden error on your own site

Find the log line, then fix the cause it names. It’ll be file permissions, .htaccess, a missing index file or a security rule. Test after each step.

Fix a 403 Forbidden error step by step

Reload the page after each step before moving on.

  1. 1
    Step 1 of 7

    Read the error log first

    Open the error log in your hosting panel, or /var/log/apache2/error.log or /var/log/nginx/error.log on a VPS. Match the line to the causes in our table. If the log is empty and the 403 page carries a Cloudflare code, the block happened at the CDN.

  2. 2
    Step 2 of 7

    Reset file and folder permissions

    Files should be 644 and folders 755. Fix them in your host’s file manager, over SFTP, or with the commands below. Never use 777. wp-config.php can stay stricter if your host set it that way.

  3. 3
    Step 3 of 7

    Rename .htaccess and test

    Rename it to .htaccess-old and reload. If the 403 disappears, a rule in that file caused it. On WordPress, go to Settings, then Permalinks, and click Save to write a clean file. Copy back only the custom rules you need.

  4. 4
    Step 4 of 7

    Make sure the folder has an index file

    With directory listings off, a folder with no index.php or index.html returns 403. Check that your files sit in the web root, such as public_html, and not in a subfolder your upload created.

  5. 5
    Step 5 of 7

    Pause the security plugin or firewall rule

    Rename the security plugin’s folder in wp-content/plugins and reload. If that fixes it, rename it back and whitelist your IP or the rule that fired. On shared hosting, ask support whether ModSecurity blocked the request.

  6. 6
    Step 6 of 7

    Check IP, country and CDN rules

    Look for Deny from or Require not ip lines, country blocks and hotlink protection. In Cloudflare, error 1020 points to a custom WAF rule and 1010 to Browser Integrity Check. The Security Events log shows which rule matched.

  7. 7
    Step 7 of 7

    Fix ownership after a migration

    Files copied as root or another user can be unreadable to the web server even at 644. Your host’s ownership tool or support can reset them to your account user. On a VPS, use chown to give them back to the web server’s user.

For step 2 over SSH, these commands reset everything under your site’s root folder:

Reset permissions over SSH Bash
# Run from your site's root folder (often public_html)
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

# Check who owns a file and what it allows
ls -l index.php

For step 3, this is the stock .htaccess file WordPress writes for a site in the root folder. Saving your permalinks recreates it.

.htaccess (WordPress default) Apache
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Hostinger turns step 2 into one click. Its Fix File Ownership tool in hPanel sets every file to 644 and every folder to 755. We moved 20 of our own sites to it, and the Hostinger review explains why.

Common mistake: setting a folder to 777 to make the 403 go away. Anyone on the server can then write to it. Many shared hosts also refuse to run PHP from it, which swaps your 403 for a 500.

403 errors in WordPress: where they usually come from

WordPress adds a few causes of its own, and each one has a tell.

A 403 when you save a post or upload a file. Your host’s firewall, often ModSecurity, mistook something in the content for an attack. Code samples and long scripts are the usual trigger. The rest of wp-admin works, so ask your host which rule fired and to whitelist it.

A 403 on the login page. A security plugin locked out your IP after failed logins. Can’t wait for the lockout to expire? Rename that plugin’s folder in wp-content/plugins over FTP, log in, then rename it back.

Our list of the best WordPress security plugins shows which ones lock out by IP and how to whitelist yourself.

A 403 on the whole site after a migration or update. That’s almost always permissions, ownership or an .htaccess file that didn’t survive the move. Steps 2, 3 and 7 above cover it.

Don’t confuse any of these with the white screen that says There Has Been a Critical Error on This Website. That one is a PHP crash. With a 403, PHP may never have run at all.

What a 403 means when you’re scraping

For a scraper, a 403 almost always means the site’s bot protection spotted you. It’s a policy decision, so rewriting your parser won’t help.

We requested the homepages of 12 well-known sites from our test server. Each got one request with curl’s default user agent and one with a Chrome user agent. Here are the ones that refused, plus our own site.

SiteDefault curlChrome user agentWho answered
G2403403DataDome via Cloudflare
Zillow403200 once, then 403PerimeterX via CloudFront
Indeed403403Cloudflare challenge
Glassdoor403403Cloudflare
Etsy403403DataDome
Capterra403403Cloudflare
Upwork403403Cloudflare
Fiverr403403Cloudflare
DroidCrunch (ours)200200Cloudflare; Python urllib got 403, error 1010
One homepage request per client from our test server. Crunchbase, Reddit and Walmart answered 200 to every client.

Eight of the 12 returned 403 to plain curl. The Chrome user agent rescued one of them, and not for long.

Why didn’t the disguise work?

These walls judge more than the user agent. The response headers named who was deciding: Cloudflare, DataDome or PerimeterX. Etsy’s 403 page asked us to “enable JS and disable any ad blocker”, which a plain HTTP client can’t do. Our requests also came from a data-centre network, and those addresses start with a poor reputation.

Our own site gave the most useful result. DroidCrunch runs behind Cloudflare. Plain curl got a 200. A Python script using the standard urllib library got a 403 reading “error code: 1010”.

The same script with any other user agent got a 200.

Error 1010 is Cloudflare’s Browser Integrity Check rejecting a client signature it links to bots. It has tripped our own publishing scripts too. A block aimed at bots hits your own tools as well.

403 errors for scrapers: 8 of 12 sites blocked curl, a browser user agent didn't help, and our own site blocked Python's default with error 1010
One homepage request per client, sent from a data-centre network. Zillow let one Chrome-agent request through, then blocked the next three.

So what should you do with a 403 while scraping?

If the site runs a full bot wall, treat the 403 as the answer. Look for an official API or data feed and slow down. Send a descriptive user agent with a contact address, which is what Cloudflare’s own documentation recommends over faking a browser.

Our guide to what web scraping is and where its limits sit covers the legal and ethical lines.

If the 403 only appears through a proxy, the proxy’s IP is the problem. Our common proxy errors guide covers the 403 and 407 cases. And residential vs datacenter proxies explains why sites block data-centre ranges first.

Mistakes that turn one 403 into a bigger problem

  • Deleting .htaccess without a copy. It may hold your redirects, HTTPS rules and security headers as well as the WordPress block. Rename it instead, so you can restore the parts you need.
  • Switching off the whole firewall. Disabling a security plugin to fix one false positive leaves every other door open. Whitelist the one rule or IP, then turn it back on.
  • Trusting a user-agent blocklist. Our own rule let Python’s urllib straight through. Any client can claim to be Chrome, so treat these rules as noise reduction, not security.
  • Fixing the wrong layer. Check who signed the error page first. A Cloudflare 1020 page won’t change if you edit file permissions on your host.

Frequently Asked Questions

Disclosure: the Hostinger link above is an affiliate link. Sign up through it and we earn a commission, at no extra cost to you.

Is a 403 Forbidden error a sign my site was hacked?

Usually not. Most 403s come from permissions, .htaccess or a security rule. A hacked site can show one, though, if your host suspends it or malware rewrites .htaccess with deny rules. If you didn’t change anything and .htaccess contains rules you don’t recognise, run a malware scan before restoring it.

Does a 403 error hurt my SEO?

Yes, if Googlebot keeps getting it. Google treats a 403 like a missing page, so it won’t index that URL and drops pages already indexed. Don’t use 403 to slow crawlers either. Google’s own guidance says to send 429 or 503 for that, because those tell it to come back later.

How long does a 403 block last?

It depends on the cause. A permissions or .htaccess problem lasts until someone fixes it, so waiting won’t help. Security plugin lockouts and rate limits usually expire on a timer the site owner sets. Country and IP blocks stay until the owner removes them, so ask if you think you were caught by mistake.

Why do I get a 403 on Wi-Fi but not on mobile data?

Your Wi-Fi network’s public IP address is blocked, or shares a bad reputation with other users on it. Office, school and public networks often put hundreds of people behind one address. On mobile data, you get a different IP, so the site’s firewall treats you as a new visitor.

Can I bypass a 403 Forbidden error?

Only through the front door. Log in with an account that has access, try a different network, or ask the owner to allow you. Forcing your way past a deliberate block can break the site’s terms of use. If the 403 is on your own site, fix the rule rather than working around it.

What does 403 Forbidden mean on an API request?

Your key or token is valid but isn’t allowed to do that action. The usual reasons are a missing scope or a plan that doesn’t include the endpoint. An IP allowlist that doesn’t list your server does it too. Read the JSON error body, which usually names the missing permission, then regenerate the key with the right scopes.

Should my site return 403 or 404 for private pages?

Use 404 when you don’t want people to know the page exists, such as private user content. Use 403 when the existence isn’t secret and you want a clear refusal, such as an admin area. The HTTP standard explicitly allows a 404 in place of a 403 to hide a resource.

Why does my 403 page say nginx when my host uses Apache?

Your host probably runs nginx in front of Apache as a reverse proxy or cache. The 403 may come from either one, so check both error logs if you have access. Your .htaccess rules apply only to the Apache layer. If the logs don’t settle it, ask support which layer refused the request.

The bottom line

A 403 Forbidden error means a rule said no, and the page hides which rule. The error log names it.

Visitors: check the address, drop the VPN, try another network, then send the owner the Ray ID.

Site owners: read the log first. Then reset permissions to 644 and 755, regenerate .htaccess and check your security plugin and CDN rules, in that order.

Scrapers: don’t fight a bot wall with a fake user agent. Use the API or ask. Whichever side you’re on, open the log before you touch a setting.

Summarize this article with AI

Get the key points in seconds. Pick an assistant and it opens in a new tab, ready to go.

ChatGPTClaudePerplexityGoogle AIGrokMistral

Opens in a new tab. Nothing is shared until you pick an assistant.

Share4Tweet2Share1Share
Previous Post

miniOrange Secure MCP Server Review 2026: Tight Control, One Catch

Lokesh Kapoor

Lokesh Kapoor

I am Lokesh Kapoor who loves to write blogs, create videos and watch sci-fi movies on Netflix and Jio Cinema. DroidCrunch is my first love and a crucial part of my life.

Related Posts

DNS_PROBE_FINISHED_NXDOMAIN fix: a browser error card next to a checklist of DNS fixes

DNS_PROBE_FINISHED_NXDOMAIN: What It Means and 8 Fixes That Work 2026

November 22, 2026
299
Crocoblock review title card with a JetEngine modules dashboard and 23 JetPlugins

Crocoblock Review 2026: Pros, Cons & Pricing From a Live Site

What is DNS title card: a domain name being translated into an IP address

What Is DNS? How the Domain Name System Works 2026

November 22, 2026
299
WordPress.com coupon codes: an order summary showing a 3-year Personal plan at $99 instead of $324 billed monthly

WordPress.com Coupon Codes (2026): Discount & Offers

November 19, 2026
305
Load More

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

DroidCrunch

Tested first. Then written.

Independent software reviews since 2016. Search the archive, or start with a topic.

WordPressAI toolsHostingVPNSEO
  • 630+reviews, comparisons and guides
  • 243product reviews
  • 36topics covered
  • 2016publishing since
home

An independent tech blog and YouTube channel. We use every tool before we rate it, and we always tell you the catch.

Topics

  • WordPress
  • AI tools
  • Hosting
  • SEO
  • VPN
  • Proxies
  • Automation

Company

  • About DroidCrunch
  • Editorial policy
  • Affiliate disclaimer
  • Write for us
  • Contact

Explore

  • All articles
  • Reviews
  • Deals and coupons
  • Black FridayLive
  • Facebook group
  • Help and support

Recently scored

  • miniOrange Secure MCP Server75%
  • Royal MCP80%
  • WPVibe76%
  • Zapier82%
All reviews

Reader-supportedWhen you buy through our links, we may earn a commission at no extra cost to you. It never changes our verdicts. Read our affiliate disclaimer.

© 2026 DroidCrunch. Independent since 2016.

  • Privacy policy
  • Terms
  • Cookie policy
  • Your GDPR rights
  • RSS
Back to top

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Add New Playlist

No Result
View All Result
Subscribe
  • About
  • Blog
  • Categories
    • Automation
    • Tech
    • SEO
    • WordPress
    • Software
    • Hosting
    • Proxy
  • AI
    • AI Writing
    • AI Image
    • AI Tool
    • AI Video
  • Deals
  • Contact

© 2026 DroidCrunch - Best Place for Tech NomadPrivacy PolicyTerms & ConditionsCookie PolicyGDPR RightsAffiliate Disclosure

DroidCrunch Giveaway

Amazon Gift Card worth $15

Participate now and get a chance to become a lucky winner to receive the reward.​

Join Giveaway