{"id":50,"date":"2021-12-18T09:26:53","date_gmt":"2021-12-18T09:26:53","guid":{"rendered":"https:\/\/hostkicker.com\/blog\/?p=50"},"modified":"2022-05-21T14:06:09","modified_gmt":"2022-05-21T08:36:09","slug":"how-to-protect-admin-folder-in-wordpress","status":"publish","type":"post","link":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/","title":{"rendered":"How To Protect Admin folder in WordPress"},"content":{"rendered":"<p><span data-preserver-spaces=\"true\">If you own a website, the first thing you should focus on is security<\/span><span data-preserver-spaces=\"true\">. It is because there are hackers in this digital world who are constantly trying to get in and harm you. <\/span><span data-preserver-spaces=\"true\">Admin folder in WordPress is the key to accessing your entire website. <\/span><span data-preserver-spaces=\"true\">There are many ways to protect your admin folder in WordPress by limiting access in .htaccess.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">The <\/span><span data-preserver-spaces=\"true\">.htaccess is a powerful file that helps you in security matters and has the configurations to improve the site\u2019s performance. <\/span><span data-preserver-spaces=\"true\">You can limit access to your wp-admin login page, assigning some specific IPs in your .htaccess File.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">This article tells many ways you can protect your folder You can use plugins or by configuring the .htaccess File manually<\/span><\/p>\n<h2><strong><span data-preserver-spaces=\"true\">Protect Your Admin Folder In WordPress By Limiting Access in .htaccess (By Plugins)<\/span><\/strong><span data-preserver-spaces=\"true\">.<\/span><\/h2>\n<p><strong><span data-preserver-spaces=\"true\">1. WP Security Scan\u00a0\u00a0<\/span><\/strong><\/p>\n<p><span data-preserver-spaces=\"true\">Using the WP Security Scan plugin, you can protect your admin folder in WordPress by limiting access to the .htaccess File.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">On the left of the Dashboard, go to the Plugins option and click on Add New. Search WP Security Scan plugin and install.<\/span><\/p>\n<ul>\n<li>Plugins &gt;&gt; Add New &gt;&gt; Search WP Scan &gt;&gt;Install<\/li>\n<\/ul>\n<p>You can also check our stepwise guide on <a href=\"https:\/\/hostkicker.com\/blog\/how-to-install-a-wordpress-plugin\">how to Install WordPress plugin<\/a> for more help.<\/p>\n<p><span data-preserver-spaces=\"true\">Now, go to settings and find .htaccess in the file scan report.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Set the permission settings to protect your admin folder. It is the only plugin in the market that helps you change settings in the .htaccess File.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-161\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/wp-security.jpg\" alt=\"\" width=\"624\" height=\"296\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/wp-security.jpg 624w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/wp-security-300x142.jpg 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/p>\n<p><span data-preserver-spaces=\"true\">Other than this, there are other popular security plugins such as All In One WP Security &amp; Firewall as Wordfence Security.<\/span><\/p>\n<h2><strong>Protect Your Admin Folder In WordPress By Limiting Access in .htaccess (Manually)<\/strong><\/h2>\n<p><span data-preserver-spaces=\"true\">The plugins are good to use if you want an easy way, but the plugins may have limited settings. However, You can protect your admin folder manually in many different ways.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Therefore, you can take things into your hand and configure the .htaccess File yourself. Likewise, there are a lot of security measures you can take by inserting code snippets.<\/span><\/p>\n<h3><strong>How to Access the.htaccess File<\/strong><\/h3>\n<p><span data-preserver-spaces=\"true\">You need FTP software to access the files and folders of your website. FileZilla is the best FTP software. Install FTP software and open it. Then log into your cPanel account.\u00a0<\/span><\/p>\n<p><strong><span data-preserver-spaces=\"true\">[Note &#8211;<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0There may be different.htaccess File in the root directory or a different folder. You do not need to edit those files.\u00a0<\/span><span data-preserver-spaces=\"true\">You have to edit the .htaccess File inside the WP-Admin folder only.] <\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Accordingly, move inside the WP-Admin folder and find the .htaccess File. If you do not have any file, you must create it with .htaccess. Before this, you must take a backup of the File before editing it.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Below is how .htaccess looks like.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-163\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb-8.jpg\" alt=\"\" width=\"623\" height=\"287\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb-8.jpg 623w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb-8-300x138.jpg 300w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/p>\n<h3><strong><span data-preserver-spaces=\"true\">1. Restricting Admin Access<\/span><\/strong><\/h3>\n<p><span data-preserver-spaces=\"true\">\u00a0First, you have to restrict any other computer or device from accessing your website as the admin other than your device. You can do this by allowing your IP address only. If you have multiple devices, you can allow IP Addresses of each of them. After this, Even you can not access your Admin panel from anyone else\u2019s computer from a security point of view.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Add the following code below #END WordPress, the last line in the .htaccess File. Place your IP address corresponding to the allow statement, and you can allow as many statements as you want.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-166\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb10-1.jpg\" alt=\"\" width=\"583\" height=\"323\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb10-1.jpg 583w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb10-1-300x166.jpg 300w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/p>\n<h3><strong><span data-preserver-spaces=\"true\">2. Protect your wp-config.php\u00a0<\/span><\/strong><\/h3>\n<p><span data-preserver-spaces=\"true\">WP-config.php is an important File, and it contains essential information about your website. To protect this, You can restrict access to your wp-config.php from everyone other than yourself. Place the following code snippet in the .htaccess at the lines&#8217; end.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-168\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb11.jpg\" alt=\"\" width=\"624\" height=\"135\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb11.jpg 624w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb11-300x65.jpg 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/p>\n<h3><strong>3. Ban hackers By Their IP Address<\/strong><\/h3>\n<ul>\n<li><strong>Restrict WordPress dashboard to a single IP address<\/strong><\/li>\n<\/ul>\n<p><span data-preserver-spaces=\"true\">You can restrict the WordPress dashboard to a single IP address [admins IP address].place the following code.<\/span><\/p>\n<pre><span data-preserver-spaces=\"true\"> order deny, allow<\/span>\n\n<span data-preserver-spaces=\"true\"># Replace the below 192.168.5.1 with your IP address<\/span>\n\n<span data-preserver-spaces=\"true\">deny from all<\/span>\n\n<span data-preserver-spaces=\"true\">allow from 192.168.5.1<\/span><\/pre>\n<p><span data-preserver-spaces=\"true\">In the above example, we allow only IP address 192.168.5.1 to access the WordPress admin dashboard.\u00a0<\/span><\/p>\n<ul>\n<li><strong>Restrict WordPress dashboard to multiple IP addresses<\/strong><\/li>\n<\/ul>\n<p><span data-preserver-spaces=\"true\">You can also allow access to the WordPress admin dashboard to more than one IP address.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">\u00a0As shown below, add a new\u00a0<\/span><em><span data-preserver-spaces=\"true\">allow from [IP ADDRESS]<\/span><\/em><span data-preserver-spaces=\"true\">\u00a0line before the last\u00a0<\/span><em><span data-preserver-spaces=\"true\">deny from all<\/span><\/em><span data-preserver-spaces=\"true\">\u00a0lines.<\/span><\/p>\n<pre><span data-preserver-spaces=\"true\"> order deny, allow<\/span>\n\n<span data-preserver-spaces=\"true\"># Replace the below 192.168.5.1 with your IP address<\/span>\n\n<span data-preserver-spaces=\"true\">deny from all<\/span>\n\n<span data-preserver-spaces=\"true\">allow from 192.168.5.1<\/span>\n\n<span data-preserver-spaces=\"true\">allow from 10.130.130.7<\/span><\/pre>\n<p><span data-preserver-spaces=\"true\">In the above example, we allow access to both IP addresses 192.168.5.1 and 10.130.130.7. Here, You can add as many IP addresses as you like.<\/span><\/p>\n<h3><strong><span data-preserver-spaces=\"true\">4. Disable PHP Execution<\/span><\/strong><\/h3>\n<p><span data-preserver-spaces=\"true\">Sometimes some themes have backdoors for hackers to hack your website if you use those themes. Most backdoor files are stored in different directories such as wp-includes and uploads.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">\u00a0You can stop hackers from backdoors by disabling PHP execution in certain folders. Use the following code to do that.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-171\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb13.jpg\" alt=\"\" width=\"569\" height=\"89\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb13.jpg 569w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb13-300x47.jpg 300w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/p>\n<h3><strong><span data-preserver-spaces=\"true\">5. Disable Directory Browsing<\/span><\/strong><\/h3>\n<p><span data-preserver-spaces=\"true\">Hackers can browse different directories of your website and do hurtful things like creating backdoors using the code snippet, deleting important files, and others. You can disable access to any folder with the following code snippet.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-173\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb14.jpg\" alt=\"\" width=\"623\" height=\"98\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb14.jpg 623w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb14-300x47.jpg 300w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/p>\n<h3><strong><span data-preserver-spaces=\"true\">6. Restrict Access To WP-Content<\/span><\/strong><\/h3>\n<p><span data-preserver-spaces=\"true\">WP-Content is the most important folder for a website. All the theme files, plugin files, and images are stored in wp-content. If someone accesses that folder and deletes everything, your website is gone.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Place the following code snippet in the .htaccess File, and deny everyone access to the wp-content folder.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-175\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb15.jpg\" alt=\"\" width=\"624\" height=\"161\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb15.jpg 624w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/thumb15-300x77.jpg 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/p>\n<p><span data-preserver-spaces=\"true\">In short, The .htaccess file is a server configuration file supported by many web servers. You can protect the WordPress admin login with some .htaccess rules to prevent unauthorized login attempts.<\/span><\/p>\n<p>We hope this has helped you!<\/p>\n<p>Check our another guide on<a href=\"https:\/\/hostkicker.com\/blog\/how-to-find-and-access-wordpress-error-logs\/\"> how to find and access WordPress error logs.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you own a website, the first thing you should focus on is security. It is because there are hackers in this digital world who are constantly trying to get in and harm you. Admin folder in WordPress is the key to accessing your entire website. There are many ways to protect your admin folder [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":270,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wp-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.3 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Protect Admin folder in WordPress<\/title>\n<meta name=\"description\" content=\"This article tells how to Protect Your Admin folder in WordPress by Limiting Access in .htaccess. Use plugins or do it manually.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Protect Admin folder in WordPress\" \/>\n<meta property=\"og:description\" content=\"This article tells how to Protect Your Admin folder in WordPress by Limiting Access in .htaccess. Use plugins or do it manually.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Hostkicker\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-18T09:26:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-21T08:36:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-5-01.png\" \/>\n\t<meta property=\"og:image:width\" content=\"693\" \/>\n\t<meta property=\"og:image:height\" content=\"511\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Olivia Smith\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olivia Smith\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/\"},\"author\":{\"name\":\"Olivia Smith\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/person\\\/f06306b595baa96c90a0491b941d7660\"},\"headline\":\"How To Protect Admin folder in WordPress\",\"datePublished\":\"2021-12-18T09:26:53+00:00\",\"dateModified\":\"2022-05-21T08:36:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/\"},\"wordCount\":919,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-featured-image-5-01.png\",\"articleSection\":[\"Wp tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/\",\"name\":\"How to Protect Admin folder in WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-featured-image-5-01.png\",\"datePublished\":\"2021-12-18T09:26:53+00:00\",\"dateModified\":\"2022-05-21T08:36:09+00:00\",\"description\":\"This article tells how to Protect Your Admin folder in WordPress by Limiting Access in .htaccess. Use plugins or do it manually.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-featured-image-5-01.png\",\"contentUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-featured-image-5-01.png\",\"width\":693,\"height\":511,\"caption\":\"How To Protect Admin folder in WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/how-to-protect-admin-folder-in-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Protect Admin folder in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/\",\"name\":\"Hostkicker\",\"description\":\"Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#organization\",\"name\":\"Hostkicker\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-logo-01.png\",\"contentUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-logo-01.png\",\"width\":940,\"height\":218,\"caption\":\"Hostkicker\"},\"image\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/person\\\/f06306b595baa96c90a0491b941d7660\",\"name\":\"Olivia Smith\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g\",\"caption\":\"Olivia Smith\"},\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/author\\\/olivia\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Protect Admin folder in WordPress","description":"This article tells how to Protect Your Admin folder in WordPress by Limiting Access in .htaccess. Use plugins or do it manually.","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:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How To Protect Admin folder in WordPress","og_description":"This article tells how to Protect Your Admin folder in WordPress by Limiting Access in .htaccess. Use plugins or do it manually.","og_url":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/","og_site_name":"Hostkicker","article_published_time":"2021-12-18T09:26:53+00:00","article_modified_time":"2022-05-21T08:36:09+00:00","og_image":[{"width":693,"height":511,"url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-5-01.png","type":"image\/png"}],"author":"Olivia Smith","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Olivia Smith","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/"},"author":{"name":"Olivia Smith","@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/person\/f06306b595baa96c90a0491b941d7660"},"headline":"How To Protect Admin folder in WordPress","datePublished":"2021-12-18T09:26:53+00:00","dateModified":"2022-05-21T08:36:09+00:00","mainEntityOfPage":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/"},"wordCount":919,"commentCount":0,"publisher":{"@id":"https:\/\/hostkicker.com\/blog\/#organization"},"image":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-5-01.png","articleSection":["Wp tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/","url":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/","name":"How to Protect Admin folder in WordPress","isPartOf":{"@id":"https:\/\/hostkicker.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-5-01.png","datePublished":"2021-12-18T09:26:53+00:00","dateModified":"2022-05-21T08:36:09+00:00","description":"This article tells how to Protect Your Admin folder in WordPress by Limiting Access in .htaccess. Use plugins or do it manually.","breadcrumb":{"@id":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/#primaryimage","url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-5-01.png","contentUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-5-01.png","width":693,"height":511,"caption":"How To Protect Admin folder in WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/hostkicker.com\/blog\/how-to-protect-admin-folder-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostkicker.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Protect Admin folder in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/hostkicker.com\/blog\/#website","url":"https:\/\/hostkicker.com\/blog\/","name":"Hostkicker","description":"Blog","publisher":{"@id":"https:\/\/hostkicker.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostkicker.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostkicker.com\/blog\/#organization","name":"Hostkicker","url":"https:\/\/hostkicker.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-logo-01.png","contentUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-logo-01.png","width":940,"height":218,"caption":"Hostkicker"},"image":{"@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/person\/f06306b595baa96c90a0491b941d7660","name":"Olivia Smith","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g","caption":"Olivia Smith"},"url":"https:\/\/hostkicker.com\/blog\/author\/olivia\/"}]}},"jetpack_featured_media_url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-5-01.png","_links":{"self":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":15,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":2145,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts\/50\/revisions\/2145"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/media\/270"}],"wp:attachment":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}