{"id":1536,"date":"2019-02-08T10:35:56","date_gmt":"2019-02-08T10:35:56","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583304-how-to-fix-a-403-forbidden-error-at-hostinger\/"},"modified":"2026-05-08T13:03:00","modified_gmt":"2026-05-08T13:03:00","slug":"1583304-how-to-fix-a-403-forbidden-error-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583304-how-to-fix-a-403-forbidden-error-at-hostinger\/","title":{"rendered":"How to Fix a 403 Forbidden Error at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">If you encounter a <b>403 Forbidden <\/b>error when opening your website, it means that the server was not able to authorize your request. This may be due to a few different reasons:<\/p><h2 id=\"h_ab353134c4\">Incorrect A Record<\/h2><p class=\"no-margin\">Go to your domain&rsquo;s DNS Zone and make sure that the <b>A record<\/b> is set to the <b><a class=\"intercom-content-link\" href=\"\/support\/4407303-where-can-i-find-a-record\" target=\"_blank\" rel=\"noopener\">IP of your hosting plan<\/a><\/b>:<\/p><ul>\n<li>\n<p class=\"no-margin\">If your domain is <b><a class=\"intercom-content-link\" href=\"\/support\/1863967-how-to-point-domain-to-hostinger\" target=\"_blank\" rel=\"noopener\">pointing to Hostinger<\/a><\/b>, follow this guide:<b> <a class=\"intercom-content-link\" href=\"\/support\/4468886-how-to-manage-a-records-in-hpanel\" target=\"_blank\" rel=\"noopener\">How to manage A records<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">If your domain is pointing elsewhere by nameservers, you will need to go to <b><a class=\"intercom-content-link\" href=\"\/support\/4410887-how-to-make-dns-record-changes-in-other-registrars-hosting-providers\" target=\"_blank\" rel=\"noopener\">your domain&rsquo;s active DNS Zone<\/a><\/b> and check the A record there<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">After making any changes to your DNS records, allow <b>up to 24 hours<\/b> for them to <b><a class=\"intercom-content-link\" href=\"\/support\/4146975-what-is-dns-propagation\" target=\"_blank\" rel=\"noopener\">propagate<\/a><\/b> fully, and your website should start working! &#128522;<\/p><h2 id=\"h_9376ee7ca9\">Malware affected files<\/h2><p>Your website might be affected by malware. In such cases, you can use Malware Scanner, which is already included to your hosting plan and is available directly in hPanel.<\/p><p>To see if that&rsquo;s the case, you need:<\/p><ul>\n<li class=\"whitespace-normal break-words pl-2\">Open your website&rsquo;s dashboard in hPanel and navigate to <strong>Security <b>&rarr;<\/b> Malware Scanner<\/strong> in the left sidebar.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">If no threats are detected, the panel will show that no malware was found.<\/li>\n<li class=\"whitespace-normal break-words pl-2\">If infections are found, the scanner lists each affected file and describes what action was taken to address it.<\/li>\n<\/ul><p>If your website is built with WordPress, you can follow a guide: <strong><a href=\"https:\/\/www.hostinger.com\/tutorials\/wordpress-malware-removal\">How to remove WordPress malware: manual and automatic malware removal<\/a>.<\/strong><\/p><h2 id=\"h-incorrect-file-structure-or-permissions\">Incorrect File Structure or Permissions<\/h2><p class=\"no-margin\">You may have incorrect file or folder permissions. If that&rsquo;s the case, you can easily <b><a class=\"intercom-content-link\" href=\"\/support\/1583479-how-can-i-fix-permissions-of-my-files\" target=\"_blank\" rel=\"noopener\">fix the permissions of your files<\/a><\/b>.<\/p><p class=\"no-margin\">Alternatively, the <b>public_html<\/b> folder is missing or empty. Go to <b><a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a> &rarr; Manage<\/b> and open the <b>File Manager<\/b>:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/316267c1-a6e3-4e58-80a3-da307a26c1d7.jpg\" alt=\"Hostinger dashboard with File manager tile highlighted\" data-media-id=\"5352\"><\/div><p class=\"no-margin\">If the folder is missing, create a new directory named <b>public_html, <\/b>and make sure to <b><a class=\"intercom-content-link\" href=\"\/support\/1884234-how-to-upload-backups-at-hostinger\" target=\"_blank\" rel=\"noopener\">upload your website files<\/a><\/b> in this location. In case your files are in a different folder, move them to the correct path.<\/p><h2 id=\"h_e7b39fbd7a\">Issues on the .htaccess File<\/h2><p class=\"no-margin\">To check if the <b>.htaccess<\/b> file may be corrupted or have some incorrect configurations, go to the<b> public_html<\/b> folder of your domain using the <b>File Manager<\/b>, locate the <b>.htaccess file<\/b>, and rename it, e.g., to <b>.htaccess-disabled<\/b>:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/2be537e4-a76c-42fa-8d24-af234ab706c7.jpg\" alt=\"Hostinger file manager showing .htaccess selected and the Rename option highlighted\" data-media-id=\"5353\"><\/div><p class=\"no-margin\"><b><a class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/tutorials\/clear-browser-cache\" target=\"_blank\" rel=\"noopener\">Clear your browser cache<\/a><\/b> and try accessing your website &ndash; if it works, it means you need to double-check the code within your <b>.htaccess<\/b> file. Some common issues are:<\/p><ul>\n<li>\n<p class=\"no-margin\">Deny rules<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Incorrect rewrite rules<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Improperly set redirections<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">For WordPress-based websites, some security plugins can add <code>Deny from All<\/code> rules to your <b>.htaccess files<\/b>:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/64d3dab8-9161-4db6-af34-75c2c09362e2.jpg\" alt=\"Hostinger .htaccess editor with Deny from All code highlighted\" data-media-id=\"5355\"><\/div><p class=\"no-margin\">In that case, look for these lines and remove them if necessary.<\/p><p class=\"no-margin\"><b>NOTE<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\">These WordPress plugins can also create <b>.htaccess<\/b> files with deny rules in directories like <b>wp-admin <\/b>and prevent you from reaching them<\/p>\n<\/li>\n<\/ul><h2 id=\"h_788437c216\">Further Steps<\/h2><p class=\"no-margin\">While these are the most common reasons for the 403 error, there still may be other factors that you can consider, such as a <b>missing index page<\/b>, a <b>faulty WordPress plugin, <\/b>or a <b>malware <\/b>infection.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">For detailed information on any 403 errors encountered on your website, you can check the <b><a class=\"intercom-content-link\" href=\"\/support\/5650167-how-to-use-the-access-logs-section-on-hpanel#h_0060feb18e\" target=\"_blank\" rel=\"noopener\">Access Logs<\/a><\/b> &#128161;<\/p>\n<\/div><p class=\"no-margin\">You can find more information about these cases and how to fix them in this comprehensive tutorial: <b><a class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/tutorials\/what-is-403-forbidden-error-and-how-to-fix-it\" target=\"_blank\" rel=\"noopener\">What Is the 403 Forbidden Error and How to Fix it<\/a><\/b>, as well as by checking the following<b> video tutorial<\/b>:<\/p><div class=\"intercom-h2b-video\">\n<p><iframe loading=\"lazy\" title=\"How to Fix 403 Forbidden Error\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/wWtYqgOBe3Q?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Fixing 403 Forbidden error on your website<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[180],"tags":[],"class_list":["post-1536","post","type-post","status-publish","format-standard","hentry","category-website-troubleshooting"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583304-how-to-fix-a-403-forbidden-error-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583304-como-corregir-un-error-403-prohibido-403-forbidden-error-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583304-comment-corriger-une-erreur-403-forbidden-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583304-cara-mengatasi-error-403-forbidden-di-hostinger\/","default":0},{"locale":"lt-LT","link":"https:\/\/www.hostinger.com\/lt\/support\/1583304-kaip-istaisyti-403-forbidden-klaida-hostinger-platformoje\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583304-como-corrigir-o-erro-403-forbidden-no-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583304----403-forbidden--hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1536"}],"version-history":[{"count":4,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1536\/revisions"}],"predecessor-version":[{"id":9853,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1536\/revisions\/9853"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}