{"id":836,"date":"2020-09-14T12:50:00","date_gmt":"2020-09-14T07:05:00","guid":{"rendered":"http:\/\/babal.host\/blog\/?p=836"},"modified":"2020-12-21T11:02:14","modified_gmt":"2020-12-21T05:17:14","slug":"how-to-fix-403-error-after-successful-login-to-wordpress-dashboard","status":"publish","type":"post","link":"https:\/\/babal.host\/blog\/how-to-fix-403-error-after-successful-login-to-wordpress-dashboard\/","title":{"rendered":"How to fix 403 error after successful login to WordPress dashboard?"},"content":{"rendered":"<p>Logged in to your WordPress website successfully to only discover a &#8220;403 error&#8221; page unable to login. If this is you, please read further on how to fix and what causes the problem.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-838\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_1.png\" alt=\"\" width=\"619\" height=\"378\" \/><\/p>\n<p><strong>Let&#8217;s understand what causes the issue first<\/strong><\/p>\n<p>403 error means that you do not have access to the resource you&#8217;re trying to load and thus you&#8217;re not allowed to open. &#8220;But, hey! this is my WordPress dashboard and if I&#8217;m not able to, who can?&#8221; might be the question going on in your head. And, you&#8217;re right to have that question.<\/p>\n<p>In most cases, the system is detecting suspicious activity from the IP you&#8217;re using and it is likely that it&#8217;s blacklisted. You can check if your IP is blacklisted by visiting the site <a href=\"https:\/\/mxtoolbox.com\/blacklists.aspx\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">here<\/a>. To know which IP you&#8217;re using <a href=\"https:\/\/www.ipaddress.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">visit here<\/a>. This is one of the protective layers of the server and thus restricts you to access sensitive resources.<\/p>\n<p>Internet Service Providers (ISP) are responsible for the IP that they provide to their users and it is also not recommended to access the internet with a heavily blacklisted IP address and yet that does not stop ISPs to lease those to their customers. The IPs are blacklisted for their suspicious activities or involvement in actions like an attempt to hack, spreading spam, sending multiple invalid requests like multiple failed login attempts, and many others.<\/p>\n<p><strong>Ok, Ok, tell me how to fix it now<\/strong><\/p>\n<p>To fix this, you&#8217;ll have to bring down a wall from cPanel and build another in WordPress. Let me explain exactly what I mean in the steps below:<\/p>\n<ol>\n<li>Login to your cPanel. If you&#8217;re not sure how to, read &#8220;<a href=\"https:\/\/babal.host\/blog\/how-to-open-cpanel-for-your-website\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to open cPanel for your website?<\/a>&#8220;<\/li>\n<li>From cPanel &#8211; locate &#8220;ModSecurity&#8221; under the &#8220;Security&#8221; section and click on it<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-839\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_2-1024x237.png\" alt=\"\" width=\"1024\" height=\"237\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_2-1024x237.png 1024w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_2-300x69.png 300w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_2-768x178.png 768w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_2.png 1360w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>If you want to disable the security for the entire cPanel click on &#8220;Disable&#8221; at the very top. However, if you just want to disable it for a specific domain, click on the corresponding switch under &#8220;Status&#8221; and mark it as off.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-840\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_3-1024x540.png\" alt=\"\" width=\"1024\" height=\"540\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_3-1024x540.png 1024w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_3-300x158.png 300w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_3-768x405.png 768w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_3-1536x810.png 1536w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_3.png 1899w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>Once you click on either of the option to disable the security, you&#8217;ll see a warning and a success message in your screen as below<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-841\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_4-1024x389.png\" alt=\"\" width=\"1024\" height=\"389\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_4-1024x389.png 1024w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_4-300x114.png 300w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_4-768x292.png 768w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_4-1536x583.png 1536w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_4.png 1833w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>With a layer of security removed, you should be able to login to your WordPress dashboard successfully. Do not try refreshing the same page but rather close the window and reopen to login.\n<p>ModSecurity is a web application firewall that prevents a certain type of attack, keeping your website safe. It runs on websites individually (when enabled) and examines the traffic based on a set of rules provided by the vendor that is chosen by the system administrator. On our servers the ModSecurity vendor is Imunify360.<\/p>\n<p>Taking a layer of security down &#8211; you&#8217;ve made your website vulnerable so from your dashboard you can add a replacement for the same. This is not required but recommended if you want to ensure the security of your website.<\/li>\n<li>Now, from your WordPress dashboard &#8211; hover on &#8220;Plugins&#8221; and click on &#8220;Add New&#8221;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-842\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_5.png\" alt=\"\" width=\"399\" height=\"158\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_5.png 399w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_5-300x119.png 300w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/li>\n<li>Search for &#8220;Cerber Security, Anti-spam &amp; Malware Scan&#8221; in the search bar and press enter. Click on &#8220;Install Now&#8221; thereafter<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-843\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_6-1024x390.png\" alt=\"\" width=\"1024\" height=\"390\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_6-1024x390.png 1024w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_6-300x114.png 300w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_6-768x292.png 768w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_6-1536x584.png 1536w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_6.png 1919w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>Once the plugin is installed, click on &#8220;Activate&#8221;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-844\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_7.png\" alt=\"\" width=\"865\" height=\"358\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_7.png 865w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_7-300x124.png 300w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_7-768x318.png 768w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/li>\n<li>Your current active IP is automatically whitelisted by the plugin. Congratulations! You have successfully configured a replacement security system for your website. This is the end of the article if you do not want to add any more IP to the whitelist or blacklist.<\/li>\n<\/ol>\n<p><strong>How to whitelist\/blacklist IP using the plugin?<\/strong><\/p>\n<ol>\n<li>If you want to add any more IPs to the whitelist &#8211; hover on &#8220;WP Ceber&#8221; and then click on &#8220;Dashboard&#8221; from the menu bar on the left.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-845\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_8.png\" alt=\"\" width=\"399\" height=\"381\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_8.png 399w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_8-300x286.png 300w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/li>\n<li>From the dashboard, click on &#8220;Access Lists&#8221;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-846\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_9-1024x386.png\" alt=\"\" width=\"1024\" height=\"386\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_9-1024x386.png 1024w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_9-300x113.png 300w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_9-768x290.png 768w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_9.png 1302w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>You can add any IP you desire to whitelist or blacklist as shown in the image below. Please note your IP subnet is automatically added to the whitelist so no further actions would be required for that.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-847\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_10-1024x522.png\" alt=\"\" width=\"1024\" height=\"522\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_10-1024x522.png 1024w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_10-300x153.png 300w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_10-768x391.png 768w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/403_forbidden_fix_10.png 1292w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Logged in to your WordPress website successfully to only discover a &#8220;403 error&#8221; page unable to login. If this is you, please read further on how to fix and what causes the problem. Let&#8217;s understand what causes the issue first 403 error means that you do not have access to the resource you&#8217;re trying to [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":837,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-836","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-babal-guide"],"_links":{"self":[{"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/posts\/836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/comments?post=836"}],"version-history":[{"count":8,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/posts\/836\/revisions"}],"predecessor-version":[{"id":919,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/posts\/836\/revisions\/919"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/media\/837"}],"wp:attachment":[{"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/media?parent=836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/categories?post=836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/tags?post=836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}