{"id":13926,"date":"2024-06-24T10:00:00","date_gmt":"2024-06-24T01:00:00","guid":{"rendered":"https:\/\/hanami-web.tokyo.jp\/blog\/?p=13926"},"modified":"2024-05-31T12:41:24","modified_gmt":"2024-05-31T03:41:24","slug":"file-protection","status":"publish","type":"post","link":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/security-plugin\/all-in-one-wp-security\/file-protection\/","title":{"rendered":"WordPress Security Enhancement Plugin All in one WP Security ~ File Protection Feature Explained"},"content":{"rendered":"<p>A must-read for those who are concerned about the security of their WordPress site<br>We explain how to enhance security with the free All in one WP Security plugin.<\/p>\n\n\n\n<p>This time, we will explain the File security &gt; File Protection settings.<\/p>\n\n\n\n<p>For more information, please see the All in one WP Security explanation table of contents!<\/p>\n\n\n<div class=\"sc\"><a href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wpsecurity\/\" title=\"Strengthening the security of your WordPress site All in one WP Security plugin setup guide Table of contents\">\r\n\t<p class=\"sc-txt01\">Securing your WordPress site<\/p>\r\n\t<p class=\"sc-txt02\">All in one WP Security Setting Explanation Table of Contents \u2192<\/p>\r\n<\/a><\/div>\r\n\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">table of contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/security-plugin\/all-in-one-wp-security\/file-protection\/#all_in_one_wp_security_file_protection%e8%a8%ad%e5%ae%9a%e3%81%a8%e3%81%af\" >What are All in one WP Security File Protection settings?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/security-plugin\/all-in-one-wp-security\/file-protection\/#%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%81%aewp%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%b8%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e9%98%b2%e6%ad%a2\" >Preventing access to default WP files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/security-plugin\/all-in-one-wp-security\/file-protection\/#%e7%94%bb%e5%83%8f%e3%81%ae%e7%9b%b4%e3%83%aa%e3%83%b3%e3%82%af%e3%81%ae%e9%98%b2%e6%ad%a2\" >Preventing direct linking of images<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/security-plugin\/all-in-one-wp-security\/file-protection\/#php%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e7%b7%a8%e9%9b%86%e3%82%92%e7%84%a1%e5%8a%b9%e5%8c%96\" >Disable PHP file editing<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"all_in_one_wp_security_file_protection%e8%a8%ad%e5%ae%9a%e3%81%a8%e3%81%af\"><\/span>What are All in one WP Security File Protection settings?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In the All in one WP Security File Protection settings:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Preventing Access to WordPress Files<\/li>\n\n\n\n<li>Stop direct linking of image paths<\/li>\n\n\n\n<li>Disable editing of PHP files<\/li>\n<\/ul>\n\n\n\n<p>You can set it in the following places:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WP Security<\/li>\n\n\n\n<li>File Security<\/li>\n\n\n\n<li>File protection<\/li>\n<\/ul>\n\n\n\n<p>and set it up.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"413\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-61-1024x413.png\" alt=\"\" class=\"wp-image-14069\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-61-1024x413.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-61-300x121.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-61-768x310.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-61-1536x620.png 1536w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-61-18x7.png 18w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-61.png 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%81%aewp%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%b8%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e9%98%b2%e6%ad%a2\"><\/span>Preventing access to default WP files<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This is a function to prevent access to the WordPress installation folder. It is set to OFF by default, so we recommend that you set it to ON.<\/p>\n\n\n\n<p>Also, the &quot;Delete readme.html and wp-config-sample.php&quot; at the bottom is a function that deletes the unused file &quot;wp-config-sample.php&quot; that is included in the initial files, so turn this on and click &quot;Delete&quot;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"307\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-62-1024x307.png\" alt=\"\" class=\"wp-image-14070\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-62-1024x307.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-62-300x90.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-62-768x230.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-62-18x5.png 18w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-62.png 1528w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e7%94%bb%e5%83%8f%e3%81%ae%e7%9b%b4%e3%83%aa%e3%83%b3%e3%82%af%e3%81%ae%e9%98%b2%e6%ad%a2\"><\/span>Preventing direct linking of images<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This function prevents images uploaded to your site from being used on other sites using the URL. It is set to OFF by default, so we recommend setting it to ON.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"228\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-63-1024x228.png\" alt=\"\" class=\"wp-image-14071\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-63-1024x228.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-63-300x67.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-63-768x171.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-63-18x4.png 18w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-63.png 1450w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"php%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e7%b7%a8%e9%9b%86%e3%82%92%e7%84%a1%e5%8a%b9%e5%8c%96\"><\/span>Disable PHP file editing<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>WordPress has a feature that allows you to edit PHP files from the administration screen. This function is turned off.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"299\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-64-1024x299.png\" alt=\"\" class=\"wp-image-14072\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-64-1024x299.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-64-300x88.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-64-768x224.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-64-1536x448.png 1536w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-64-18x5.png 18w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-64.png 1590w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>For example, by default when you open Appearance &gt; Theme File Editor you can edit PHP files.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"223\" height=\"392\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-67.png\" alt=\"\" class=\"wp-image-14075\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-67.png 223w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-67-171x300.png 171w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-67-7x12.png 7w\" sizes=\"(max-width: 223px) 100vw, 223px\" \/><\/figure>\n\n\n\n<p>When this setting is turned ON, the editor access items disappear.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"224\" height=\"340\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-66.png\" alt=\"\" class=\"wp-image-14074\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-66.png 224w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-66-198x300.png 198w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/image-66-8x12.png 8w\" sizes=\"(max-width: 224px) 100vw, 224px\" \/><\/figure>","protected":false},"excerpt":{"rendered":"<p>WordPress\u30b5\u30a4\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u4e0d\u5b89\u304c\u3042\u308b\u65b9\u5fc5\u898b\u7121\u6599\u306eAll in one WP Secyruti\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\u3092\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002 \u4eca\u56de\u306f\u3001File security\u3000\uff1e\u3000File Pro [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":14076,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","_uag_custom_page_level_css":"","footnotes":""},"categories":[1551],"tags":[1549],"class_list":["post-13926","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-all-in-one-wp-security","tag-all-in-one-security"],"blocksy_meta":[],"aioseo_notices":[],"uagb_featured_image_src":{"full":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/All-in-one-WP-Security-10.png",720,540,false],"thumbnail":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/All-in-one-WP-Security-10-150x150.png",150,150,true],"medium":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/All-in-one-WP-Security-10-300x225.png",300,225,true],"medium_large":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/All-in-one-WP-Security-10.png",720,540,false],"large":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/All-in-one-WP-Security-10.png",720,540,false],"1536x1536":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/All-in-one-WP-Security-10.png",720,540,false],"2048x2048":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/All-in-one-WP-Security-10.png",720,540,false],"trp-custom-language-flag":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2024\/05\/All-in-one-WP-Security-10-16x12.png",16,12,true]},"uagb_author_info":{"display_name":"\u682a\u5f0f\u4f1a\u793eHanamiWEB \u4ee3\u8868\u53d6\u7de0\u5f79 \u677e\u6d66\u307f\u3055","author_link":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/author\/hanami\/"},"uagb_comment_info":0,"uagb_excerpt":"WordPress\u30b5\u30a4\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u4e0d\u5b89\u304c\u3042\u308b\u65b9\u5fc5\u898b\u7121\u6599\u306eAll in one WP Secyruti\u30d7\u30e9&hellip;","brizy_media":[],"_links":{"self":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts\/13926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/comments?post=13926"}],"version-history":[{"count":0,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts\/13926\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/media\/14076"}],"wp:attachment":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/media?parent=13926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/categories?post=13926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/tags?post=13926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}