Website Pricing Guide

Enter your email to get instant access to our website pricing guide.

How to Fix WordPress 403 Forbidden Error

October 12, 2023 by
Trespassing is illegal. But, if you’re encountering the 403 Forbidden error, you’re probably not trying to break into some sort of a top-secret black site. The 403 Forbidden error typically occurs when you’re trying to log in to WordPress or visit a specific page, but can’t. This can be incredibly frustrating. Fortunately, there are a […]


Trespassing is illegal. But, if you’re encountering the 403 Forbidden error, you’re probably not trying to break into some sort of a top-secret black site.

The 403 Forbidden error typically occurs when you’re trying to log in to WordPress or visit a specific page, but can’t. This can be incredibly frustrating.

Fortunately, there are a few simple fixes for this common WordPress error. Depending on your hosting plan, you may even be able to resolve the issue with help from your web host.

In this post, we’ll take a closer look at the 403 Forbidden error and its main causes. We’ll then show you 11 ways to fix it.

Get Content Delivered Straight to Your Inbox

Subscribe now to receive all the latest updates, delivered directly to your inbox.

What Is The 403 Forbidden Error?

The 403 Forbidden error means that your server thinks you do not have the required permission to access that particular page. This is usually caused by an issue with file permissions, but could be caused by another problem related to hosting or authentication.

The 403 Forbidden error typically appears when you’re trying to log in to your WordPress admin area or when visiting a specific page on your site. You may also encounter it while installing WordPress.

It’s one of several HTTP status codes used by servers to communicate with your browser.

The error is usually accompanied by one of the following messages (or similar variations):

  • “HTTP 403 Forbidden – Access to this resource on the server is denied.”
  • “HTTP Error 403 – Forbidden.”
  • “Forbidden – You don’t have permission to access [directory name] on this server.”
  • “You are not authorized to view this page.”
  • “It appears you don’t have permission to access this page.”
  • “403. That’s an error. Your client does not have permission to get URL [address] from this server.”

Instead of the “403 Forbidden” status, you might come across a simple notification that says “Access Denied.” It is also possible that you will get the following message: “Access to [domain name] was denied. You don’t have authorization to view this page.”

What Causes The 403 Forbidden Error?

There are several possible causes of the 403 Forbidden error code but the most likely one is an incorrect file permission on your server.

DreamHost Glossary

File Permissions

File permissions are rules that govern which user roles can carry out which interactions with specific files and directories within a filing system, network, or device.

Read More

This means that one or more files the browser is trying to access are not accessible because of their permissions.

Permissions directives determine who can view and modify the files on your website and your web server. They protect your files from outside tampering. But, in some cases, if misconfigured, they can prevent your site from working correctly.

However, this error can also be triggered by a faulty plugin or a corrupt .htaccess file.

DreamHost Glossary

.htaccess

’.htaccess’ is a configuration file used by the Apache web server software. The .htaccess file contains directives (instructions) that tell Apache how to behave for a particular website or directory.

Read More

In most cases, you should be able to resolve the issue on your own. However, you might also need to get in touch with your hosting provider to access or change some settings on your site.

11 Ways To Fix The 403 Forbidden Error In WordPress

Now, let’s go through a few ways you can fix the 403 Forbidden error.

First, we recommend that you make a backup of your site just in case something goes wrong and you need to restore it to an earlier version.

We’ll explore some common causes and how to fix the problem:

  1. Check the URL
  2. Perform a Hard) Refresh
  3. Clear Browser Cache
  4. Disconnect from VPN
  5. Check Index Page
  6. Change Your File Permissions
  7. Deactivate Your Plugins
  8. Delete and Restore the .htaccess File
  9. Deactivate Your CDN
  10. Check Hotlink Protection
  11. Contact Your Web Host

1. Check The URL And (Hard) Refresh

Before we delve deeper, let’s make an assumption – you’re operating on a private Wi-Fi network. It’s important to note that public networks often have different firewall rules that may prevent you from accessing your website.

With our Wi-Fi network disclaimers out of the way, let’s really begin.

