{"id":1965,"date":"2024-10-09T11:37:51","date_gmt":"2024-10-09T03:37:51","guid":{"rendered":"https:\/\/www.openbyt.com\/after-all-is-said-and-done-more-is-said-than-done-2"},"modified":"2024-10-17T19:51:04","modified_gmt":"2024-10-17T11:51:04","slug":"after-all-is-said-and-done-more-is-said-than-done-2","status":"publish","type":"post","link":"https:\/\/www.openbyt.com\/ja\/\u8a00\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3067\u3001\u3084\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3067-2","title":{"rendered":"\u5b89\u5168\u306aWordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u958b\u767a\u306e\u305f\u3081\u306e\u7dcf\u5408\u30ac\u30a4\u30c9"},"content":{"rendered":"<p>WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306b\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u7b2c\u4e00\u306b\u8003\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002WordPress \u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u3001\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3001\u6a5f\u5bc6\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u653b\u6483\u8005\u306e\u683c\u597d\u306e\u6a19\u7684\u306b\u306a\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u8106\u5f31\u6027\u304c1\u3064\u3067\u3082\u3042\u308b\u3068\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u5168\u4f53\u304c\u5371\u967a\u306b\u3055\u3089\u3055\u308c\u3001\u30c7\u30fc\u30bf\u6f0f\u6d29\u3084\u6539\u3056\u3093\u3001\u305d\u306e\u4ed6\u306e\u6df1\u523b\u306a\u5f71\u97ff\u306b\u3064\u306a\u304c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u5b89\u5168\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u5b89\u5168\u306b\u4fdd\u3061\u3001\u4e00\u822c\u7684\u306a\u653b\u6483\u304b\u3089\u4fdd\u8b77\u3057\u3001\u4fe1\u983c\u3067\u304d\u308b\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3092\u4fdd\u8a3c\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u3067\u306f\u3001\u5b89\u5168\u306aWordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4e0d\u53ef\u6b20\u306a\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u8aac\u660e\u3057\u3001\u5b9f\u8df5\u7684\u306a\u4f8b\u3092\u3044\u304f\u3064\u304b\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.41.20-A-digital-illustration-of-a-computer-screen-displaying-lines-of-code-with-a-shield-icon-symbolizing-security.-The-background-shows-a-subtle-hint-of-W.webp\" alt=\"\" class=\"wp-image-2551\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.41.20-A-digital-illustration-of-a-computer-screen-displaying-lines-of-code-with-a-shield-icon-symbolizing-security.-The-background-shows-a-subtle-hint-of-W.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.41.20-A-digital-illustration-of-a-computer-screen-displaying-lines-of-code-with-a-shield-icon-symbolizing-security.-The-background-shows-a-subtle-hint-of-W-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.41.20-A-digital-illustration-of-a-computer-screen-displaying-lines-of-code-with-a-shield-icon-symbolizing-security.-The-background-shows-a-subtle-hint-of-W-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.41.20-A-digital-illustration-of-a-computer-screen-displaying-lines-of-code-with-a-shield-icon-symbolizing-security.-The-background-shows-a-subtle-hint-of-W-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.41.20-A-digital-illustration-of-a-computer-screen-displaying-lines-of-code-with-a-shield-icon-symbolizing-security.-The-background-shows-a-subtle-hint-of-W-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.41.20-A-digital-illustration-of-a-computer-screen-displaying-lines-of-code-with-a-shield-icon-symbolizing-security.-The-background-shows-a-subtle-hint-of-W-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>1.\u30d5\u30a9\u30fc\u30e0\u3068URL\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306bNonces\u3092\u4f7f\u7528<\/strong><\/p><p>Nonces\u306f\u3001\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u30d5\u30a9\u30fc\u30b8\u30a7\u30ea\uff08CSRF\uff09\u653b\u6483\u304b\u3089\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306b\u4e0d\u53ef\u6b20\u3067\u3059\u3002Nonce \u306f\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u771f\u6b63\u6027\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u3001\u7279\u306b\u6a5f\u5bc6\u6027\u306e\u9ad8\u3044\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u30d5\u30a9\u30fc\u30e0\u3084 URL \u306b\u6709\u52b9\u3067\u3059\u3002\u30d5\u30a9\u30fc\u30e0\u3084 URL \u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306f\u5e38\u306b\u3001WordPress \u306e wp_nonce_field() \u307e\u305f\u306f wp_create_nonce() \u3092\u4f7f\u7528\u3057\u3066 nonce \u3092\u751f\u6210\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u306f\u3001check_admin_referer() \u307e\u305f\u306f check_ajax_referer() \u3067 nonce \u3092\u691c\u8a3c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p><pre class=\"wp-block-code\"><code>if (isset($_POST['my_nonce']) &amp;&amp; wp_verify_nonce($_POST['my_nonce'], 'my_action')){\n    \/\/ \u30a2\u30af\u30b7\u30e7\u30f3\u3092\u7d9a\u884c\u3057\u3066\u3082\u5b89\u5168\n}<\/code><\/pre><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.44.01-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s.webp\" alt=\"\" class=\"wp-image-2554\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.44.01-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.44.01-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.44.01-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.44.01-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.44.01-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.44.01-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>\u3053\u306e\u7a2e\u306e\u4fdd\u8b77\u306fAJAX\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u3082\u9069\u7528\u3067\u304d\u3001\u8a31\u53ef\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u3042\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3057\u307e\u3059\uff1a<\/p><pre class=\"wp-block-code\"><code>add_action('wp_ajax_my_secure_action', 'my_secure_ajax_handler')\uff1b\n\u95a2\u6570 my_secure_ajax_handler() {\n    check_ajax_referer('my_secure_nonce', 'security')\uff1b\n    \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3057\u307e\u3059\n    wp_die()\uff1b\n}<\/code><\/pre><figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.45.05-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s.webp\" alt=\"\" class=\"wp-image-2557\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.45.05-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.45.05-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.45.05-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.45.05-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.45.05-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.45.05-A-modern-visually-engaging-illustration-showing-a-person-working-at-a-laptop-surrounded-by-digital-security-icons-such-as-shields-locks-and-code-s-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>2.\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u306e\u30b5\u30cb\u30bf\u30a4\u30ba\u3068\u691c\u8a3c<\/strong><\/p><p>\u653b\u6483\u8005\u304c\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4fb5\u5bb3\u3059\u308b\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u306e1\u3064\u306f\u3001\u60aa\u610f\u306e\u3042\u308b\u30c7\u30fc\u30bf\u3092\u6ce8\u5165\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3059\u3079\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u306e\u30b5\u30cb\u30bf\u30a4\u30ba\u3068\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u91cd\u8981\u3067\u3059\u3002WordPress\u306b\u306f\u3001\u3053\u308c\u3092\u884c\u3046\u305f\u3081\u306e\u7d44\u307f\u8fbc\u307f\u95a2\u6570\u304c\u3044\u304f\u3064\u304b\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\uff1a<\/p><ul class=\"wp-block-list\"><li><code><strong>sanitize_text_field()<\/strong><\/code>:\u5358\u7d14\u306a\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5834\u5408\u3002<\/li>\n\n<li><code><strong>sanitize_email()<\/strong><\/code>:\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/li>\n\n<li><code><strong>esc_url()<\/strong><\/code>:URL\u306e\u5834\u5408\u3002<\/li><\/ul><p>\u3053\u308c\u3089\u306e\u95a2\u6570\u306f\u3001\u57fa\u672c\u7684\u306a\u30b7\u30ca\u30ea\u30aa\u306b\u306f\u6700\u9069\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u3088\u308a\u7279\u6b8a\u306a\u5834\u5408\u306f PHP \u306e filter_var() \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6574\u6570\u3092\u691c\u8a3c\u3059\u308b\u5834\u5408\u306a\u3069\u3067\u3059\uff1a<\/p><pre class=\"wp-block-code\"><code>$input = filter_var($_POST['user_input'], FILTER_VALIDATE_INT)\uff1b\nif ($input !== false) { \/\/ \u5165\u529b\u306f\u6709\u52b9\u3067\u3059\u3002\n    \/\/ \u5165\u529b\u306f\u6709\u52b9\u3067\u3059\u3002\n}<\/code><\/pre><p>\u8907\u6570\u9078\u629e\u80a2\u306e\u5165\u529b\u3092\u691c\u8a3c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306a\u3069\u3001\u3088\u308a\u8907\u96d1\u306a\u30b7\u30ca\u30ea\u30aa\u306e\u5834\u5408\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u4f7f\u7528\u3092\u691c\u8a0e\u3057\u307e\u3057\u3087\u3046\uff1a<\/p><pre class=\"wp-block-code\"><code>$valid_options = ['option_1', 'option_2', 'option_3']\uff1b\nif (in_array($_POST['selected_option'], $valid_options, true)) { \/\/ \u5165\u529b\u306f\u6709\u52b9\u3067\u3059\u3002\n    \/\/ \u5165\u529b\u306f\u6709\u52b9\u3067\u3059\n}<\/code><\/pre><p>\u3053\u308c\u306b\u3088\u308a\u3001\u4e88\u671f\u3055\u308c\u305f\u5024\u306e\u307f\u304c\u51e6\u7406\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u4e88\u671f\u305b\u306c\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u30ea\u30b9\u30af\u304c\u8efd\u6e1b\u3055\u308c\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.48.57-A-professional-illustration-representing-secure-data-handling-for-a-WordPress-plugin-suitable-for-a-Western-audience.-The-image-should-include-visual.webp\" alt=\"\" class=\"wp-image-2558\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.48.57-A-professional-illustration-representing-secure-data-handling-for-a-WordPress-plugin-suitable-for-a-Western-audience.-The-image-should-include-visual.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.48.57-A-professional-illustration-representing-secure-data-handling-for-a-WordPress-plugin-suitable-for-a-Western-audience.-The-image-should-include-visual-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.48.57-A-professional-illustration-representing-secure-data-handling-for-a-WordPress-plugin-suitable-for-a-Western-audience.-The-image-should-include-visual-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.48.57-A-professional-illustration-representing-secure-data-handling-for-a-WordPress-plugin-suitable-for-a-Western-audience.-The-image-should-include-visual-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.48.57-A-professional-illustration-representing-secure-data-handling-for-a-WordPress-plugin-suitable-for-a-Western-audience.-The-image-should-include-visual-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.48.57-A-professional-illustration-representing-secure-data-handling-for-a-WordPress-plugin-suitable-for-a-Western-audience.-The-image-should-include-visual-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>3.\u30a8\u30b9\u30b1\u30fc\u30d7\u51fa\u529b<\/strong><\/p><p>\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30b9\u30af\u30ea\u30d7\u30c6\u30a3\u30f3\u30b0\uff08XSS\uff09\u653b\u6483\u3092\u9632\u3050\u306b\u306f\u3001\u51fa\u529b\u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306b\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u3068\u304d\u306f\u3001WordPress \u306e\u30a8\u30b9\u30b1\u30fc\u30d7\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p><ul class=\"wp-block-list\"><li><code><strong>esc_html()<\/strong><\/code>:HTML\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u3057\u307e\u3059\u3002<\/li>\n\n<li><code><strong>esc_attr()<\/strong><\/code>:\u5c5e\u6027\u5024\u306e\u5834\u5408\u3002<\/li>\n\n<li><code><strong>esc_url()<\/strong><\/code>:URL\u306e\u5834\u5408\u3002<\/li><\/ul><p>\u3053\u308c\u304c\u305d\u306e\u4f8b\u3067\u3059\uff1a<\/p><pre class=\"wp-block-code\"><code>echo esc_html($user_input)\uff1b<\/code><\/pre><p>\u3053\u308c\u306b\u3088\u308a\u3001\u6f5c\u5728\u7684\u306b\u5371\u967a\u306a\u30b3\u30fc\u30c9\u304c\u30d6\u30e9\u30a6\u30b6\u3067\u5b9f\u884c\u3055\u308c\u308b\u306e\u3092\u9632\u304e\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u5b89\u5168\u3092\u5b88\u308a\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.51.18-A-professional-illustration-symbolizing-XSS-prevention-in-web-development.-The-image-should-include-elements-like-code-snippets-a-browser-window-and.webp\" alt=\"\" class=\"wp-image-2562\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.51.18-A-professional-illustration-symbolizing-XSS-prevention-in-web-development.-The-image-should-include-elements-like-code-snippets-a-browser-window-and.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.51.18-A-professional-illustration-symbolizing-XSS-prevention-in-web-development.-The-image-should-include-elements-like-code-snippets-a-browser-window-and-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.51.18-A-professional-illustration-symbolizing-XSS-prevention-in-web-development.-The-image-should-include-elements-like-code-snippets-a-browser-window-and-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.51.18-A-professional-illustration-symbolizing-XSS-prevention-in-web-development.-The-image-should-include-elements-like-code-snippets-a-browser-window-and-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.51.18-A-professional-illustration-symbolizing-XSS-prevention-in-web-development.-The-image-should-include-elements-like-code-snippets-a-browser-window-and-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.51.18-A-professional-illustration-symbolizing-XSS-prevention-in-web-development.-The-image-should-include-elements-like-code-snippets-a-browser-window-and-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>4.\u5b89\u5168\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30a8\u30ea<\/strong><\/p><p>SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u3092\u9632\u3050\u306b\u306f\u3001\u5e38\u306b <code>$wpdb<\/code> \u30af\u30e9\u30b9\u306e\u30d7\u30ea\u30da\u30a2\u30c9\u30fb\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002SQL \u30af\u30a8\u30ea\u306e\u4e2d\u3067\u30e6\u30fc\u30b6\u5165\u529b\u3092\u76f4\u63a5\u9023\u7d50\u3059\u308b\u3053\u3068\u306f\u907f\u3051\u3066\u304f\u3060\u3055\u3044\u3002\u4ee3\u308f\u308a\u306b\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p><pre class=\"wp-block-code\"><code>$results = $wpdb-&gt;get_results($wpdb-&gt;prepare(\"SELECT * FROM {$wpdb-&gt;prefix}my_table WHERE id = %d\", $id))\uff1b<\/code><\/pre><p>\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u6e96\u5099\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u304c\u9069\u5207\u306b\u30a8\u30b9\u30b1\u30fc\u30d7\u3055\u308c\u3001\u5b9f\u884c\u53ef\u80fd\u306aSQL\u30b3\u30fc\u30c9\u3067\u306f\u306a\u304f\u3001\u30c7\u30fc\u30bf\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.54.24-An-illustration-representing-secure-database-queries-for-web-development.-The-image-should-include-elements-like-a-database-symbol-SQL-query-snippets.webp\" alt=\"\" class=\"wp-image-2563\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.54.24-An-illustration-representing-secure-database-queries-for-web-development.-The-image-should-include-elements-like-a-database-symbol-SQL-query-snippets.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.54.24-An-illustration-representing-secure-database-queries-for-web-development.-The-image-should-include-elements-like-a-database-symbol-SQL-query-snippets-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.54.24-An-illustration-representing-secure-database-queries-for-web-development.-The-image-should-include-elements-like-a-database-symbol-SQL-query-snippets-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.54.24-An-illustration-representing-secure-database-queries-for-web-development.-The-image-should-include-elements-like-a-database-symbol-SQL-query-snippets-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.54.24-An-illustration-representing-secure-database-queries-for-web-development.-The-image-should-include-elements-like-a-database-symbol-SQL-query-snippets-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.54.24-An-illustration-representing-secure-database-queries-for-web-development.-The-image-should-include-elements-like-a-database-symbol-SQL-query-snippets-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>5.\u30e6\u30fc\u30b6\u306e\u5f79\u5272\u3068\u80fd\u529b\u306e\u9069\u5207\u306a\u53d6\u308a\u6271\u3044<\/strong><\/p><p>\u30e6\u30fc\u30b6\u6a29\u9650\u306e\u30ec\u30d9\u30eb\u304c\u7570\u306a\u308b\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306f\u3001current_user_can() \u3092\u4f7f\u7528\u3057\u3066\u3001\u9069\u5207\u306a\u6a29\u9650\u3092\u6301\u3064\u30e6\u30fc\u30b6\u306e\u307f\u304c\u7279\u5b9a\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\uff1a<\/p><pre class=\"wp-block-code\"><code>if (current_user_can('manage_options')){\n    \/\/ \u7ba1\u7406\u8005\u306e\u307f\u304c\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\n}<\/code><\/pre><p>\u9ad8\u5ea6\u306a\u30ed\u30fc\u30eb\u7ba1\u7406\u3067\u306f\u3001\u30ab\u30b9\u30bf\u30e0\u6a5f\u80fd\u3092\u5b9a\u7fa9\u3057\u3066\u7279\u5b9a\u306e\u30ed\u30fc\u30eb\u306b\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.58.35-A-professional-illustration-representing-user-roles-and-capabilities-management-in-WordPress.-The-image-should-include-symbols-like-user-icons-with-di.webp\" alt=\"\" class=\"wp-image-2566\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.58.35-A-professional-illustration-representing-user-roles-and-capabilities-management-in-WordPress.-The-image-should-include-symbols-like-user-icons-with-di.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.58.35-A-professional-illustration-representing-user-roles-and-capabilities-management-in-WordPress.-The-image-should-include-symbols-like-user-icons-with-di-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.58.35-A-professional-illustration-representing-user-roles-and-capabilities-management-in-WordPress.-The-image-should-include-symbols-like-user-icons-with-di-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.58.35-A-professional-illustration-representing-user-roles-and-capabilities-management-in-WordPress.-The-image-should-include-symbols-like-user-icons-with-di-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.58.35-A-professional-illustration-representing-user-roles-and-capabilities-management-in-WordPress.-The-image-should-include-symbols-like-user-icons-with-di-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-10.58.35-A-professional-illustration-representing-user-roles-and-capabilities-management-in-WordPress.-The-image-should-include-symbols-like-user-icons-with-di-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>6.\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30b9\u30af\u30ea\u30d7\u30c6\u30a3\u30f3\u30b0\uff08XSS\uff09\u304b\u3089\u306e\u4fdd\u8b77<\/strong><\/p><p>XSS\u653b\u6483\u306f\u6700\u3082\u4e00\u822c\u7684\u306a\u8106\u5f31\u6027\u306e\u4e00\u3064\u3067\u3059\u3002\u524d\u8ff0\u3057\u305f\u3088\u3046\u306b\u3001\u5e38\u306b\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u3092\u30b5\u30cb\u30bf\u30a4\u30ba\u3057\u3001\u51fa\u529b\u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u7279\u5b9a\u306eHTML\u30bf\u30b0\u3092\u8a31\u53ef\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001wp_kses()\u3092\u4f7f\u3063\u3066\u5b89\u5168\u306b\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p><pre class=\"wp-block-code\"><code>$allowed_tags = [\n    'a' =&gt; [\n        'href' =&gt; []\u3001\n        'title' =&gt; [].\n    ],\n    'b' =&gt; [],\n    'em' =&gt; [].\n];\n$safe_html = wp_kses($user_input, $allowed_tags)\uff1b<\/code><\/pre><p>\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u3092\u4fdd\u8b77\u3057\u306a\u304c\u3089\u3001\u57fa\u672c\u7684\u306a\u66f8\u5f0f\u8a2d\u5b9a\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.00.37-A-modern-illustration-representing-Cross-Site-Scripting-XSS-prevention-in-web-development.-The-image-should-include-elements-like-a-web-browser-with.webp\" alt=\"\" class=\"wp-image-2567\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.00.37-A-modern-illustration-representing-Cross-Site-Scripting-XSS-prevention-in-web-development.-The-image-should-include-elements-like-a-web-browser-with.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.00.37-A-modern-illustration-representing-Cross-Site-Scripting-XSS-prevention-in-web-development.-The-image-should-include-elements-like-a-web-browser-with-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.00.37-A-modern-illustration-representing-Cross-Site-Scripting-XSS-prevention-in-web-development.-The-image-should-include-elements-like-a-web-browser-with-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.00.37-A-modern-illustration-representing-Cross-Site-Scripting-XSS-prevention-in-web-development.-The-image-should-include-elements-like-a-web-browser-with-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.00.37-A-modern-illustration-representing-Cross-Site-Scripting-XSS-prevention-in-web-development.-The-image-should-include-elements-like-a-web-browser-with-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.00.37-A-modern-illustration-representing-Cross-Site-Scripting-XSS-prevention-in-web-development.-The-image-should-include-elements-like-a-web-browser-with-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>7.\u30d5\u30a1\u30a4\u30eb\u306e\u53d6\u308a\u6271\u3044\u306b\u6ce8\u610f<\/strong><\/p><p>\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306f\u3001\u9069\u5207\u306b\u51e6\u7406\u3055\u308c\u306a\u3044\u5834\u5408\u3001\u5927\u304d\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u3068\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30ea\u30b9\u30af\u3092\u8efd\u6e1b\u3059\u308b\u306b\u306f\u3001\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u30bf\u30a4\u30d7\u306e\u307f\u3092\u8a31\u53ef\u3057\u3001MIME\u30bf\u30a4\u30d7\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u5b89\u5168\u306a\u5834\u6240\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\uff1a<\/p><pre class=\"wp-block-code\"><code>$allowed_file_types = ['jpg', 'jpeg', 'png', 'pdf']\uff1b\n$file_type = wp_check_filetype(basename($_FILES['file']['name']))\uff1b\nif (in_array($file_type['ext'], $allowed_file_types)) { \/\/ \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u7d9a\u884c\u3057\u307e\u3059\u3002\n    \/\/ \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u7d9a\u884c\n}<\/code><\/pre><p>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 <code>wp_handle_upload()<\/code> \u3092\u4f7f\u7528\u3057\u3066\u3001WordPress \u306e\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u306b\u5f93\u3063\u3066\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u5b89\u5168\u306b\u7ba1\u7406\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p><pre class=\"wp-block-code\"><code>$uploaded_file = wp_handle_upload($_FILES['file'], ['test_form' =&gt; false])\uff1b\nif ($uploaded_file &amp;&amp; !isset($uploaded_file['error'])){\n    \/\/ \u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306b\u6210\u529f\n}<\/code><\/pre><p>\u307e\u305f\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u3092\u5236\u9650\u3057\u3001\u30a6\u30a4\u30eb\u30b9\u30b9\u30ad\u30e3\u30f3\u3084\u30cf\u30c3\u30b7\u30e5\u95a2\u6570\u3092\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5b8c\u5168\u6027\u306e\u691c\u8a3c\u306a\u3069\u3001\u8ffd\u52a0\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3046\u306e\u3082\u826f\u3044\u65b9\u6cd5\u3067\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.03.08-An-illustration-representing-secure-file-handling-in-web-development.-The-image-should-include-elements-like-file-icons-a-padlock-and-a-server-symb.webp\" alt=\"\" class=\"wp-image-2568\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.03.08-An-illustration-representing-secure-file-handling-in-web-development.-The-image-should-include-elements-like-file-icons-a-padlock-and-a-server-symb.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.03.08-An-illustration-representing-secure-file-handling-in-web-development.-The-image-should-include-elements-like-file-icons-a-padlock-and-a-server-symb-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.03.08-An-illustration-representing-secure-file-handling-in-web-development.-The-image-should-include-elements-like-file-icons-a-padlock-and-a-server-symb-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.03.08-An-illustration-representing-secure-file-handling-in-web-development.-The-image-should-include-elements-like-file-icons-a-padlock-and-a-server-symb-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.03.08-An-illustration-representing-secure-file-handling-in-web-development.-The-image-should-include-elements-like-file-icons-a-padlock-and-a-server-symb-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.03.08-An-illustration-representing-secure-file-handling-in-web-development.-The-image-should-include-elements-like-file-icons-a-padlock-and-a-server-symb-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>8.\u5b89\u5168\u306aAJAX\u30ea\u30af\u30a8\u30b9\u30c8<\/strong><\/p><p>AJAX\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u3088\u308a\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u306b\u3059\u308b\u7d20\u6674\u3089\u3057\u3044\u65b9\u6cd5\u3067\u3059\u304c\u3001\u9069\u5207\u306b\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u3053\u3068\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u3059\u3079\u3066\u306eAJAX\u30ea\u30af\u30a8\u30b9\u30c8\u304cnonce\u3092\u691c\u8a3c\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u80fd\u529b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p><pre class=\"wp-block-code\"><code>add_action('wp_ajax_my_action', 'my_ajax_handler')\uff1b\n\u95a2\u6570 my_ajax_handler() {\n    check_ajax_referer('my_nonce', 'security')\uff1b\n    if (current_user_can('edit_posts')){\n        \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3057\u307e\u3059\n    }\n    wp_die()\uff1b\n}<\/code><\/pre><p>\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5b89\u5168\u306b\u4fdd\u3064\u305f\u3081\u306b\u3001\u8a8d\u8a3c\u3055\u308c\u305f(wp_ajax_)AJAX\u30a2\u30af\u30b7\u30e7\u30f3\u3068\u8a8d\u8a3c\u3055\u308c\u3066\u3044\u306a\u3044(wp_ajax_nopriv_)AJAX\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u4e21\u65b9\u3092\u4fdd\u8b77\u3059\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.06.15-An-illustration-representing-secure-AJAX-requests-in-web-development.-The-image-should-include-symbols-like-arrows-representing-data-flow-a-computer-.webp\" alt=\"\" class=\"wp-image-2570\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.06.15-An-illustration-representing-secure-AJAX-requests-in-web-development.-The-image-should-include-symbols-like-arrows-representing-data-flow-a-computer-.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.06.15-An-illustration-representing-secure-AJAX-requests-in-web-development.-The-image-should-include-symbols-like-arrows-representing-data-flow-a-computer--600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.06.15-An-illustration-representing-secure-AJAX-requests-in-web-development.-The-image-should-include-symbols-like-arrows-representing-data-flow-a-computer--100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.06.15-An-illustration-representing-secure-AJAX-requests-in-web-development.-The-image-should-include-symbols-like-arrows-representing-data-flow-a-computer--300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.06.15-An-illustration-representing-secure-AJAX-requests-in-web-development.-The-image-should-include-symbols-like-arrows-representing-data-flow-a-computer--150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.06.15-An-illustration-representing-secure-AJAX-requests-in-web-development.-The-image-should-include-symbols-like-arrows-representing-data-flow-a-computer--768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>9.\u6a5f\u5bc6\u30c7\u30fc\u30bf\u306e\u4fdd\u8b77<\/strong><\/p><p>API \u30ad\u30fc\u306a\u3069\u306e\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u76f4\u63a5\u30cf\u30fc\u30c9\u30b3\u30fc\u30c9\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u4ee3\u308f\u308a\u306b\u3001WordPress \u306e\u30aa\u30d7\u30b7\u30e7\u30f3 API \u3084\u74b0\u5883\u5909\u6570\u3092\u4f7f\u3063\u3066\u5b89\u5168\u306b\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<\/p><pre class=\"wp-block-code\"><code>update_option('my_plugin_api_key', sanitize_text_field($api_key))\uff1b<\/code><\/pre><p>\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u6a5f\u5bc6\u60c5\u5831\u306f\u96a0\u3055\u308c\u305f\u307e\u307e\u3068\u306a\u308a\u3001\u6f5c\u5728\u7684\u306a\u653b\u6483\u8005\u304c\u30a2\u30af\u30bb\u30b9\u3057\u306b\u304f\u304f\u306a\u308a\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.08.32-A-professional-illustration-representing-data-security-with-symbols-like-a-padlock-API-key-and-code-snippets.-The-image-should-convey-the-concept-o.webp\" alt=\"\" class=\"wp-image-2572\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.08.32-A-professional-illustration-representing-data-security-with-symbols-like-a-padlock-API-key-and-code-snippets.-The-image-should-convey-the-concept-o.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.08.32-A-professional-illustration-representing-data-security-with-symbols-like-a-padlock-API-key-and-code-snippets.-The-image-should-convey-the-concept-o-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.08.32-A-professional-illustration-representing-data-security-with-symbols-like-a-padlock-API-key-and-code-snippets.-The-image-should-convey-the-concept-o-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.08.32-A-professional-illustration-representing-data-security-with-symbols-like-a-padlock-API-key-and-code-snippets.-The-image-should-convey-the-concept-o-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.08.32-A-professional-illustration-representing-data-security-with-symbols-like-a-padlock-API-key-and-code-snippets.-The-image-should-convey-the-concept-o-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.08.32-A-professional-illustration-representing-data-security-with-symbols-like-a-padlock-API-key-and-code-snippets.-The-image-should-convey-the-concept-o-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>10.\u6700\u5c0f\u7279\u6a29\u306e\u539f\u5247\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/strong><\/p><p>\u30e6\u30fc\u30b6\u30fc\u3068\u30d7\u30ed\u30bb\u30b9\u306b\u306f\u5fc5\u8981\u306a\u6a29\u9650\u3060\u3051\u3092\u4e0e\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u7ba1\u7406\u8005\u6a29\u9650\u3092\u5fc5\u8981\u3068\u3057\u306a\u3044\u30bf\u30b9\u30af\u306f\u3001\u4f7f\u7528\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u539f\u5247\u306f\u3001\u4fb5\u5bb3\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u30fb\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u4e0e\u3048\u308b\u88ab\u5bb3\u3092\u6291\u3048\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.11.25-A-professional-illustration-representing-the-principle-of-least-privilege-in-security.-The-image-should-include-symbols-like-different-user-icons-pad.webp\" alt=\"\" class=\"wp-image-2573\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.11.25-A-professional-illustration-representing-the-principle-of-least-privilege-in-security.-The-image-should-include-symbols-like-different-user-icons-pad.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.11.25-A-professional-illustration-representing-the-principle-of-least-privilege-in-security.-The-image-should-include-symbols-like-different-user-icons-pad-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.11.25-A-professional-illustration-representing-the-principle-of-least-privilege-in-security.-The-image-should-include-symbols-like-different-user-icons-pad-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.11.25-A-professional-illustration-representing-the-principle-of-least-privilege-in-security.-The-image-should-include-symbols-like-different-user-icons-pad-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.11.25-A-professional-illustration-representing-the-principle-of-least-privilege-in-security.-The-image-should-include-symbols-like-different-user-icons-pad-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.11.25-A-professional-illustration-representing-the-principle-of-least-privilege-in-security.-The-image-should-include-symbols-like-different-user-icons-pad-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>11.\u30d6\u30eb\u30fc\u30c8\u30d5\u30a9\u30fc\u30b9\u653b\u6483\u304b\u3089\u306e\u9632\u5fa1<\/strong><\/p><p>\u30d6\u30eb\u30fc\u30c8\u30d5\u30a9\u30fc\u30b9\u653b\u6483\u306f\u3001\u7279\u306b\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\u3067\u3088\u304f\u898b\u3089\u308c\u307e\u3059\u3002Wordfence\u306e\u3088\u3046\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001\u30ec\u30fc\u30c8\u5236\u9650\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<\/p><pre class=\"wp-block-code\"><code>\u95a2\u6570 limit_login_attempts() {\n    $ip_address = $_SERVER['REMOTE_ADDR']\uff1b\n    $attempts = get_transient('login_attempts_' . $ip_address)\uff1b\n\n    if ($attempts &gt;= 5) { { {.\n        wp_die('Too many login attempts. Please try again later.')\uff1b\n    }\n\n    set_transient('login_attempts_' . $ip_address, $attempts + 1, 60 * 15); \/\/ 15\u5206\u9593\u306b5\u56de\u307e\u3067\u3068\u3057\u307e\u3059\u3002\n}\nadd_action('wp_login_failed', 'limit_login_attempts')\uff1b<\/code><\/pre><p>\u3053\u306e\u5358\u7d14\u306a\u6226\u7565\u306f\u3001\u30d6\u30eb\u30fc\u30c8\u30d5\u30a9\u30fc\u30b9\u653b\u6483\u304b\u3089\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5b88\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.27.04-An-illustration-representing-protection-against-brute-force-attacks-in-cybersecurity.-The-image-should-include-symbols-like-a-lock-a-login-form-and-.webp\" alt=\"\" class=\"wp-image-2574\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.27.04-An-illustration-representing-protection-against-brute-force-attacks-in-cybersecurity.-The-image-should-include-symbols-like-a-lock-a-login-form-and-.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.27.04-An-illustration-representing-protection-against-brute-force-attacks-in-cybersecurity.-The-image-should-include-symbols-like-a-lock-a-login-form-and--600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.27.04-An-illustration-representing-protection-against-brute-force-attacks-in-cybersecurity.-The-image-should-include-symbols-like-a-lock-a-login-form-and--100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.27.04-An-illustration-representing-protection-against-brute-force-attacks-in-cybersecurity.-The-image-should-include-symbols-like-a-lock-a-login-form-and--300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.27.04-An-illustration-representing-protection-against-brute-force-attacks-in-cybersecurity.-The-image-should-include-symbols-like-a-lock-a-login-form-and--150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.27.04-An-illustration-representing-protection-against-brute-force-attacks-in-cybersecurity.-The-image-should-include-symbols-like-a-lock-a-login-form-and--768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>12.\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u30ed\u30b0<\/strong><\/p><p>\u30ed\u30b0\u306f\u4e0d\u5be9\u306a\u884c\u52d5\u3092\u8ffd\u8de1\u3059\u308b\u305f\u3081\u306b\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u30e6\u30fc\u30b6\u304c\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u30ed\u30b0\u30a4\u30f3\u8a66\u884c\u306b\u4f55\u5ea6\u3082\u5931\u6557\u3057\u305f\u308a\u3057\u305f\u5834\u5408\u3001\u5c06\u6765\u306e\u5206\u6790\u306e\u305f\u3081\u306b\u3053\u308c\u3089\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u30ed\u30b0\u306b\u8a18\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff1a<\/p><pre class=\"wp-block-code\"><code>\u95a2\u6570log_action($message) { \u30ed\u30b0\u3092\u8a18\u9332\u3057\u307e\u3059\u3002\n    $log_file = WP_CONTENT_DIR .'\/plugin_logs.txt'\uff1b\n    $current_time = current_time('mysql')\uff1b\n    file_put_contents($log_file, \"[$current_time] $message\\n\", FILE_APPEND)\uff1b\n}\n\nlog_action('Plugin settings changed by user ID ' . get_current_user_id())\uff1b<\/code><\/pre><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.29.34-An-illustration-representing-logging-sensitive-actions-in-web-development.-The-image-should-include-elements-like-a-logbook-a-clock-symbol-and-a-com.webp\" alt=\"\" class=\"wp-image-2575\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.29.34-An-illustration-representing-logging-sensitive-actions-in-web-development.-The-image-should-include-elements-like-a-logbook-a-clock-symbol-and-a-com.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.29.34-An-illustration-representing-logging-sensitive-actions-in-web-development.-The-image-should-include-elements-like-a-logbook-a-clock-symbol-and-a-com-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.29.34-An-illustration-representing-logging-sensitive-actions-in-web-development.-The-image-should-include-elements-like-a-logbook-a-clock-symbol-and-a-com-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.29.34-An-illustration-representing-logging-sensitive-actions-in-web-development.-The-image-should-include-elements-like-a-logbook-a-clock-symbol-and-a-com-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.29.34-An-illustration-representing-logging-sensitive-actions-in-web-development.-The-image-should-include-elements-like-a-logbook-a-clock-symbol-and-a-com-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.29.34-An-illustration-representing-logging-sensitive-actions-in-web-development.-The-image-should-include-elements-like-a-logbook-a-clock-symbol-and-a-com-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>13.\u63a8\u5968\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d7\u30e9\u30b0\u30a4\u30f3<\/strong><\/p><p>\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u3055\u3089\u306b\u5f37\u5316\u3059\u308b\u305f\u3081\u306b\u3001\u5e83\u304f\u4fe1\u983c\u3055\u308c\u3066\u3044\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u3044\u304f\u3064\u304b\u304a\u52e7\u3081\u3057\u307e\u3059\u3002 <strong>\u30ef\u30fc\u30c9\u30d5\u30a7\u30f3\u30b9<\/strong> \u305d\u3057\u3066 <strong>\u30b9\u30af\u30ea<\/strong> \u306f\u7d20\u6674\u3089\u3057\u3044\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u4fdd\u8b77\u3001\u30de\u30eb\u30a6\u30a7\u30a2\u30b9\u30ad\u30e3\u30f3\u3001\u30ed\u30b0\u30a4\u30f3\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306a\u3069\u306e\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u3001\u9632\u5fa1\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><ul class=\"wp-block-list\"><li><strong>\u30ef\u30fc\u30c9\u30d5\u30a7\u30f3\u30b9<\/strong>:\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3068\u30de\u30eb\u30a6\u30a7\u30a2\u30b9\u30ad\u30e3\u30f3<\/li>\n\n<li><strong>\u30b9\u30af\u30ea<\/strong>:\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u76e3\u67fb\u3001\u30de\u30eb\u30a6\u30a7\u30a2\u691c\u51fa\u3001DDoS\u9632\u5fa1\u3002<\/li><\/ul><p>\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u5185\u8535\u3055\u308c\u3066\u3044\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u3068\u3068\u3082\u306b\u3053\u308c\u3089\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5f37\u56fa\u306a\u9632\u5fa1\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.31.03-An-illustration-representing-WordPress-security-plugins.-The-image-should-include-elements-like-a-shield-a-WordPress-logo-and-security-symbols-such-.webp\" alt=\"\" class=\"wp-image-2576\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.31.03-An-illustration-representing-WordPress-security-plugins.-The-image-should-include-elements-like-a-shield-a-WordPress-logo-and-security-symbols-such-.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.31.03-An-illustration-representing-WordPress-security-plugins.-The-image-should-include-elements-like-a-shield-a-WordPress-logo-and-security-symbols-such--600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.31.03-An-illustration-representing-WordPress-security-plugins.-The-image-should-include-elements-like-a-shield-a-WordPress-logo-and-security-symbols-such--100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.31.03-An-illustration-representing-WordPress-security-plugins.-The-image-should-include-elements-like-a-shield-a-WordPress-logo-and-security-symbols-such--300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.31.03-An-illustration-representing-WordPress-security-plugins.-The-image-should-include-elements-like-a-shield-a-WordPress-logo-and-security-symbols-such--150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.31.03-An-illustration-representing-WordPress-security-plugins.-The-image-should-include-elements-like-a-shield-a-WordPress-logo-and-security-symbols-such--768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p>14.\u5b89\u5168\u306aWooCommerce\u306e\u7d71\u5408<\/p><p>WooCommerce\u306f\u30a2\u30e1\u30ea\u30ab\u3084\u30e8\u30fc\u30ed\u30c3\u30d1\u3067\u975e\u5e38\u306b\u4eba\u6c17\u304c\u3042\u308b\u306e\u3067\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u7d71\u5408\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092\u6b63\u3057\u304f\u51e6\u7406\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u7279\u306b\u6ce8\u6587\u3084\u652f\u6255\u3044\u60c5\u5831\u3092\u6271\u3046\u5834\u5408\u306f\u3001\u3059\u3079\u3066\u306e\u5165\u529b\u3092\u691c\u8a3c\u3057\u3001\u30b5\u30cb\u30bf\u30a4\u30ba\u3057\u3066\u304f\u3060\u3055\u3044\u3002WooCommerce\u306e\u7d44\u307f\u8fbc\u307f\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u652f\u6255\u3044\u30c7\u30fc\u30bf\u3092\u5b89\u5168\u306b\u51e6\u7406\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p><p>\u4f8b\u3048\u3070<\/p><pre class=\"wp-block-code\"><code>$order = wc_get_order($order_id)\uff1b\nif ($order) { { ($order)\n    $total = $order-&gt;get_total()\uff1b\n    \/\/ \u30aa\u30fc\u30c0\u30fc\u3067\u5b89\u5168\u306a\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\n}<\/code><\/pre><p>WooCommerce\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6163\u884c\u3092\u5c0a\u91cd\u3057\u3001\u53d6\u308a\u6271\u3046\u9867\u5ba2\u30c7\u30fc\u30bf\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u78ba\u4fdd\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.33.28-An-illustration-representing-secure-integration-of-WooCommerce-in-WordPress-plugin-development.-The-image-should-include-symbols-like-a-shopping-cart.webp\" alt=\"\" class=\"wp-image-2577\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.33.28-An-illustration-representing-secure-integration-of-WooCommerce-in-WordPress-plugin-development.-The-image-should-include-symbols-like-a-shopping-cart.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.33.28-An-illustration-representing-secure-integration-of-WooCommerce-in-WordPress-plugin-development.-The-image-should-include-symbols-like-a-shopping-cart-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.33.28-An-illustration-representing-secure-integration-of-WooCommerce-in-WordPress-plugin-development.-The-image-should-include-symbols-like-a-shopping-cart-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.33.28-An-illustration-representing-secure-integration-of-WooCommerce-in-WordPress-plugin-development.-The-image-should-include-symbols-like-a-shopping-cart-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.33.28-An-illustration-representing-secure-integration-of-WooCommerce-in-WordPress-plugin-development.-The-image-should-include-symbols-like-a-shopping-cart-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.33.28-An-illustration-representing-secure-integration-of-WooCommerce-in-WordPress-plugin-development.-The-image-should-include-symbols-like-a-shopping-cart-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>15.\u591a\u8981\u7d20\u8a8d\u8a3c\uff08MFA\uff09\u306e\u4f7f\u7528<\/strong><\/p><p>\u591a\u8981\u7d20\u8a8d\u8a3c(MFA)\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u306f\u3001\u7279\u306b\u7ba1\u7406\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306e\u7d20\u6674\u3089\u3057\u3044\u65b9\u6cd5\u3067\u3059\u3002\u591a\u304f\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3001\u4f8b\u3048\u3070 <strong>\u30c7\u30e5\u30aa<\/strong> \u307e\u305f\u306f <strong>\u30b0\u30fc\u30b0\u30eb\u8a8d\u8a3c<\/strong>WordPress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306bMFA\u3092\u7c21\u5358\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u653b\u6483\u8005\u306b\u3088\u308b\u4e0d\u6b63\u30a2\u30af\u30bb\u30b9\u3092\u3088\u308a\u56f0\u96e3\u306b\u3057\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.35.08-An-illustration-representing-multi-factor-authentication-MFA-in-WordPress-security.-The-image-should-include-symbols-like-a-smartphone-padlock-and.webp\" alt=\"\" class=\"wp-image-2578\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.35.08-An-illustration-representing-multi-factor-authentication-MFA-in-WordPress-security.-The-image-should-include-symbols-like-a-smartphone-padlock-and.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.35.08-An-illustration-representing-multi-factor-authentication-MFA-in-WordPress-security.-The-image-should-include-symbols-like-a-smartphone-padlock-and-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.35.08-An-illustration-representing-multi-factor-authentication-MFA-in-WordPress-security.-The-image-should-include-symbols-like-a-smartphone-padlock-and-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.35.08-An-illustration-representing-multi-factor-authentication-MFA-in-WordPress-security.-The-image-should-include-symbols-like-a-smartphone-padlock-and-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.35.08-An-illustration-representing-multi-factor-authentication-MFA-in-WordPress-security.-The-image-should-include-symbols-like-a-smartphone-padlock-and-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.35.08-An-illustration-representing-multi-factor-authentication-MFA-in-WordPress-security.-The-image-should-include-symbols-like-a-smartphone-padlock-and-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>16.\u7570\u306a\u308b\u5730\u57df\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3068\u30c6\u30b9\u30c8<\/strong><\/p><p>\u56fd\u969b\u7684\u306a\u8aad\u8005\u3092\u7372\u5f97\u3059\u308b\u3053\u3068\u3092\u8a08\u753b\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3057\u3001\u3055\u307e\u3056\u307e\u306a\u74b0\u5883\u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\uff1a<\/p><ul class=\"wp-block-list\"><li><strong>\u591a\u8a00\u8a9e\u30b5\u30dd\u30fc\u30c8<\/strong>:\u3042\u306a\u305f\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u7ffb\u8a33\u3057\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u3001__() \u3084 _e() \u306e\u3088\u3046\u306aWordPress\u306e\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n<li><strong>\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e\u53d6\u308a\u6271\u3044<\/strong>:\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u7570\u306a\u308b\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3092\u6b63\u3057\u304f\u51e6\u7406\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li><\/ul><p>\u7570\u306a\u308b\u8a00\u8a9e\u8a2d\u5b9a\u3084\u30b5\u30fc\u30d0\u30fc\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3067\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u3067\u3001\u4e16\u754c\u4e2d\u306e\u30e6\u30fc\u30b6\u30fc\u3068\u306e\u4e92\u63db\u6027\u3092\u78ba\u4fdd\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><p>\u3055\u3089\u306b\u3001\u8cac\u4efb\u3092\u6301\u3063\u3066\u500b\u4eba\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u6271\u3044\u3001\u660e\u78ba\u306a\u540c\u610f\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u8981\u6c42\u306b\u5fdc\u3058\u3066\u30c7\u30fc\u30bf\u3092\u524a\u9664\u307e\u305f\u306f\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3001GDPR\u306e\u9075\u5b88\u3092\u4fdd\u8a3c\u3057\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.36.52-An-illustration-representing-localization-and-multi-region-testing-for-WordPress-plugin-development.-The-image-should-include-symbols-like-a-globe-va.webp\" alt=\"\" class=\"wp-image-2579\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.36.52-An-illustration-representing-localization-and-multi-region-testing-for-WordPress-plugin-development.-The-image-should-include-symbols-like-a-globe-va.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.36.52-An-illustration-representing-localization-and-multi-region-testing-for-WordPress-plugin-development.-The-image-should-include-symbols-like-a-globe-va-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.36.52-An-illustration-representing-localization-and-multi-region-testing-for-WordPress-plugin-development.-The-image-should-include-symbols-like-a-globe-va-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.36.52-An-illustration-representing-localization-and-multi-region-testing-for-WordPress-plugin-development.-The-image-should-include-symbols-like-a-globe-va-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.36.52-An-illustration-representing-localization-and-multi-region-testing-for-WordPress-plugin-development.-The-image-should-include-symbols-like-a-globe-va-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.36.52-An-illustration-representing-localization-and-multi-region-testing-for-WordPress-plugin-development.-The-image-should-include-symbols-like-a-globe-va-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>17.\u6700\u5927\u9650\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u305f\u3081\u306eWordPress\u306e\u8a2d\u5b9a<\/strong><\/p><p>\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4fdd\u8b77\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001WordPress\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3082\u6700\u5927\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u305f\u3081\u306b\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u4ee5\u4e0b\u306b\u3044\u304f\u3064\u304b\u306e\u63d0\u6848\u3092\u7d39\u4ecb\u3057\u307e\u3059\uff1a<\/p><ul class=\"wp-block-list\"><li><strong>\u6a5f\u5bc6\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u5236\u9650<\/strong>:.htaccess \u3092\u4f7f\u7528\u3057\u3066\u3001wp-config.php \u306a\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u9650\u3057\u307e\u3059\u3002<\/li>\n\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6\u306e\u7121\u52b9\u5316<\/strong>:wp-config.php\u306b\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001WordPress\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u304b\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<\/li><\/ul><pre class=\"wp-block-code\"><code>define('DISALLOW_FILE_EDIT', true)\uff1b<\/code><\/pre><ul class=\"wp-block-list\"><li><strong>\u30ed\u30b0\u30a4\u30f3\u8a66\u884c\u3092\u5236\u9650<\/strong>:\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d7\u30e9\u30b0\u30a4\u30f3\u307e\u305f\u306f\u30ab\u30b9\u30bf\u30e0\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u8a66\u884c\u56de\u6570\u3092\u5236\u9650\u3057\u307e\u3059\u3002<\/li><\/ul><p><strong>18.WordPress\u3068\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u66f4\u65b0<\/strong><\/p><p>WordPress\u3001\u30c6\u30fc\u30de\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5e38\u306b\u6700\u65b0\u306e\u72b6\u614b\u306b\u4fdd\u3064\u3053\u3068\u304c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u91cd\u8981\u3067\u3042\u308b\u3053\u3068\u306f\u5468\u77e5\u306e\u4e8b\u5b9f\u3067\u3059\u3002\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306b\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d1\u30c3\u30c1\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u306e\u3067\u3001\u3059\u3079\u3066\u3092\u6700\u65b0\u306e\u72b6\u614b\u306b\u4fdd\u3064\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<br>\u30b5\u30a4\u30c8\u306e\u5b89\u5168\u6027\u3092\u7dad\u6301\u3059\u308b\u305f\u3081\u306b\u3001\u81ea\u52d5\u66f4\u65b0\u3092\u63d0\u4f9b\u3059\u308b\u30de\u30cd\u30fc\u30b8\u30c9\u30fb\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30fb\u30d7\u30ed\u30d0\u30a4\u30c0\u306e\u5229\u7528\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.40.34-An-illustration-representing-the-importance-of-keeping-WordPress-and-plugins-updated.-The-image-should-include-symbols-like-a-refresh-icon-a-shield-.webp\" alt=\"\" class=\"wp-image-2582\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.40.34-An-illustration-representing-the-importance-of-keeping-WordPress-and-plugins-updated.-The-image-should-include-symbols-like-a-refresh-icon-a-shield-.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.40.34-An-illustration-representing-the-importance-of-keeping-WordPress-and-plugins-updated.-The-image-should-include-symbols-like-a-refresh-icon-a-shield--600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.40.34-An-illustration-representing-the-importance-of-keeping-WordPress-and-plugins-updated.-The-image-should-include-symbols-like-a-refresh-icon-a-shield--100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.40.34-An-illustration-representing-the-importance-of-keeping-WordPress-and-plugins-updated.-The-image-should-include-symbols-like-a-refresh-icon-a-shield--300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.40.34-An-illustration-representing-the-importance-of-keeping-WordPress-and-plugins-updated.-The-image-should-include-symbols-like-a-refresh-icon-a-shield--150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.40.34-An-illustration-representing-the-importance-of-keeping-WordPress-and-plugins-updated.-The-image-should-include-symbols-like-a-refresh-icon-a-shield--768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><p><strong>19.\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c6\u30b9\u30c8\u306e\u5b9f\u65bd<\/strong><\/p><p>\u5b9a\u671f\u7684\u306a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fb\u30c6\u30b9\u30c8\u306f\u3001\u653b\u6483\u8005\u3088\u308a\u3082\u5148\u306b\u8106\u5f31\u6027\u3092\u7279\u5b9a\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002 <strong>WPS\u30b9\u30ad\u30e3\u30f3<\/strong> \u3053\u306e\u76ee\u7684\u306b\u306f\u6709\u76ca\u3067\u3059\uff1a<\/p><pre class=\"wp-block-code\"><code># \u8106\u5f31\u6027\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b WPScan \u30b3\u30de\u30f3\u30c9\u306e\u4f8b\nwpscan --url https:\/\/example.com --api-token\u3042\u306a\u305f\u306eAPI_TOKEN<\/code><\/pre><p>\u307e\u305f\u3001\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u3084\u4fb5\u5165\u30c6\u30b9\u30c8\u3092\u5b9f\u65bd\u3059\u308b\u3053\u3068\u3067\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30b3\u30fc\u30c9\u306e\u5f31\u70b9\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.42.22-An-illustration-representing-security-testing-for-WordPress-plugin-development.-The-image-should-include-elements-like-a-magnifying-glass-over-a-compu.webp\" alt=\"\" class=\"wp-image-2583\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.42.22-An-illustration-representing-security-testing-for-WordPress-plugin-development.-The-image-should-include-elements-like-a-magnifying-glass-over-a-compu.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.42.22-An-illustration-representing-security-testing-for-WordPress-plugin-development.-The-image-should-include-elements-like-a-magnifying-glass-over-a-compu-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.42.22-An-illustration-representing-security-testing-for-WordPress-plugin-development.-The-image-should-include-elements-like-a-magnifying-glass-over-a-compu-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.42.22-An-illustration-representing-security-testing-for-WordPress-plugin-development.-The-image-should-include-elements-like-a-magnifying-glass-over-a-compu-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.42.22-An-illustration-representing-security-testing-for-WordPress-plugin-development.-The-image-should-include-elements-like-a-magnifying-glass-over-a-compu-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.42.22-An-illustration-representing-security-testing-for-WordPress-plugin-development.-The-image-should-include-elements-like-a-magnifying-glass-over-a-compu-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><h2 class=\"wp-block-heading\">\u7d50\u8ad6<\/h2><p>WordPress \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u958b\u767a\u3059\u308b\u969b\u306b\u306f\u3001\u5e38\u306b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306b\u5f93\u3046\u3053\u3068\u3067\u3001\u3042\u306a\u305f\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u8105\u5a01\u304b\u3089\u5b88\u308b\u305f\u3081\u306e\u3088\u308a\u826f\u3044\u8a2d\u5099\u304c\u6574\u3044\u307e\u3059\u3002\u305d\u308c\u306f\u7d99\u7d9a\u7684\u306a\u30d7\u30ed\u30bb\u30b9\u306a\u306e\u3067\u3001\u5b66\u3073\u7d9a\u3051\u3001\u66f4\u65b0\u3057\u7d9a\u3051\u3001\u3042\u306a\u305f\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u3088\u308a\u5b89\u5168\u306b\u3059\u308b\u65b9\u6cd5\u3092\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p><p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7b2c\u4e00\u306e\u8003\u3048\u65b9\u3067\u958b\u767a\u3059\u308b\u3053\u3068\u3067\u3001\u5b89\u5fc3\u611f\u3092\u4e0e\u3048\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u306e\u4fe1\u983c\u95a2\u4fc2\u3092\u7bc9\u304d\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u81ea\u4fe1\u3092\u6301\u3063\u3066\u3042\u306a\u305f\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p><p>\u8981\u7d04\u3059\u308b\u3068<\/p><ul class=\"wp-block-list\"><li>nonces\u3092\u4f7f\u7528\u3057\u3001\u5165\u529b\u3092\u691c\u8a3c\u3057\u307e\u3059\u3002<\/li>\n\n<li>\u5b89\u5168\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30a8\u30ea\u3068\u30a8\u30b9\u30b1\u30fc\u30d7\u51fa\u529b<\/li>\n\n<li>\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306f\u614e\u91cd\u306b\u6271\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n<li>\u5b89\u5168\u306aAJAX\u30ea\u30af\u30a8\u30b9\u30c8\u3002<\/li>\n\n<li>\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u5b89\u5168\u306b\u4fdd\u7ba1\u3057\u3001\u6700\u5c0f\u6a29\u9650\u306e\u539f\u5247\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n<li>\u30d6\u30eb\u30fc\u30c8\u30d5\u30a9\u30fc\u30b9\u653b\u6483\u304b\u3089\u4fdd\u8b77\u3057\u3001\u6a5f\u5bc6\u6027\u306e\u9ad8\u3044\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u30ed\u30b0\u306b\u8a18\u9332\u3057\u307e\u3059\u3002<\/li>\n\n<li>\u63a8\u5968\u3055\u308c\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5229\u7528\u3057\u3001MFA\u3092\u6709\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n<li>\u3055\u307e\u3056\u307e\u306a\u8a00\u8a9e\u3001\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3001GDPR\u30b3\u30f3\u30d7\u30e9\u30a4\u30a2\u30f3\u30b9\u3092\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<\/li>\n\n<li>\u5b9a\u671f\u7684\u306a\u66f4\u65b0\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c6\u30b9\u30c8\u306e\u5b9f\u65bd<\/li><\/ul><p>\u3053\u308c\u3089\u306e\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u5b9f\u65bd\u3059\u308b\u3053\u3068\u3067\u3001\u5b89\u5168\u3067\u4fe1\u983c\u6027\u306e\u9ad8\u3044WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.44.38-A-futuristic-high-tech-illustration-representing-WordPress-plugin-security-development.-The-image-should-include-symbols-like-shields-locks-code-sn.webp\" alt=\"\" class=\"wp-image-2584\" srcset=\"https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.44.38-A-futuristic-high-tech-illustration-representing-WordPress-plugin-security-development.-The-image-should-include-symbols-like-shields-locks-code-sn.webp 1024w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.44.38-A-futuristic-high-tech-illustration-representing-WordPress-plugin-security-development.-The-image-should-include-symbols-like-shields-locks-code-sn-600x600.webp 600w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.44.38-A-futuristic-high-tech-illustration-representing-WordPress-plugin-security-development.-The-image-should-include-symbols-like-shields-locks-code-sn-100x100.webp 100w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.44.38-A-futuristic-high-tech-illustration-representing-WordPress-plugin-security-development.-The-image-should-include-symbols-like-shields-locks-code-sn-300x300.webp 300w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.44.38-A-futuristic-high-tech-illustration-representing-WordPress-plugin-security-development.-The-image-should-include-symbols-like-shields-locks-code-sn-150x150.webp 150w, https:\/\/www.openbyt.com\/wp-content\/uploads\/2024\/10\/DALL\u00b7E-2024-10-14-11.44.38-A-futuristic-high-tech-illustration-representing-WordPress-plugin-security-development.-The-image-should-include-symbols-like-shields-locks-code-sn-768x768.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>","protected":false},"excerpt":{"rendered":"<p>WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u969b\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306f\u6700\u91cd\u8981\u8ab2\u984c\u3067\u3059\u3002WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u3001\u3057\u3070\u3057\u3070\u653b\u6483\u8005\u306e\u683c\u597d\u306e\u6a19\u7684\u3068\u306a\u308a\u307e\u3059\u3002<\/p>","protected":false},"author":1,"featured_media":2605,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62,57],"tags":[232,230,231,229],"class_list":["post-1965","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugin-development","category-plugins-theme","tag-cross-site-scripting-prevention","tag-data-sanitization-and-validation","tag-multi-factor-authentication","tag-wordpress-plugin-security",""],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts\/1965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/comments?post=1965"}],"version-history":[{"count":9,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts\/1965\/revisions"}],"predecessor-version":[{"id":3185,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/posts\/1965\/revisions\/3185"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/media\/2605"}],"wp:attachment":[{"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/media?parent=1965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/categories?post=1965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.openbyt.com\/ja\/wp-json\/wp\/v2\/tags?post=1965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}