{"id":5797,"date":"2020-03-26T15:00:29","date_gmt":"2020-03-26T14:00:29","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=5797"},"modified":"2020-10-15T10:29:11","modified_gmt":"2020-10-15T08:29:11","slug":"how-to-fix-403-forbidden-error-in-wordpress","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/how-to-fix-403-forbidden-error-in-wordpress\/","title":{"rendered":"How to Fix the 403 Forbidden Error in WordPress"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]The infamous 403 Forbidden Error is one of the most perplexing and common errors a WordPress user may experience. It can happen in any of the following situations: when you\u2019re logging to your site, editing or viewing pages and posts, and during WordPress installation or site migration.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]This error can be hard to wrap your head around since it can happen in a bunch of unrelated situations. At the same time, the error message is pretty short on information, plainly stating that \u2018\u2019You don\u2019t have permission to access&#8230; \u2019\u2019. Variations include the following phrases: access is denied, forbidden, not allowed to access, not authorized to view, etc.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Here\u2019s an example of one of the many error variations.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Forbidden-403.jpg\" class=\"attachment-full size-full\" alt=\"Forbidden 403\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Forbidden-403.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Forbidden-403-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Forbidden-403-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Luckily, troubleshooting is far easier than it might seem at first glance. In this tutorial, we will cover all the steps that have been proven to solve the issue. We\u2019ll start with the most common causes and solutions, but we will also deal with some lesser-known cases of the 403 error.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">How to Fix 403 Forbidden Error in WordPress<\/h2>\n<p>[\/vc_column_text][vc_column_text]For starters, we strongly recommend that you backup your WordPress site. If you have any questions about this process, contact your hosting provider.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]After you backed up your data, you are ready to investigate the possible causes and solutions to the 403 Forbidden Error.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Creating a New .htaccess File<\/h3>\n<p>[\/vc_column_text][vc_column_text]The .htaccess file enables a number of server functionalities, but it can also be a source of issues that cause the 403 Forbidden Error. Fixing this file should solve the issue throughout the entire website.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]However, due to the all-encompassing nature of the .htaccess file and its importance to the site, finding the issue can prove to be quite difficult. To avoid the hassle of pinpointing it, the easiest way to get rid of the issue is to <strong>delete<\/strong> the current .htaccess file and <strong>create<\/strong> a new one.<br \/>\nYou can do this using an FTP client such as FileZilla.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The .htaccess file is located in the root WordPress directory. However, it is often hidden, so you\u2019ll have to enable the option(s) for showing hidden files within the chosen FTP client. For the purposes of this tutorial, we used the FileZilla. In this FTP client, you\u2019ll enable access to hidden files by navigating to the Server tab and clicking on \u201cForce showing hidden files\u201d.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"374\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files.jpg\" class=\"attachment-full size-full\" alt=\"Force showing hidden files\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files.jpg 700w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/05\/6-Force-showing-hidden-files-620x331.jpg 620w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Make sure you <strong>download<\/strong> the .htaccess file to a location on your computer. This will allow you to keep any editing work previously done on the file in case you determine it is not the culprit of the 403 Forbidden Error.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Save the file using the <strong>right-click<\/strong> and download.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Download-htaccess-file-image.jpg\" class=\"attachment-full size-full\" alt=\"Download htaccess file image\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Download-htaccess-file-image.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Download-htaccess-file-image-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Download-htaccess-file-image-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Once you save the file, <strong>right-click<\/strong> on it and <strong>select<\/strong> \u201cdelete\u201d.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Delete-htaccess.jpg\" class=\"attachment-full size-full\" alt=\"Delete htaccess\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Delete-htaccess.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Delete-htaccess-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Delete-htaccess-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]At this point, the 403 error should be gone if a faulty .htaccess file is the culprit. Log in to your WordPress site and run the test.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If the issue is still present, restore the backup .htaccess file saved on your computer. Simply <strong>upload<\/strong> the file to the same directory where it used to be.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If the error is gone, <strong>create<\/strong> a new .htaccess file. Log in to your WordPress site, <strong>navigate to Settings &gt; Permalinks<\/strong>, and click on \u201cSave changes,\u201d in the bottom left corner.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Save-permalinks.jpg\" class=\"attachment-full size-full\" alt=\"Save Permalinks\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Save-permalinks.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Save-permalinks-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Save-permalinks-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]After creating the file, re-test the error. The way you\u2019re going to test depends on how the error was manifested. You can refresh the post or page, re-log to your dashboard, view the page or post once more, re-install WordPress, re-access certain folders, etc. The same should be done after each suggested step.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]If the error is still present, proceed to the next step.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Fix 403 Error Caused by Incorrect File Permissions<\/h3>\n<p>[\/vc_column_text][vc_column_text]Another common cause for the 403 Forbidden Error is having incorrect permissions on all files and folders that form your WordPress site. Adjusting the permissions to their suggested values should solve it. You can do this manually, following the instructions we\u2019ll provide below. Alternatively, you can ask your hosting provider to do it on your behalf.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Using file permissions, the server determines which users have the ability to read, write or execute. More precisely, file permissions determine the ability to view, edit and run the file as a script. Folder permissions define whether you can view the folder\u2019s content, add or remove the files inside or perform actions on the entire folder.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The suggested permissions are:[\/vc_column_text][vc_empty_space height=&#8221;23px&#8221;]<ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">For folders\/directories &#8211; 755 or 750 <\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">For files &#8211; 644 or 640<\/span>        <\/div>\n            <\/li>\n<\/ul><ul class=\"qodef-unordered-list-item \">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\">For the wp-config.php file &#8211; 440 or 400<\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;10px&#8221;][vc_column_text]To change the folder permissions, <strong>connect<\/strong> to your server using an FTP client. <strong>Navigate<\/strong> to the folder containing your website\u2019s files, <strong>right-click<\/strong> on it and <strong>click<\/strong> on the \u201cFile Attributes\u201d option.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-1.jpg\" class=\"attachment-full size-full\" alt=\"File permissions\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]In the numeric value box, <strong>insert<\/strong> either 755 or 750. <strong>Tick off<\/strong> both the \u201cRecurse into subdirectories\u201d and \u201cApply to directories only\u201d checkboxes.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-1-1.jpg\" class=\"attachment-full size-full\" alt=\"File permissions\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-1-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-1-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-1-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]If you want to change the file permissions, follow a similar line of action. Go to the folder with the files you need, <strong>right-click<\/strong> it and <strong>select<\/strong> \u201cFile Attributes\u201d. Then, <strong>insert<\/strong> 644 or 640 in the numeric value box and <strong>click<\/strong> on the \u201cRecurse into subdirectories\u201d and \u201cApply to directories only\u201d checkboxes.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-2.jpg\" class=\"attachment-full size-full\" alt=\"File permissions\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-2.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-2-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-2-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]To change the permissions of the wp-config.php file, <strong>find<\/strong> the file in the root WordPress directory. In our case, it is called public_html. <strong>Right-click<\/strong> on the file and <strong>select<\/strong> \u201cFile Permissions\u201d.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-3-1.jpg\" class=\"attachment-full size-full\" alt=\"File permissions\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-3-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-3-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-3-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]In the numeric value box, <strong>insert<\/strong> 440 or 400.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-4.jpg\" class=\"attachment-full size-full\" alt=\"File permissions\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-4.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-4-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/File-permissions-4-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Now <strong>verify<\/strong> if the 403 Forbidden Error is solved.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Fixing 403 Forbidden Error Caused by a WordPress Plugin<\/h3>\n<p>[\/vc_column_text][vc_column_text]If the previous 2 methods haven\u2019t solved the error, it is most likely that some of your WordPress plugins are the culprit. Luckily, it is very easy to test this possibility.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Navigate to <strong>Plugins &gt; Installed Plugins<\/strong> and deactivate them one by one. Run a test each time you deactivate a plugin. If the error is gone, you\u2019ll know that the last plugin you deactivated was the issue. If that\u2019s the case, you can either delete it and find another with the same\/similar purpose or contact the plugin customer support for help.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Additional Troubleshooting Steps<\/h2>\n<p>[\/vc_column_text][vc_column_text]In most cases, the 403 Forbidden error should be solved using one of the 3 methods we described. In rare instances, however, the error can require additional troubleshooting. Let\u2019s look into these cases and possible solutions.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Removing mod_security<\/h3>\n<p>[\/vc_column_text][vc_column_text]Mod_security is an open-source firewall used by some servers for security purposes. Sometimes, it can cause the 403 Forbidden Error due to a misconfiguration. This issue requires you to remove the mod_security. You can do it yourself following the steps we laid out below, or you can contact your hosting provider for help.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]You can remove mod_security by <strong>adding<\/strong> the following code to the top of your <strong>.htaccess<\/strong> file via an FTP client.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;][vc_column_text]<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">&lt;IfModule mod_security.c&gt; \r\nSecFilterEngine Off \r\nSecFilterScanPOST Off \r\n&lt;\/IfModule&gt;<\/pre>\n<p>[\/vc_column_text][vc_empty_space height=&#8221;39px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-mod-security-1.jpg\" class=\"attachment-full size-full\" alt=\"Htaccess Mod Security\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-mod-security-1.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-mod-security-1-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Htaccess-mod-security-1-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]If the error isn\u2019t resolved, delete the previously inserted code, as it may cause security issues.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Reconfiguring Hotlink Protection<\/h3>\n<p>[\/vc_column_text][vc_column_text]Hotlink Protection is an option in cPanel which prevents direct linking to your files from other sites. Those files are often images, so the 403 error could be manifested as an inability to view these images. Since this option is used to restrict access, the error is shown when you are unable to access a file (image) which should be accessible.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To solve this issue, <strong>(re)configure<\/strong> your Hotlink Protection. <strong>Log in<\/strong> to cPanel using your credentials, <strong>scroll down<\/strong> to the Security section, and <strong>click<\/strong> on Hotlink Protection.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Hotlink-protection.jpg\" class=\"attachment-full size-full\" alt=\"Hotlink Protection\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Hotlink-protection.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Hotlink-protection-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Hotlink-protection-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]The only thing that remains is to carefully adjust the parameters. This usually means <strong>adding more file extensions to the \u201cBlock direct access\u201d box and ticking off the \u201cAllow direct requests\u201d checkbox<\/strong>. The file extensions should be separated with a comma. In the \u201cURLs to allow access\u201d section, check the list of sites and add the ones that are missing. Those sites are \u201cwhite-listed\u201d from the hotlink protection process.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"710\" height=\"378\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Reconfigure-hotlink-protection.jpg\" class=\"attachment-full size-full\" alt=\"Reconfigure Hotlink Protection\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Reconfigure-hotlink-protection.jpg 710w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Reconfigure-hotlink-protection-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2020\/03\/Reconfigure-hotlink-protection-620x330.jpg 620w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;82px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Renaming the File<\/h3>\n<p>[\/vc_column_text][vc_column_text]Uploading files to WordPress is an often overlooked instance when 403 Forbidden error (among others) might happen. To be more precise, this issue happens when you upload files with improper filenames. Quite often, they contain an apostrophe.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]To test this, <strong>rename<\/strong> the file manually. The filename should only use letters (excluding international language symbols), numbers, and dashes. <strong>Upload<\/strong> it and check if the issue is resolved.[\/vc_column_text][vc_empty_space height=&#8221;72px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h3 class=\"qodef-h5\">Contact Hosting<\/h3>\n<p>[\/vc_column_text][vc_column_text]If you had no luck solving the error with the suggestions we gave you, contact your hosting provider and ask for further assistance.[\/vc_column_text][vc_empty_space height=&#8221;81px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;50px&#8221;][vc_widget_sidebar sidebar_id=&#8221;top-picks-banner&#8221;][vc_empty_space height=&#8221;28px&#8221;][vc_separator color=&#8221;custom&#8221; accent_color=&#8221;#f0f0f0&#8243;][vc_empty_space height=&#8221;80px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">Final Thoughts<\/h2>\n<p>[\/vc_column_text][vc_column_text]Chances are you\u2019ve been able to regain access to your site, pages or resources using this tutorial. At the same time, you\u2019ve learned something new about this pesky issue.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Feel free to bookmark this 403 Forbidden Error troubleshooting guide! It\u2019ll surely come in handy whenever you face a similar problem. [\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to fix the 403 Forbidden Error in WordPress based on more and less known causes of the issue.<\/p>\n","protected":false},"author":11229,"featured_media":5942,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[4,52,13],"class_list":["post-5797","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-tips","tag-troubleshooting","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/5797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/11229"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=5797"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/5797\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/5942"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=5797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=5797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=5797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}