First, double-check the URL that you’re typing into your web browser and make sure that it’s pointing to the correct website and web page.

Sometimes, a small mistype in the web address can trigger an error, or a broken link on your website could have sent you to a page that doesn’t exist, triggering the 403 error.

If the URL looks correct and there are no problems with its structure, format, or spelling, then we’ll move onto refreshing the page.

2. Perform A (Hard) Refresh

Next, try refreshing the page.

In most browsers like Google Chrome, you can do this by simply clicking on the address bar to highlight the address. Then press “Enter.”

If refreshing doesn’t help, then let’s try a “Hard” refresh.

This is a simple trick that clears your browser’s cache for the specific page you’re trying to access. This forces the browser to download the latest version of the page and might fix the issue.

DreamHost Glossary

Cache

A cache is a temporary data storage layer that is designed to improve data access speeds by reducing the time needed to read and write data from a permanent data storage location.

Read More

To perform a hard refresh in Google Chrome: Open the page and press Cmd + Shift + R.

The page should refresh and you can see if this solved the problem.

If not, then let’s take it to the next step.

3. Clear Browser Cache

Website errors are either caused by server-side problems (issues with the website, server, or configuration) or client-side problems (issues with the browser or user’s device, settings, etc).

Your browser cache is one client-side problem that can cause many unexpected issues.

Luckily it’s easy to fix. You just clear the cache to force your browser to fully fetch content from the pages you’re trying to visit.

Follow these instructions to clear your browser’s cache.

Nerd note: If this doesn’t work and you really want to be sure it’s not a caching issue, you can try flushing your DNS cache, too. Just to be safe.

4. Disconnect From VPN

VPNs (Virtual Private Networks) are great for masking your location and protecting your privacy online. Because they route your internet activity through somewhere other than your actual location, they also change your IP address.

This is good for privacy, but it can create access and permissions issues on certain websites.

If you’re using a VPN, try disabling it and then repeating the above steps.

5. Check Index Page

Now we’re going to dig in a bit further and start diagnosing potential problems with your website files, permissions settings, and other problems that may give rise to the 403 error.

Most websites, including WordPress sites, expect your homepage to have a specific file name by default.

Unless otherwise specified, the site will look for a file named something like:

If the page is missing, you’ll likely have issues.

Before we start adjusting file permissions, let’s just make sure that your homepage file is intact and correctly named.

To do this, you’ll need to take one to two steps:

  1. Connect to your site with a Secure File Transfer Protocol (S/FTP) client, such as FileZilla
  2. Access your site through the file manager in your hosting account

If you have a DreamHost account, this guide from our knowledge base will walk you through accessing and utilizing the built-in file manager.

Whether you access your files through S/FTP or a file manager, you need to look for your “index” file.

Inside your root directory, you’ll likely find a folder called something like “myexamplesite.com” (If you’re a DreamPress user, the folder will be called “{YOURSITE}.dream.press”.)

This is the main folder that contains all of your website’s files.

Open it and look for a file called either “index.html” or “index.php”.

If you’re using WordPress, then you may need to take a few extra steps. Navigate to wp-content > themes > {YOUR THEME}. The index file for your specific site theme should live in this folder.

If you find an index.php or index.html file, then this is unlikely to be causing your 403 error.

If you can’t find an index file, then this could be the issue that’s generating the 403 error.

Start by creating and uploading a blank “index.html” or “index.php” file into the relevant folder.

Then go try your website again, performing a hard refresh.

You probably won’t see your website, but if you see a blank screen rather than the 403 error, then it’s likely that you’ve found the problem.

At this point, you’ll probably want to try contacting your web host for help. Alternatively, roll back your website to a previous backup version before the problem occurred.

If you’re using WordPress, you could consider installing WordPress again. (This will wipe out your settings, themes, and plugins, but it shouldn’t impact the content and files you’ve added to your database.)

6. Change Your File Permissions

Every WordPress file on your site’s server has its own access permissions. These settings control who can access and modify its contents. If these files have incorrect permissions, your server will stop you from accessing them.

