HTTP Error 403 Forbidden Messages: What They Are & How to Fix Them

By Caroline Forsey

→ Download Now: SEO Starter Pack [Free Kit]

Imagine this – you’ve recently created a new website to host your content, and you’re excited to see it go live. You can’t wait to dive into SEO and begin ranking for keywords and attracting an audience to your brand.

But then a friend emails you and says, “Hey, is there a reason I see this when I click on your website?

Image Source

Undoubtedly, a “403 Forbidden” message is cause for immediate concern. How many potential viewers are you losing, as they come across your website to find this message?

Fortunately, there are a few quick-and-easy solutions to a 403 error. Here, we’ll explain the top three, so you can get your site up and running.

What you’ll typically see when you land on a page with a 403 forbidden error is something like this: “You don’t have authorization to view this page – HTTP Error 403.”

It can also have slightly different wording, like the example below.

403 forbidden example

Image Source

Wondering about the difference between a 403 and 404 error? Here it is: A 404 error happens when you access a page that no longer exists or cannot be found. A 403 error, on the other hand, indicates that your access has been denied due to incorrect credentials.

An easy way to remember it: 403 says “access denied” while 404 says “We can’t find what you asked for.”

What causes a 403 error?

There are a few reasons why you may see a 403 forbidden error. Here are the most common:

    • Permission or ownership error – Permissions are represented by codes, which indicate what each type of user can do. If you have the incorrect code associated with a file or directory then your users may run into a 403 error.
  • Wrong file or folder location – When uploading content to your site, you may have added it to the wrong directory, which is not accessible to your end-users.
  • No index page – If your homepage doesn’t have an index page, it will not display correctly on a browser.
  • Misconfigured WordPress plugin – A plugin may be blocking IP addresses to avoid malware, causing the 403 forbidden error.

Now that you know the causes, let’s address how to fix them.

How to Fix 403 Errors

1. Set the correct file permissions.

If you’ve configured your web server, you’ll want to add the server to the www-data group, and set ownership of /var/www to the www-data user and www-data group.

Then, make sure your directories are set to 755, your files are set to 644, and your dynamic content is set to 700. This determines which user types (owner, group, everyone) can read, write, and execute.

2. Make sure you have an index page.

Your …read more

Source:: HubSpot Blog

      

Aaron
Author: Aaron

Related Articles