{"id":22626,"date":"2026-08-28T13:20:00","date_gmt":"2026-08-28T11:20:00","guid":{"rendered":"https:\/\/www.curiaweb.ch\/?post_type=docs&#038;p=22626"},"modified":"2026-08-28T13:20:01","modified_gmt":"2026-08-28T11:20:01","password":"","slug":"how-to-fix-403-forbidden-error","status":"publish","type":"docs","link":"https:\/\/www.curiaweb.ch\/en\/hilfe\/webhosting-cpanel\/fehler-403-forbidden-beheben\/","title":{"rendered":"Fix 403 Forbidden"},"content":{"rendered":"<p class=\"wp-block-paragraph\">If your website displays the error message <strong>403 Forbidden<\/strong> or rather <strong>403 Access Denied<\/strong> displayed, the web server can generally reach the requested resource, but refuses access to it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, the cause is often not the domain itself, but rather access rules, file permissions, a <code>.htaccess<\/code>-file or a security feature.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this guide, we will show you how to systematically investigate a 403 error in CURIAWEB web hosting and resolve the most common causes.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> Do not change file permissions at the same time, <code>.htaccess<\/code>, ModSecurity, and other security settings. Check one potential cause after another. That is the only way to determine what is actually causing the 403 error.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">What does 403 Forbidden mean?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The HTTP status code <code>403<\/code> simplified means:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Request reaches the web server\n        \u2193\nRequested resource is recognized\n        \u2193\nAccess is not allowed\n        \u2193\n403 Forbidden<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is what distinguishes a 403 error from a classic 404 error, for example.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Error<\/th><th>Simply put, he<\/th><\/tr><\/thead><tbody><tr><td><code>403 Forbidden<\/code><\/td><td>Access to the resource is denied.<\/td><\/tr><tr><td><code>404 Not Found<\/code><\/td><td>Requested resource was not found<\/td><\/tr><tr><td><code>500 Internal Server Error<\/code><\/td><td>Server-side processing failed<\/td><\/tr><tr><td><code>503 Service Unavailable<\/code><\/td><td>Service temporarily unable to process the request<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What can a 403 error look like?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on the application and web server, the visible message may be formulated differently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Examples are:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>403 Forbidden\n\nForbidden\n\nAccess Denied\n\nYou don't have permission to access this resource.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The HTTP status code is crucial <code>403<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 on the whole website or just on one URL?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before changing settings, you should narrow down the error pattern.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check, for example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Is the entire website affected?<\/li>\n\n\n\n<li>Just a single page?<\/li>\n\n\n\n<li>Only the WordPress admin area?<\/li>\n\n\n\n<li>Just one file or one directory?<\/li>\n\n\n\n<li>Just a form or a specific action?<\/li>\n\n\n\n<li>Only your own internet connection or rather your IP address?<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This distinction already provides important clues as to the possible cause.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Note the affected URL precisely<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, note the URL where the error occurs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/example.ch\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">or:<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/example.ch\/wp-admin\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">or:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>https:\/\/example.ch\/download\/datei.pdf<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If only a specific URL is affected, you should not immediately change the configuration of the entire website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Test for errors in a private browser window<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Also open the affected URL in a private or incognito window.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This allows you to at least more easily rule out certain local browser, cookie, or session effects.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, a private browser window does not bypass a server-side IP ban.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. Check if only your IP address is affected<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the website shows a 403 error for you, but works for other people or via a different internet connection, an IP-related block may be involved.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, you can compare:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>own internet connection \u2192 403\nmobile connection        \u2192 website works<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is a clear indication that the website is not generally blocked.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Practical Tip:<\/strong> A test via a second internet connection can be very helpful in the event of a 403 error. Do not prematurely disable the website's security features for this purpose.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">4. Check cPanel Error Log<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Open in CURIAWEB-cPanel:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Measured values \u2192 Errors<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check if a matching entry exists at the time of the 403 error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We explain how to systematically evaluate error messages at <a href=\"\/en\/help\/web-hosting-cpanel\/read-cpanel-error-log\/\">Read cPanel Error Log and find website errors<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Always note on relevant reports:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Date and time<\/li>\n\n\n\n<li>affected file or URL<\/li>\n\n\n\n<li>exact wording<\/li>\n\n\n\n<li>if applicable, specified rule or cause<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">5. Check file permissions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Incorrect file permissions are among the potential causes of a 403 error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Files \u2192 File Manager<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to the document root of the affected domain and check the permissions of the affected files and directories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For typical websites, the following values can often be found:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Files:      644\nDirectories: 755<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">However, these are not values you should blindly apply to every file and directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can find our detailed guide at <a href=\"\/en\/help\/web-hosting-cpanel\/file-permissions-644-755\/\">How to correctly set file permissions 644 and 755 in cPanel<\/a>.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Attention:<\/strong> Do not use as a general rule <code>777<\/code>, to \u201eresolve\u201c a 403 error. Extremely broad write permissions are not a clean fix and can pose a security risk.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Why incorrect permissions can cause a 403<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The web server requires sufficient permissions to access the directories and files required for a request.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If these permissions are set too restrictively or inappropriately, access can be denied.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, the problem can occur after:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>of a manual file transfer<\/li>\n\n\n\n<li>of a migration<\/li>\n\n\n\n<li>unpacking an archive<\/li>\n\n\n\n<li>a manual change of permissions<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">occur.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6. Check the document root of the domain<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Check if the domain points to the directory where the actual website is located.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To do this, open:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Domains \u2192 Domains<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check the document root used for the domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We explain how domains and document roots are connected at <a href=\"\/en\/help\/web-hosting-cpanel\/add-and-manage-domain\/\">Add and manage a domain in cPanel<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Incorrect document root can cause misleading errors<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Assuming your website is at:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>\/public_html\/meinewebsite\/<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, the domain points to a different directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then the web server may process different content or a different directory than expected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, always check first whether you are actually editing the files of the affected domain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">7. Check index file<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If a domain points to a directory where no suitable start file exists, a 403 error may appear instead of a directory listing, depending on the server configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Typical start files are, for example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>index.php\nindex.html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check in the file manager whether a matching start file is present in the document root of the website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 for a directory without an index file<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A typical case looks like this, simplified:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/public_html\/downloads\/\n    datei-a.pdf\n    datei-b.pdf\n    datei-c.pdf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you then only:<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/example.ch\/downloads\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">you call it, the server does not automatically have to display a list of existing files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If directory listing is disabled and no index file is present, access to the directory view can be denied.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This does not necessarily mean that the individual files within the directory are also locked.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Do not enable directory listing unnecessarily<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Do not enable directory listing or directory indexes solely to fix a 403 error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A public file list can disclose information that is not intended for visitors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check first whether the directory is supposed to be accessed directly at all.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">8. Check .htaccess as a possible cause<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The file <code>.htaccess<\/code> can contain access rules, redirects, and other Apache directives.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A faulty or intentionally restrictive rule can cause a 403 error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The file is often located in the document root of the website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If it is not visible in the file manager, read first <a href=\"\/en\/help\/web-hosting-cpanel\/show-hidden-files-htaccess\/\">Show hidden files like .htaccess in cPanel<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">.Do not delete .htaccess immediately<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Don't just delete the file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">She can important rules for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WordPress permalinks<\/li>\n\n\n\n<li>Redirects<\/li>\n\n\n\n<li>Access protection<\/li>\n\n\n\n<li>Safety features<\/li>\n\n\n\n<li>custom website configurations<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">contain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We explain how to edit them in a controlled manner under <a href=\"\/en\/help\/web-hosting-cpanel\/htaccess-explained-edited\/\">.htaccess explained and safely edited<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">.Test .htaccess safely<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the error occurs immediately after a change to the <code>.htaccess<\/code> occurred, you can create a backup first.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After that, you should specifically undo the last change made.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is much better than removing all the rules at once.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Website works\n        \u2193\n.htaccess rule added\n        \u2193\n403 occurs\n        \u2193\nspecifically check new rule<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Typical access restrictions in .htaccess<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <code>.htaccess<\/code> can contain rules that intentionally deny access to certain resources.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If such a rule exists, a 403 error may be precisely the intended result.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not remove safety rules until you have understood their purpose.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">9. Check cPanel IP blocking<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">cPanel provides at:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Security \u2192 IP blocking<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">a function that allows blocking access from specific IP addresses or ranges.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If only certain visitors are affected, you should check whether a corresponding block is in place there.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Remove IP block only if it is actually incorrect<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A blocked IP address may have been intentionally blocked.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, do not remove a ban solely because a user reports a 403 error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check first:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>which IP is affected<\/li>\n\n\n\n<li>why she was banned<\/li>\n\n\n\n<li>whether the block is still required<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">10. Check ModSecurity as a potential cause<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">CURIAWEB provides in cPanel under <strong>Security \u2192 ModSecurity<\/strong> appropriate security features.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ModSecurity can inspect HTTP requests based on security rules. If a request is classified as problematic, it can be blocked.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This may manifest as a 403 error under certain circumstances.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Typical situations with ModSecurity<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For example, a problem may only occur during a very specific action:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Access website        \u2192 works\nOpen WordPress          \u2192 works\nEdit post               \u2192 works\nSubmit specific form    \u2192 403<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Such a pattern points more toward a request-based security rule than toward incorrect permissions for the entire website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Do not disable ModSecurity permanently<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you suspect that a security rule is involved, you should not simply disable the protection permanently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This would remove a safety feature without addressing the root cause.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> If a legitimate request is reproducibly blocked by a security rule, document the affected URL, action, and exact time. This allows the cause to be investigated much more specifically.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">11. Consider Imunify360<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">CURIAWEB also uses <strong>Imunify360<\/strong> as a security solution on the hosting system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Imunify360 is not a part of cPanel itself, but an additional security platform integrated into the hosting environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Security mechanisms can detect suspicious or classified as malicious activities and react accordingly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If access is blocked due to a security measure, you should not bypass it without knowing the trigger.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 after many login attempts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If access is suddenly blocked after numerous failed login attempts or unusual activity, a security mechanism may be involved.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check in particular whether:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>only your IP is affected<\/li>\n\n\n\n<li>the website works via another connection<\/li>\n\n\n\n<li>the error occurred after an unusually high number of login attempts<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In this case, document your public IP address and the time of the issue for a technical review.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">12. Check password-protected directories<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">cPanel offers under:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Files \u2192 Folder Privacy<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">the option to additionally protect directories with access control.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If a directory has been intentionally protected, corresponding access restrictions may occur.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We explain how this protection is set up and managed under <a href=\"\/en\/help\/web-hosting-cpanel\/password-protect-folder\/\">Password protect folders in cPanel<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">13. Narrowing down WordPress as the cause<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If only one WordPress website is affected, additional WordPress-specific components may be involved.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This includes, for example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Security plugins<\/li>\n\n\n\n<li>Firewall plugins<\/li>\n\n\n\n<li>individual <code>.htaccess<\/code>-Rules<\/li>\n\n\n\n<li>Plugin conflicts<\/li>\n\n\n\n<li>Theme Code<\/li>\n\n\n\n<li>custom access restrictions<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">403 only in WordPress admin area<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When the public website works, but for example:<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/example.ch\/wp-admin\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">produced a 403 error, you should specifically check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WordPress security plugins<\/li>\n\n\n\n<li><code>.htaccess<\/code>-Rules<\/li>\n\n\n\n<li>IP-based restrictions<\/li>\n\n\n\n<li>ModSecurity<\/li>\n\n\n\n<li>other security mechanisms<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">A general domain or DNS problem is less likely in this case, since the public website is generally reachable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 only when saving a WordPress post<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you can use WordPress normally, but receive a 403 error when saving a specific piece of content, the error pattern is particularly important.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check if the error:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>occurs with every post<\/li>\n\n\n\n<li>occurs only with a specific content<\/li>\n\n\n\n<li>occurs after inserting certain HTML or script content<\/li>\n\n\n\n<li>only occurs during a specific action<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">A reproducible 403 on a specific HTTP request can indicate a security rule.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 with forms<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When a contact form is displayed, but submitting it fails with a 403, the normal page load is already working.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The diagnosis should therefore focus on the request upon submission.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Possible areas are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ModSecurity<\/li>\n\n\n\n<li>Security plugin<\/li>\n\n\n\n<li>individual access rule<\/li>\n\n\n\n<li>faulty application configuration<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For such issues, record the exact time of the failed attempt if possible.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 after installing a plugin<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the error starts immediately after the installation or activation of a WordPress plugin, this chronological connection is an important clue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In particular, security, firewall, and login plugins can alter access controls.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We explain how to systematically isolate plugin and theme issues at <a href=\"\/en\/help\/wordpress\/wordpress-plugin-theme-conflicts\/\">Identify and resolve WordPress plugin and theme conflicts<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 after a migration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If a website shows a 403 error immediately after a migration, you should check in particular:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Document Root<\/li>\n\n\n\n<li>File permissions<\/li>\n\n\n\n<li><code>.htaccess<\/code><\/li>\n\n\n\n<li>Startup file<\/li>\n\n\n\n<li>inherited access restrictions<\/li>\n\n\n\n<li>WordPress security plugins<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Rules that worked on the previous hosting environment do not necessarily have to fit the new environment unchanged.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 after unzipping a ZIP file<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you have manually uploaded and extracted a website as an archive, check first:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>whether the files are in the correct document root<\/li>\n\n\n\n<li>whether a <code>index.php<\/code> or rather <code>index.html<\/code> available<\/li>\n\n\n\n<li>whether file and directory permissions are plausible<\/li>\n\n\n\n<li>whether an included <code>.htaccess<\/code> contains access restrictions<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">We explain how ZIP files are processed in the file manager at <a href=\"\/en\/help\/web-hosting-cpanel\/compress-and-extract-zip-files\/\">Compress and extract ZIP files in cPanel<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 only with a specific file<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the website works and only a single file produces a 403 error, focus the diagnosis on this resource.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>File permissions<\/li>\n\n\n\n<li>parent directory permissions<\/li>\n\n\n\n<li><code>.htaccess<\/code>-Rules<\/li>\n\n\n\n<li>Hotlink protection<\/li>\n\n\n\n<li>Safety rules<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Consider hotlink protection<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">cPanel provides at:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Security \u2192 Hotlink Protection<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">a function that can restrict the direct embedding of specific files from external websites.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if images or downloads only fail to work when embedded externally, you should also check this setting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 only for images or downloads<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If HTML pages work, but images, PDFs, or other files produce a 403 error, check in particular:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>File permissions<\/li>\n\n\n\n<li>Directory permissions<\/li>\n\n\n\n<li>Hotlink protection<\/li>\n\n\n\n<li><code>.htaccess<\/code>-Rules<\/li>\n\n\n\n<li>ModSecurity or other security rules<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Do not change the entire website configuration if only a single file type is affected.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">DNS does not usually cause a classic 403<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you are already receiving a 403 response from the web server, a web server has basically been reached.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A classic DNS outage manifests itself differently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, a domain can, after a DNS change, point to a <strong>other server<\/strong> show. Then the web server there can of course return a 403 error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, in the case of recent DNS changes, check whether the domain is actually pointing to the desired hosting environment.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SSL is also not the same as 403<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A certificate error and an HTTP 403 are different types of errors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your browser already receives an HTTP status code 403, the HTTPS connection has fundamentally been established far enough to receive a web server response.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, do not change SSL certificates on suspicion if the actual message is 403.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Distinguish between 403 and 404<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A 404 basically means that a requested resource was not found.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A 403, on the other hand, means that access is not allowed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In WordPress, redirection and rewrite rules can additionally influence the visible behavior.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you actually get a 404 error, our guide <a href=\"\/en\/help\/wordpress\/how-to-fix-wordpress-404-error\/\">Fix WordPress 404 error<\/a> the more suitable starting point.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Distinguish between 403 and 500<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A 500 Internal Server Error indicates a server-side processing error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A 403, on the other hand, denies access.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, if your website displays a 500 error, you should not take the same measures as you would for a 403.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can find the appropriate instructions at <a href=\"\/en\/help\/web-hosting-cpanel\/error-500-internal-server-error\/\">Fixing a 500 Internal Server Error<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Differentiate between 403 and Resource Limit Is Reached<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A CloudLinux resource limit is also a different class of error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When CloudLinux reaches a resource limit, you should analyze the resource usage rather than change file permissions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See on this <a href=\"\/en\/help\/web-hosting-cpanel\/resource-limit-is-reached\/\">Resource Limit Is Reached: Identify and Fix CloudLinux Limits<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 after editing own .htaccess<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the error occurred immediately after a manual change, start diagnosing right there.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>10:15 \u2192 .htaccess changed\n10:16 \u2192 Website returns 403<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This relationship is much more meaningful than a random change to PHP, DNS, or WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, restore the last working state of the rule in question.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 after changing file permissions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The same principle applies to permissions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you changed permissions immediately before the error, check that change first.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not apply blanket permission changes to the entire account.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">403 after activating a security feature<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If, for example, an access restriction, a security plugin, or another protective function was activated immediately beforehand, this change should be checked first.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That does not mean that the safety feature should be removed altogether.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check instead whether it is configured correctly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Always retest after making changes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After each targeted change, you should test the exact same URL or action again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>reproduce 403\n        \u2193\nchange a possible cause\n        \u2193\ntest same URL again\n        \u2193\ndocument result<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is how you can determine whether your change was actually relevant.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Consider browser cache in tests<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When troubleshooting, you should use a private browser window or a different browser after making changes, if necessary.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This reduces the risk that locally stored content will distort your assessment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, this does not lift server-side access restrictions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Do not permanently disable any safety features<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A 403 error is often precisely the result of a security decision.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The wrong reaction would therefore be:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>403 appears\n\u2193\ndisable all security features\n\u2193\nwebsite works\n\u2193\nprotection remains off<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This might eliminate the symptom, but at the same time it would remove a protective function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The better approach is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>403 appears\n        \u2193\nIdentify trigger\n        \u2193\nDifferentiate between legitimate and unwanted request\n        \u2193\nFix selectively<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">No file permissions 777 as a standard solution<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The permission <code>777<\/code> is often suggested in older internet guides as a quick fix for permission issues.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is not a sensible standard measure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use only the permissions required for the application and server environment in question.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">systematically diagnose 403<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Note the exact URL affected.<\/li>\n\n\n\n<li>Check whether the entire website or just a single resource is affected.<\/li>\n\n\n\n<li>Test the URL in a private browser window.<\/li>\n\n\n\n<li>If an IP ban is suspected, check a second internet connection.<\/li>\n\n\n\n<li>Check <strong>Measured values \u2192 Errors<\/strong>.<\/li>\n\n\n\n<li>Check the document root of the domain.<\/li>\n\n\n\n<li>Check the affected file and directory permissions.<\/li>\n\n\n\n<li>Check if a suitable index file exists.<\/li>\n\n\n\n<li>Investigate relevant <code>.htaccess<\/code>-Rules.<\/li>\n\n\n\n<li>Check the cPanel IP blocking if necessary.<\/li>\n\n\n\n<li>Consider ModSecurity and other security mechanisms.<\/li>\n\n\n\n<li>Check WordPress security plugins and recent changes.<\/li>\n\n\n\n<li>Always change only one possible cause at a time.<\/li>\n\n\n\n<li>Then test exactly the same URL or action again.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">What you should not do with a 403<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Avoid in particular:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>all files flat rate to <code>777<\/code> put<\/li>\n\n\n\n<li><code>.htaccess<\/code> delete without backup<\/li>\n\n\n\n<li>Permanently disable ModSecurity<\/li>\n\n\n\n<li>Remove security plugins indiscriminately<\/li>\n\n\n\n<li>Delete IP bans without verification<\/li>\n\n\n\n<li>Switch PHP version without context<\/li>\n\n\n\n<li>Change DNS records on suspicion<\/li>\n\n\n\n<li>change multiple settings at the same time<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Basic rule:<\/strong> A 403 error means access denied. Therefore, focus the diagnosis first on permissions, access controls, security rules, and the specifically affected resource.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">When should you contact CURIAWEB support?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the 403 error persists or a security rule is suspected as the cause, document the problem as precisely as possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Particularly helpful are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>affected domain<\/li>\n\n\n\n<li>full affected URL<\/li>\n\n\n\n<li>Date and exact time<\/li>\n\n\n\n<li>visible error message<\/li>\n\n\n\n<li>whether the whole website or only a specific action is affected<\/li>\n\n\n\n<li>whether the error also occurs over a second internet connection<\/li>\n\n\n\n<li>your public IP address, if only your connection is affected<\/li>\n\n\n\n<li>recent changes<\/li>\n\n\n\n<li>relevant entries from the error log<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If the error occurs only when submitting a form or during a specific action, also describe the exact steps to reproduce the error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>403 Forbidden<\/strong> means that the web server fundamentally reaches the requested resource, but denies access to it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Among the most common areas you should check are file permissions, document root, index files, <code>.htaccess<\/code>, IP blocks, ModSecurity, and other security mechanisms.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If only your own internet connection is affected, you should consider an IP-related ban. If, on the other hand, only a specific action such as submitting a form generates a 403, a request-related security rule may be involved.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With WordPress, additional security plugins, individual access restrictions, and plugin conflicts can also be relevant.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do not set file permissions globally to <code>777<\/code> and do not permanently disable security features just to make the error go away.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Compare the time of the error with the error log and with recently made changes. Then, change only one possible cause at a time and test again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The most important rule is: <strong>First determine who or what is actually being excluded from access \u2013 and then specifically examine the concrete access restriction.<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>Wenn deine Website die Fehlermeldung 403 Forbidden beziehungsweise 403 Zugriff verweigert anzeigt, kann der Webserver die angeforderte Ressource grunds\u00e4tzlich erreichen, verweigert aber den Zugriff darauf. Die Ursache liegt deshalb h\u00e4ufig nicht bei der Domain selbst, sondern bei Zugriffsregeln, Dateiberechtigungen, einer .htaccess-Datei oder einer Sicherheitsfunktion. In dieser Anleitung zeigen wir dir, wie du einen 403-Fehler im [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_joinchat":[],"footnotes":""},"doc_category":[78],"doc_tag":[],"class_list":["post-22626","docs","type-docs","status-publish","hentry","doc_category-webhosting-cpanel"],"year_month":"2026-11","word_count":2981,"total_views":"38","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Silvio Mazenauer","author_nicename":"admin-curia","author_url":"https:\/\/www.curiaweb.ch\/en\/author\/admin-curia\/"},"doc_category_info":[{"term_name":"Webhosting &amp; cPanel","term_url":"https:\/\/www.curiaweb.ch\/en\/hilfe-kategorie\/webhosting-cpanel\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.curiaweb.ch\/en\/wp-json\/wp\/v2\/docs\/22626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.curiaweb.ch\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.curiaweb.ch\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.curiaweb.ch\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.curiaweb.ch\/en\/wp-json\/wp\/v2\/comments?post=22626"}],"version-history":[{"count":1,"href":"https:\/\/www.curiaweb.ch\/en\/wp-json\/wp\/v2\/docs\/22626\/revisions"}],"predecessor-version":[{"id":22628,"href":"https:\/\/www.curiaweb.ch\/en\/wp-json\/wp\/v2\/docs\/22626\/revisions\/22628"}],"wp:attachment":[{"href":"https:\/\/www.curiaweb.ch\/en\/wp-json\/wp\/v2\/media?parent=22626"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.curiaweb.ch\/en\/wp-json\/wp\/v2\/doc_category?post=22626"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.curiaweb.ch\/en\/wp-json\/wp\/v2\/doc_tag?post=22626"}],"curies":[{"name":"WP","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}