As we covered in the last section, you can access your website either through S/FTP client or a file manager app. Once you do so, you’ll need to find your “public_html” folder or whichever folder contains all of your website files in the directory browsing window.

Then, right-click on it and choose File Attributes.

Public File, File Attributes

In the popup window, locate the Numeric field and enter “755” or “750” in the value box. Then select the “Recurse into subdirectories” and “Apply to directories only” options, and click on “OK.”

File Attributes, Apply To Directories Only

So far, you’ve applied the correct folder permissions just for your directories. You’ll now do the same thing for your files.

To start, right-click on your public_html folder and select File Attributes. This time, you’ll need to type “644” in the Numeric value field. Then choose Recurse into subdirectories, select Apply to files only, and click on OK.

File Attributes, Apply To Files Only

Nerd note: Your wp-config.php file requires a different numeric value than the ones stated here. This unique value prevents other users on your servers from accessing the file. Therefore, you’ll need to change its file permission manually.

In your root directory, find the wp-config.php file, right-click, and select File permissions. Next, set the numeric value to “440”, and click OK.

File Permissions, Numeric Value

Now, every one of your WordPress files and folders should have the correct permissions. Once you’ve completed the above steps, go back to your site and try to reproduce the 403 Forbidden error. If your site works fine, you don’t need to do anything else.

However, don’t worry if you’re still facing the same problem. There are still a few more fixes to try.

7. Deactivate Your WordPress Plugins

As we mentioned earlier, the 403 Forbidden error can also be caused by a faulty plugin. To determine if this is the case, you’ll need to deactivate your plugins and then reactivate them individually.

To start, connect to your site via FileZilla or the file manager in your hosting account. Then, open the wp-content folder in your site’s root directory and locate the plugins folder. Right-click on the plugins folder and select Rename.

Rename Plugins

Next, give the folder a new name, for example, “plugins_test”. This will automatically deactivate all of your plugins.

If you can access your site after renaming the folder, then the 403 Forbidden error was caused by a glitchy plugin. Your next step is to find out which one it is.

First, return to your site’s root directory and rename the plugins folder back to “plugins”. Then, navigate to the Plugins page in your WordPress dashboard and activate the plugins one at a time. Keep doing this until you are able to reproduce the error.

Once you’ve identified the faulty plugin, you can either remove it or contact its developer for support.

8. Delete And Restore The .htaccess File

A corrupt or misconfigured .htaccess file can also trigger the 403 Forbidden error. This file is located in your site’s root directory and enables WordPress to interact with your server.

.htaccess is a file used on Apache web servers. It contains rules and directives about your website. If it becomes corrupted or misconfigured, it can create problems like the 403 error (among other things).

How do you fix it?

Inside your site’s root directory, locate the .htaccess file, right-click on it, and choose Delete.

Delete .Htaccess

Now, try accessing your site again. If the 403 Forbidden error has disappeared, then your .htaccess file may have been corrupted. This means you’ll need to create a new one.

To do this, navigate to Settings in your WordPress dashboard and select Permalinks. Then click on the Save Changes button at the bottom of the page, and a new .htaccess file will be generated. You can look for the file in your site’s directory to ensure that it has been restored.

9. Deactivate Your CDN

If you’re still getting the 403 Forbidden error after completing the above steps, you may have a problem with your Content Delivery Network (CDN). This is a network of servers located in different parts of the world, with each server hosting a copy of your website. Many hosting plans come with a CDN to help boost your site’s performance.

DreamHost Glossary

CDN

CDN is an abbreviation for “Content Delivery Network”. It refers to a geographically-distributed network of web servers (and their data centers). The entities that make up a CDN collaborate to ensure speedy content delivery via the internet.

Read More

To see if your CDN is the cause of the error, you’ll need to temporarily disable it. You can do this by logging into your hosting account and locating your CDN settings. If you’re unable to access your CDN, we recommend getting in touch with your hosting provider.

10. Check Your Hotlink Protection

Finally, you might want to check your site’s hotlink protection.

Hotlinking is when someone embeds media files on their site by linking them directly from another site. Some individuals may do this to use another site owner’s bandwidth (rather than their own), which is effectively theft.

