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.

Commercial Real Estate Website Design That Sells

Commercial Real Estate Website Design That Sells

Elevate your online presence with effective commercial real estate website design that captivates and converts visitors. At Ericks Web Design, we help you build an engaging site that showcases properties through high-quality images, user-friendly navigation, and mobile optimization. Incorporate strong calls-to-action and SEO strategies to ensure potential clients find you easily. Including client testimonials can build trust, while fresh content keeps your site relevant. We’re here to transform your vision into a compelling selling tool. Let’s elevate your online presence in South Texas!

Why You Should Use a Lead Magnet (and What to Offer)

Why You Should Use a Lead Magnet (and What to Offer)

In today’s digital landscape, using a lead magnet is essential for small businesses looking to attract new customers. A lead magnet is a valuable offer, such as an eBook or discount, provided in exchange for contact information. This strategy not only builds relationships and increases website traffic but also helps in segmenting the audience. For South Texas businesses, effective options include free guides, checklists, or webinars tailored to local needs. Implementing a lead magnet enhances engagement and grows your online presence. Start leveraging lead magnets today to drive customer connections and elevate your web design strategy.

Keyword: lead magnet

Church Websites Built for Growing Congregations

Church Websites Built for Growing Congregations

Summary:

Church leaders in South Texas and beyond often struggle with an outdated online presence, jeopardizing community connections. A well-designed church website is essential for growth, serving as a welcoming space to engage current and potential members. Key elements include user-friendly navigation, engaging visuals, and SEO optimization to enhance visibility, ensuring newcomers can find services easily. Consistent content updates and bilingual options further foster inclusivity. Ericks Web Design specializes in creating tailored websites that reflect each congregation’s heart and community spirit, making it easier to connect and grow.

Keyword: Church websites.

How to Track Website Visitors (And What to Do With That Data)

How to Track Website Visitors (And What to Do With That Data)

Tracking website visitors is crucial for small businesses in South Texas to enhance their online presence. By using tools like Google Analytics, you can gather data on unique visitors, page views, and demographics, enabling you to tailor your content and promotions effectively. Understanding these metrics helps refine your strategy and improve user experience, ultimately driving more inquiries and sales. Leverage visitor data to create targeted ads and continuously monitor your site’s performance for ongoing success.

Keyword: website visitors tracking.

Catering Websites That Tastefully Sell Your Services

Catering Websites That Tastefully Sell Your Services

Summary:

The article "Catering Websites That Tastefully Sell Your Services" emphasizes the importance of a strong online presence for small businesses in South Texas. It highlights that a well-designed website acts as a business card, showcasing a brand’s personality and engaging customers with relatable content. Quality visuals and effective SEO strategies are key to attracting visitors. The piece encourages business owners to maintain an inviting atmosphere online, ultimately creating a memorable experience. Ericks Web Design offers services to help businesses build stylish and effective websites, ensuring they thrive in the digital space.

Keyword: Catering Websites

Top Email Marketing Tools to Connect With Visitors

Top Email Marketing Tools to Connect With Visitors

Summary:

For South Texas business owners, effective email marketing is a key strategy to connect with visitors and boost sales. This article highlights top tools like Mailchimp, Constant Contact, SendinBlue, and HubSpot, each offering unique features tailored for local businesses. Email marketing ensures direct access to customers, cost-effectiveness, and personalization, making it a vital component of digital marketing. Invest in these tools to enhance engagement and strengthen customer relationships.

Keyword: Email marketing tools

Carpet Cleaning Websites That Look Spotless

Carpet Cleaning Websites That Look Spotless

Summary:

To enhance your carpet cleaning business’s online visibility, a polished website is essential. A clean, professional design with strong branding and mobile optimization fosters trust and attracts customers. SEO strategies, including proper keywords and quality content, are vital for effective engagement. Regular website maintenance ensures your online presence remains fresh and functional. By prioritizing these elements, you’ll transform your website into a standout asset, much like a freshly cleaned carpet. For assistance, Ericks Web Design offers tailored solutions for businesses in McAllen, TX, and beyond.

Keyword: Carpet Cleaning Website

Using Landing Pages to Increase Conversions

Using Landing Pages to Increase Conversions

Using Landing Pages to Increase Conversions

Landing pages are essential for small businesses in South Texas aiming to boost conversions. They are focused, standalone pages designed to turn visitors into leads by providing targeted messaging and a streamlined user experience. Key elements include compelling headlines, engaging visuals, persuasive calls-to-action, trust signals, and simplified forms. Effective landing pages can lead to significant growth, as demonstrated by local businesses in McAllen. For tailored landing page solutions, consider partnering with experts to enhance your online presence and drive results. Embrace the power of landing pages to unlock new opportunities for growth!

Keyword: Landing pages

Optometry Websites Designed to Convert New Patients

Optometry Websites Designed to Convert New Patients

The article highlights the importance of creating effective optometry websites that attract and convert new patients. It emphasizes the need for a clean design, mobile optimization, proper SEO strategies, easy booking systems, engaging content, and showcasing patient testimonials. A well-designed website not only enhances patient intake but also expands the reach beyond local markets. Ericks Webs Design specializes in crafting websites tailored for optometrists to help them succeed online.

Keyword: “optometry websites.”

How to Promote Your Website After Launch

How to Promote Your Website After Launch

After launching your website, promoting it effectively is essential for attracting customers and growing your business in South Texas. Begin by leveraging local SEO to ensure that your site ranks well for regional searches. Utilize social media to engage with your community and share valuable content. Collaborate with other local businesses for cross-promotion, and consider investing in targeted paid advertising. Lastly, keep your audience engaged through email marketing by building a subscriber list. By implementing these strategies, you’ll enhance your website’s visibility and drive traffic. Focus on local SEO to maximize your efforts.