{"id":2605,"date":"2020-08-21T17:48:06","date_gmt":"2020-08-21T21:48:06","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/04\/12\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/"},"modified":"2023-06-21T11:18:53","modified_gmt":"2023-06-21T15:18:53","slug":"prevent-unauthorized-wp-admin-wp-login-php-attempts","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/","title":{"rendered":"Prevent Unauthorized WordPress Administrator Login Attempts"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins-1024x538.jpg\" alt=\"Prevent Unauthorized WordPress Administrator Login Attempts header image\" class=\"wp-image-58932\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins-1024x538.jpg 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins-300x158.jpg 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins-768x403.jpg 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins.jpg 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>In this article, I\u2019ll show you how to lock down and password protect your WordPress website. We\u2019ll do this by limiting access to the <strong>\/wp-admin<\/strong> directory and the <strong>wp-login.php<\/strong> script. Using these methods you will be able to help <strong>prevent unauthorized WordPress Administrator login attempts<\/strong>.<\/p>\n\n\n\n<p class=\"alert alert-info\">Looking for a secure WordPress host? Look no further than InMotion\u2019s <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\" rel=\"follow\" \"title=\"WordPress Hosting\">WordPress hosting <\/a> solutions!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pw-protect\">Password Protect WordPress Logins<\/h2>\n\n\n\n<p>Using the steps below, I\u2019ll show you how to create password protection for your <strong>\/wp-admin<\/strong> directory. We\u2019ll also copy those rules over to protect your <strong>wp-login.php<\/strong> script to keep WordPress as safe as possible.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting Privacy on the wp-admin Folder<\/h2>\n\n\n\n<p>You will first need to use the cPanel to password protect directories in your account.  This process will allow you to create authorized users who can access your WordPress Administrator dashboard.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\">\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\">Log into cPanel<\/a>.<\/li>\n\n\n\n<li>Go to the <strong>Files <\/strong>section and click on <strong>Directory Privacy<\/strong>.<\/li>\n\n\n\n<li>Click the <strong>Settings<\/strong> button.<\/li>\n\n\n\n<li>Click on the text, not the folder icon, for your <strong>wp-admin<\/strong> directory.<\/li>\n\n\n\n<li>Check <strong>Password protect this directory<\/strong>, give it a name, then click <strong>Save<\/strong>.<\/li>\n\n\n\n<li>Now click on <strong>Go Back<\/strong>.<\/li>\n\n\n\n<li>Under the <strong>Create User<\/strong> section, input a user name and then click on the <strong>Password Generator<\/strong>. Make sure that you record any password that you create.<\/li>\n\n\n\n<li>You will be required to type the password twice.  When you\u2019re done make sure that you click on the <strong>Save<\/strong> button.<br><br>Note that your user is then added to an Authorized user section. You can add more than one user. Carefully consider the users that will need to access the directory before adding multiple users.  Always make sure that each user is using a strong password.<\/li>\n\n\n\n<li>Once you have your users set, click on the checkbox that is labeled <strong>Password protect this directory<\/strong> located above the <strong>Create User<\/strong> section.<br><br>This will immediately protect the directory access from any random user. Only users that you have added as authorized users can access the directory provided that they know the password.<\/li>\n<\/ol>\n\n\n\n<p class=\"alert alert-danger\">If you get a redirect loop, make sure you have these ErrorDocument tags in your .htaccess file:\n\nErrorDocument 401 \u201cDenied\u201d\nErrorDocument 403 \u201cDenied\u201d\n\n<\/p>\n\n\n\n<p>Please also make sure to <a href=\"#ajax\">allow \/wp-admin\/admin-ajax.php requests<\/a> without password protection.<\/p>\n\n\n\n<p>At this point, if you try to access the WordPress Administrator dashboard you will see the following:<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"588\" height=\"516\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/auth-required-1.jpg\" alt=\"WordPress Authorization Message\" class=\"wp-image-58918\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/auth-required-1.jpg 588w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/auth-required-1-300x263.jpg 300w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>You will need to use the authorized user and password you created to proceed beyond this point. The password applies when access to the wp-admin directory is attempted.<\/p>\n\n\n\n<p>Once you have entered the authorized user name and password, then the normal WordPress login will appear.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\">\n<li>Now go back to cPanel and go into the <strong>File Manager<\/strong>.<\/li>\n\n\n\n<li>Click the <strong>Settings<\/strong> button.<\/li>\n\n\n\n<li>Then select the <strong>Document Root<\/strong> for your domain, and check <strong>Show Hidden Files (dotfiles)<\/strong>. Finally, click <strong>Save<\/strong>. Note that for InMotion Hosting accounts, the default document root is typically, \u201cpublic_html.\u201d<\/li>\n\n\n\n<li>Expand the document root so that you see all of the files and folders underneath it. Find the wp-admin folder and select it. <\/li>\n\n\n\n<li>Select the .htaccess file and copy its contents.<\/li>\n\n\n\n<li>Next, go to the file manager and select the document root folder for your site.  Find and open the .htaccess file. Yes, there are multiple .htaccess files.  This one applies to all the directories under your document root.<\/li>\n\n\n\n<li>Paste in the code you copied from the .htaccess file in the wp-admin folder. The code should look like this:\n<pre>AuthType Basic<br>AuthName \"Secure Area\"<br>AuthUserFile \"\/home\/example\/.htpasswds\/root-directory\/wp-admin\/passwd\"<br>require valid-user<\/pre>\n<em>Note: \u201croot-directory\u201d should be the directory where you installed WordPress.<\/em>\n<\/li>\n\n\n\n<li>Additionally, add this code at the top of your .htaccess file:\n<pre>ErrorDocument 401 \"Denied\"<br>ErrorDocument 403 \"Denied\" <br><br>&lt;filesmatch \"wp-login.php\"=\"\"&gt;<br>AuthType Basic<br>AuthName \"Secure Area\"<br>AuthUserFile \"\/home\/example\/.htpasswds\/public_html\/wp-admin\/passwd\"<br>require valid-user<\/pre><\/li>\n\n\n\n<li>Save your changes!<\/li>\n<\/ol>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ajax\">Allow Plugin Access to admin-ajax.php Around Password Protection<\/h2>\n\n\n\n<p>Next, we\u2019re going to add a little more code to your .htaccess files so that it allows Ajax so that you don\u2019t have to type in the password every time a plugin tries to access the WordPress application.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\">\n<li>As before, open up your .htaccess file.  This will be the .htaccess file in your document root folder.<\/li>\n\n\n\n<li>Add the following code:\n<pre>&lt;files admin-ajax.php&gt;<br>Order allow,deny<br>Allow from all<br>Satisfy any<br>&lt;\/files&gt;<\/pre>\n<\/li>\n\n\n\n<li>Make sure to save your changes.<\/li>\n\n\n\n<li>Once you\u2019re done you\u2019re going to repeat the same process but for the .htaccess file within your wp-admin folder.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Code Review<\/h3>\n\n\n\n<p>You should now have the <strong>\/wp-admin\/.htaccess<\/strong> file that password protects the <strong>\/wp-admin<\/strong> directory. You then copied that same password protection over to just your main <strong>.htaccess<\/strong> file, so that it can also password protect your <strong>wp-login.php<\/strong> script directly as well. The code also includes the error codes and the code to allow plugins to access admin through ajax.<\/p>\n\n\n\n<p>Just to be clear, the code you added to your .htaccess files should look like this:<br><\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">ErrorDocument 401 \u201cDenied\u201d<br>ErrorDocument 403 \u201cDenied\u201d<br><br>&lt;FilesMatch \u201cwp-login.php\u201d=\u201d\u201d&gt;<br>AuthType Basic<br>AuthName \u201cSecure Area\u201d<br>AuthUserFile \u201c\/home\/example\/.htpasswds\/public_html\/wp-admin\/passwd\u201d<br>require valid-user<br>&lt;\/FilesMatch&gt;<br><br>AuthType Basic<br>AuthName \u201cSecure Area\u201d<br>AuthUserFile \u201c\/home\/example\/.htpasswds\/root-directory\/wp-admin\/passwd\u201d<br>require valid-user<br><br>&lt;Files admin-ajax.php&gt;<br>Order allow,deny<br>Allow from all<br>Satisfy any<br>&lt;\/Files&gt;<\/p>\n\n\n\n<p>Congratulations! You can now prevent access to your WP-Admin to help against unauthorized users.  To learn more about WordPress check out our <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/\">WordPress Education Channel<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, I&#8217;ll show you how to lock down and password protect your WordPress website. We&#8217;ll do this by limiting access to the \/wp-admin directory and the wp-login.php script. Using these methods you will be able to help prevent unauthorized WordPress Administrator login attempts. Looking for a secure WordPress host? Look no further than<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/\"> Read More ><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4325,56],"tags":[],"class_list":["post-2605","post","type-post","status-publish","format-standard","hentry","category-wordpress-hosting","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Prevent Unauthorized WordPress Admin Login Attempts for Security<\/title>\n<meta name=\"description\" content=\"Step-by-step guide on how to protect your WordPress website from invalid login attempts by limiting access to the \/wp-admin directory.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prevent Unauthorized WordPress Admin Login Attempts for Security\" \/>\n<meta property=\"og:description\" content=\"Step-by-step guide on how to protect your WordPress website from invalid login attempts by limiting access to the \/wp-admin directory.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-21T21:48:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-21T15:18:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins-1024x538.jpg\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\"},\"headline\":\"Prevent Unauthorized WordPress Administrator Login Attempts\",\"datePublished\":\"2020-08-21T21:48:06+00:00\",\"dateModified\":\"2023-06-21T15:18:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/\"},\"wordCount\":66,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins-1024x538.jpg\",\"articleSection\":[\"WordPress Hosting\",\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/\",\"name\":\"Prevent Unauthorized WordPress Admin Login Attempts for Security\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins-1024x538.jpg\",\"datePublished\":\"2020-08-21T21:48:06+00:00\",\"dateModified\":\"2023-06-21T15:18:53+00:00\",\"description\":\"Step-by-step guide on how to protect your WordPress website from invalid login attempts by limiting access to the \/wp-admin directory.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins.jpg\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prevent Unauthorized WordPress Administrator Login Attempts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/arn\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Prevent Unauthorized WordPress Admin Login Attempts for Security","description":"Step-by-step guide on how to protect your WordPress website from invalid login attempts by limiting access to the \/wp-admin directory.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/","og_locale":"en_US","og_type":"article","og_title":"Prevent Unauthorized WordPress Admin Login Attempts for Security","og_description":"Step-by-step guide on how to protect your WordPress website from invalid login attempts by limiting access to the \/wp-admin directory.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2020-08-21T21:48:06+00:00","article_modified_time":"2023-06-21T15:18:53+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins-1024x538.jpg","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b"},"headline":"Prevent Unauthorized WordPress Administrator Login Attempts","datePublished":"2020-08-21T21:48:06+00:00","dateModified":"2023-06-21T15:18:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/"},"wordCount":66,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins-1024x538.jpg","articleSection":["WordPress Hosting","WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/","name":"Prevent Unauthorized WordPress Admin Login Attempts for Security","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins-1024x538.jpg","datePublished":"2020-08-21T21:48:06+00:00","dateModified":"2023-06-21T15:18:53+00:00","description":"Step-by-step guide on how to protect your WordPress website from invalid login attempts by limiting access to the \/wp-admin directory.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/08\/prevent-unauthorized-wp-logins.jpg","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/prevent-unauthorized-wp-admin-wp-login-php-attempts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Prevent Unauthorized WordPress Administrator Login Attempts"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/arn\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":56,"name":"WordPress Tutorials","slug":"wordpress","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=2605"}],"version-history":[{"count":34,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2605\/revisions"}],"predecessor-version":[{"id":105308,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2605\/revisions\/105308"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=2605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=2605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=2605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}