Some hosts and CDN providers offer hotlink protection.

However, if this is not set up properly, it can trigger a 403 Forbidden error on your site.

Therefore, you may want to contact your web host about this issue. While you may want to look into this yourself, it’s best to get help from a technical expert to ensure that your hotlink protection is configured correctly.

11. Contact Your Web Host

If all else fails, ask for help.

Your website hosting company’s support team should be able to provide additional steps and ideas for troubleshooting this issue.

In some cases, it could be triggered by a server configuration problem, changes to the DNS, or even malware or other website attacks.

Additional WordPress Resources

If you’re new to WordPress, you’re bound to run into some technical issues while setting up your site. To help you fix some of the most common WordPress errors, we’ve put together several how-to guides:

Meanwhile, if you’re looking for more WordPress tips and hacks, check out our WordPress Tutorials. This collection of guides will help you set up and design your first WordPress site like a professional.

Get Content Delivered Straight to Your Inbox

Subscribe now to receive all the latest updates, delivered directly to your inbox.

Luke is the Director of IT Operations. He is responsible for the teams that keep operations running smoothly… In his free time, he enjoys reading fantasy/sci-fi and hanging out with his wife and 4 kids. Connect with Luke on LinkedIn: https://www.linkedin.com/in/luke-odom-039986a/

Your Dream Website Is Just One Click Away

At Ericks Webs Design, we believe every business deserves a stunning online presence — without the stress. We offer flexible payment options, a friendly team that truly cares, and expert support every step of the way.

Whether you’re a small business owner, a church, or a growing brand, we’re here to bring your vision to life.

✨ Let’s build something amazing together.

— no pressure, just possibilities.

Latest News & Website Design Tips

Stay up-to-date with the latest insights, trends, and tips in business website design. Explore our newest articles to discover strategies that can help you elevate your online presence and grow your business.

What Should Be on a Construction Business Website? (Checklist Inside)

What Should Be on a Construction Business Website? (Checklist Inside)

In today’s competitive market, a strong online presence is critical for construction businesses aiming to attract more clients and build lasting trust. A well-designed website serves as a powerful marketing tool, showcasing your brand, completed projects, and client testimonials. Key elements include responsive design for mobile users, clear service offerings, and optimized local SEO to ensure visibility. Incorporating a blog enhances your authority while driving traffic. Additionally, featuring trust signals, such as licenses and certifications, reinforces credibility. By investing in a tailored website, you’re not just promoting your skills, but ensuring potential clients can easily find and connect with you, setting the foundation for future success.

Creating a Services Page That Sells

Creating a Services Page That Sells

The article “Creating a Services Page That Sells” emphasizes the importance of a well-crafted Services page for small businesses in South Texas. It highlights how to clearly define services, use engaging descriptions, and showcase local relevance to attract potential clients. It advises including a Unique Selling Proposition to differentiate from competitors and employing strong Calls to Action (CTAs) to guide visitors toward making a decision. By following these strategies, business owners can enhance their online presence and convert visitors into loyal customers, ensuring their services page effectively communicates value and resonates with the local audience.

Before and After: How One Website Helped a Local Contractor Double His Business

Before and After: How One Website Helped a Local Contractor Double His Business

Many talented contractors struggle to attract clients despite their skills, often losing business to competitors with better online visibility. A compelling website can be transformative, as illustrated by Juan, a contractor who doubled his leads after investing in a custom site. By showcasing his projects, simplifying lead generation, and enhancing his Google search presence, he dramatically improved his visibility and client engagement. This case underscores the importance of a strong online presence for contractors; without it, potential clients may never discover their services. Adapting to digital marketing needs is essential for sustainable growth in the competitive construction industry.

Why Testimonials Matter for Dental Websites

Why Testimonials Matter for Dental Websites

Testimonials are crucial for dental websites as they build trust and authenticity, helping potential patients feel confident in their choice. By showcasing real patient experiences, dental practices can highlight their community connection, making them more relatable and inviting. These positive reviews not only enhance website engagement but also boost SEO by including relevant keywords. Authentic testimonials resonate with visitors, encouraging them to choose your practice over others. Regularly updating and creatively sharing these testimonials through social media and newsletters can further strengthen your online presence. In summary, testimonials are vital for establishing credibility and attracting more patients to your dental practice.

How to Write Headlines That Get Clicked

How to Write Headlines That Get Clicked

The article “How to Write Headlines That Get Clicked” emphasizes the importance of compelling headlines for small business owners in South Texas. It highlights key strategies: understand your audience, use power words, keep headlines simple and clear, incorporate numbers and lists for structure, and create a sense of urgency. For instance, local examples like Maria’s Bakery and Carlos’ Landscaping show how tailored headlines can enhance relevance. By implementing these strategies, businesses can improve click-through rates and engage potential customers effectively. Crafting effective headlines is presented as a skill that can be developed to boost online presence and attract more clicks.

How Your Website Builds Trust Before You Even Pick Up the Phone

How Your Website Builds Trust Before You Even Pick Up the Phone

For contractors in South Texas, an online presence is vital for attracting clients. In an era where potential customers frequently search for services online, having a visually appealing and functional website can significantly enhance credibility. A well-designed site showcases completed projects, incorporates client testimonials, and displays trust signals like certifications. Additionally, it simplifies the process for visitors to request quotes, making engagement effortless. Optimizing for local SEO ensures visibility in search results, allowing businesses to stand out in a competitive market. By prioritizing a robust online presence, contractors can secure more leads and establish lasting trust with potential clients, ultimately driving growth and success.

Appointment Booking Tools for Busy Dental Offices

Appointment Booking Tools for Busy Dental Offices

The article “Appointment Booking Tools for Busy Dental Offices” highlights how these tools can streamline scheduling and enhance patient experience. It discusses the challenges dental offices face, such as managing patient care and scheduling chaos. Appointment booking tools allow patients to book their own appointments online, reducing double-bookings and no-shows through automated reminders. Benefits include streamlined scheduling, better data insights, and improved patient satisfaction. The article also suggests popular options like Square Appointments and Dentrix, emphasizing the importance of choosing a tool that fits specific needs. Overall, incorporating appointment booking tools can lead to a more efficient practice and happier patients.

Why Blogs Still Matter for Small Businesses

Why Blogs Still Matter for Small Businesses

The article “Why Blogs Still Matter for Small Businesses” emphasizes the enduring importance of blogs in digital marketing, particularly for small businesses in South Texas. It highlights how blogging enhances SEO by generating quality content that attracts search engines and boosts online visibility. Real-life examples illustrate how local businesses, like a mechanic shop or coffee shop, can build trust and authority, connect with audiences, drive website traffic, and become community resources. Ultimately, the article advocates for blogs as an essential marketing strategy for fostering growth and engaging customers effectively.

24/7 Salesperson: How a Website Works for Your Construction Business Around the Clock

24/7 Salesperson: How a Website Works for Your Construction Business Around the Clock

Many construction business owners struggle to attract clients due to poor online visibility, often losing potential jobs to competitors. A custom website can serve as a dedicated salesperson, promoting your work 24/7. It showcases your projects, gathers client testimonials, and simplifies quote requests, enhancing trust and credibility with potential customers. By investing in an effective online presence, you can ensure your construction business stands out to savvy consumers who research services beforehand. A well-designed site not only streamlines inquiries but also positions your business to thrive in a competitive market, transforming your lead generation efforts and client engagement.

The Role of SEO in Growing a Local Dental Practice

The Role of SEO in Growing a Local Dental Practice

The article “The Role of SEO in Growing a Local Dental Practice” emphasizes how vital Search Engine Optimization (SEO) is for dental practices seeking to increase their online visibility. It discusses strategies like understanding the community’s needs, creating user-friendly websites, claiming Google My Business listings, and producing quality content. By optimizing for local searches, practices can improve their chances of attracting new patients. Regularly updating content and engaging with patients through reviews also enhance local SEO efforts. Ultimately, the article positions SEO as a crucial tool for dental practices in McAllen, TX, to thrive in a competitive market.