{"id":47032,"date":"2024-12-02T08:07:13","date_gmt":"2024-12-02T00:07:13","guid":{"rendered":"https:\/\/fwq.ai\/blog\/47032\/"},"modified":"2024-12-02T08:07:13","modified_gmt":"2024-12-02T00:07:13","slug":"php%e7%bd%91%e7%bb%9c%e7%bc%96%e7%a8%8b%e6%8c%87%e5%8d%97%ef%bc%9a%e5%ae%89%e5%85%a8%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9%e5%92%8c%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/47032\/","title":{"rendered":"php\u7f51\u7edc\u7f16\u7a0b\u6307\u5357\uff1a\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>php\u7f51\u7edc\u7f16\u7a0b\u6307\u5357\uff1a\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5<\/h1>\n<p>\u7f16\u7a0b\u5e76\u4e0d\u662f\u4e00\u4e2a\u673a\u68b0\u6027\u7684\u5de5\u4f5c\uff0c\u800c\u662f\u9700\u8981\u6709\u601d\u8003\uff0c\u6709\u521b\u65b0\u7684\u5de5\u4f5c\uff0c\u8bed\u6cd5\u662f\u56fa\u5b9a\u7684\uff0c\u4f46\u89e3\u51b3\u95ee\u9898\u7684\u601d\u8def\u5219\u662f\u4f9d\u9760\u4eba\u7684\u601d\u7ef4\uff0c\u8fd9\u5c31\u9700\u8981\u6211\u4eec\u575a\u6301\u5b66\u4e60\u548c\u66f4\u65b0\u81ea\u5df1\u7684\u77e5\u8bc6\u3002\u4eca\u5929\u7c73\u4e91\u5c31\u6574\u7406\u5206\u4eab\u300aphp\u7f51\u7edc\u7f16\u7a0b\u6307\u5357\uff1a\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5\u300b\uff0c\u6587\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u70b9\u4e3b\u8981\u5305\u62ec\uff0c\u5982\u679c\u4f60\u5bf9\u6587\u7ae0\u65b9\u9762\u7684\u77e5\u8bc6\u70b9\u611f\u5174\u8da3\uff0c\u5c31\u4e0d\u8981\u9519\u8fc7\u7c73\u4e91\uff0c\u5728\u8fd9\u53ef\u4ee5\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u52a9\u529b\u5f00\u53d1\u80fd\u529b\u7684\u63d0\u5347\u3002<\/p>\n<p>\u5728 PHP \u7f51\u7edc\u7f16\u7a0b\u4e2d\uff0c\u786e\u4fdd\u4ee3\u7801\u5b89\u5168\u81f3\u5173\u91cd\u8981\u3002\u8981\u6784\u5efa\u5b89\u5168\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5fc5\u987b\uff1a\u4f7f\u7528 HTTPS \u534f\u8bae\u8fdb\u884c\u52a0\u5bc6\u6570\u636e\u4f20\u8f93\uff1b\u9a8c\u8bc1\u7528\u6237\u8f93\u5165\uff0c\u9632\u6b62\u6076\u610f\u653b\u51fb\uff1b\u8bbe\u7f6e\u5b89\u5168\u6807\u5934\uff0c\u4fdd\u62a4\u5e94\u7528\u7a0b\u5e8f\u514d\u53d7\u653b\u51fb\uff1b\u907f\u514d\u9519\u8bef\u62a5\u544a\uff0c\u9632\u6b62\u4fe1\u606f\u6cc4\u9732\uff1b\u9650\u5236\u6587\u4ef6\u4e0a\u4f20\u5927\u5c0f\uff0c\u9632\u6b62\u6076\u610f\u6587\u4ef6\u4e0a\u4f20\uff1b\u4f7f\u7528\u9a8c\u8bc1\u7801\u963b\u6b62\u81ea\u52a8\u5316\u653b\u51fb\uff0c\u5982\u673a\u5668\u4eba\u8868\u5355\u586b\u5199\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241025\/1729861060671b95c4634cf.jpg\" class=\"aligncenter\" title=\"php\u7f51\u7edc\u7f16\u7a0b\u6307\u5357\uff1a\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5\u63d2\u56fe\" alt=\"php\u7f51\u7edc\u7f16\u7a0b\u6307\u5357\uff1a\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5\u63d2\u56fe\" \/><\/p>\n<p><strong>PHP \u7f51\u7edc\u7f16\u7a0b\u6307\u5357\uff1a\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5<\/strong><\/p>\n<p><strong>\u4ecb\u7ecd<\/strong><\/p>\n<p>\u5728 PHP \u4e2d\u8fdb\u884c\u7f51\u7edc\u7f16\u7a0b\u65f6\uff0c\u786e\u4fdd\u4ee3\u7801\u7684\u5b89\u5168\u81f3\u5173\u91cd\u8981\u3002\u672c\u6587\u6982\u8ff0\u4e86 PHP \u7f51\u7edc\u7f16\u7a0b\u4e2d\u5e38\u89c1\u7684\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u4ee5\u5e2e\u52a9\u60a8\u6784\u5efa\u5b89\u5168\u53ef\u9760\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p><strong>\u4f7f\u7528 HTTPS \u534f\u8bae<\/strong><\/p>\n<p>\u59cb\u7ec8\u4f7f\u7528 HTTPS \u534f\u8bae\uff0c\u8be5\u534f\u8bae\u4f7f\u7528 SSL\/TLS \u52a0\u5bc6\u4f20\u8f93\u6570\u636e\u3002\u8fd9\u53ef\u9632\u6b62\u7a83\u542c\u653b\u51fb\uff0c\u5e76\u786e\u4fdd\u654f\u611f\u4fe1\u606f\u5982\u5bc6\u7801\u548c\u4e2a\u4eba\u6570\u636e\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u4e0d\u4f1a\u88ab\u622a\u53d6\u3002<\/p>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>&lt;?php\n\/\/ \u4f7f\u7528 HTTPS \u534f\u8bae\n$url = 'https:\/\/example.com\/';<\/pre>\n<p><strong>\u9a8c\u8bc1\u7528\u6237\u8f93\u5165<\/strong><\/p>\n<p>\u4ece\u7528\u6237\u63a5\u6536\u8f93\u5165\u65f6\uff0c\u8bf7\u59cb\u7ec8\u4f7f\u7528\u8fc7\u6ee4\u548c\u9a8c\u8bc1\u51fd\u6570\u6765\u6e05\u9664\u6709\u5bb3\u5b57\u7b26\u3002\u8fd9\u53ef\u4ee5\u9632\u6b62 SQL \u6ce8\u5165\u3001\u8de8\u7ad9\u70b9\u811a\u672c (XSS) \u653b\u51fb\u548c\u4ee3\u7801\u6ce8\u5165\u3002<\/p>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>&lt;?php\n\/\/ \u9a8c\u8bc1\u7528\u6237\u8f93\u5165\n$username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_STRING);<\/pre>\n<p><strong>\u8bbe\u7f6e\u5b89\u5168\u6807\u5934<\/strong><\/p>\n<p>\u5728 HTTP \u54cd\u5e94\u4e2d\u8bbe\u7f6e\u5b89\u5168\u6807\u5934\u53ef\u9632\u6b62\u6d4f\u89c8\u5668\u4e2d\u7684\u653b\u51fb\u3002\u8fd9\u4e9b\u6807\u5934\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>Content-Security-Policy (CSP)<\/li>\n<li>X-XSS-Protection<\/li>\n<li>X-Content-Type-Options<\/li>\n<\/ul>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>&lt;?php\n\/\/ \u8bbe\u7f6e X-XSS-Protection \u6807\u5934\nheader(\"X-XSS-Protection: 1; mode=block\");<\/pre>\n<p><strong>\u907f\u514d\u9519\u8bef\u62a5\u544a<\/strong><\/p>\n<p>\u9519\u8bef\u62a5\u544a\u4f1a\u5411\u653b\u51fb\u8005\u900f\u9732\u6709\u5173\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u654f\u611f\u4fe1\u606f\u3002\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u8bf7\u7981\u7528\u9519\u8bef\u62a5\u544a\uff0c\u5e76\u5728\u65e5\u5fd7\u6587\u4ef6\u4e2d\u8bb0\u5f55\u9519\u8bef\u3002<\/p>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>&lt;?php\n\/\/ \u7981\u7528\u9519\u8bef\u62a5\u544a\nerror_reporting(0);<\/pre>\n<p><strong>\u9650\u5236\u6587\u4ef6\u4e0a\u4f20\u5927\u5c0f<\/strong><\/p>\n<p>\u9650\u5236\u6587\u4ef6\u4e0a\u4f20\u5927\u5c0f\u53ef\u4ee5\u9632\u6b62\u9ed1\u5ba2\u4e0a\u4f20\u6076\u610f\u6587\u4ef6\u3002\u4f7f\u7528 <code>ini_set()<\/code> \u51fd\u6570\u6765\u8bbe\u7f6e\u6700\u5927\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f\u3002<\/p>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>&lt;?php\n\/\/ \u8bbe\u7f6e\u6700\u5927\u4e0a\u4f20\u5927\u5c0f\u4e3a 1MB\nini_set('upload_max_filesize', '1M');<\/pre>\n<p><strong>\u4f7f\u7528\u9a8c\u8bc1\u7801<\/strong><\/p>\n<p>\u9a8c\u8bc1\u7801\u53ef\u4ee5\u5e2e\u52a9\u9632\u6b62\u81ea\u52a8\u5316\u653b\u51fb\uff0c\u5982\u673a\u5668\u4eba\u586b\u5145\u8868\u5355\u6216\u731c\u6d4b\u5bc6\u7801\u3002\u4f7f\u7528 PHP \u5185\u7f6e\u7684 <code>imagepng()<\/code> \u51fd\u6570\u751f\u6210\u9a8c\u8bc1\u7801\u56fe\u50cf\u3002<\/p>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>&lt;?php\n\/\/ \u751f\u6210\u9a8c\u8bc1\u7801\u56fe\u50cf\n$image = imagecreate(100, 30);\nimagettftext($image, 20, 0, 10, 20, imagecolorallocate($image, 0, 0, 0), 'fonts\/verdana.ttf', 'ABCD');\nimagepng($image);\nimagedestroy($image);<\/pre>\n<p><strong>\u5b9e\u8df5\u6848\u4f8b<\/strong><\/p>\n<p>\u4ee5\u4e0b\u662f\u4f7f\u7528 PHP \u5b9e\u73b0\u5b89\u5168\u7f51\u7edc\u7f16\u7a0b\u7684\u5b9e\u8df5\u6848\u4f8b\uff1a<\/p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u767b\u5f55\u811a\u672c\uff0c\u4f7f\u7528\u5b89\u5168\u6807\u5934\u3001\u9a8c\u8bc1\u7801\u548c\u9a8c\u8bc1\u8fc7\u7684\u7528\u6237\u8f93\u5165\uff1a<\/p>\n<p><strong>\u4ee3\u7801\uff1a<\/strong><\/p>\n<pre>&lt;?php\n\/\/ \u8bbe\u7f6e\u5b89\u5168\u6807\u5934\nheader(\"X-XSS-Protection: 1; mode=block\");\n\n\/\/ \u521d\u59cb\u5316\u4f1a\u8bdd\nsession_start();\n\nif ($_SERVER['REQUEST_METHOD'] === 'POST') {\n  \/\/ \u9a8c\u8bc1\u7528\u6237\u8f93\u5165\n  $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_STRING);\n  $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_STRING);\n\n  \/\/ \u9a8c\u8bc1\u9a8c\u8bc1\u7801\n  if (isset($_SESSION['captcha']) &amp;&amp; $_SESSION['captcha'] === $_POST['captcha']) {\n    \/\/ \u9a8c\u8bc1\u7528\u6237\u51ed\u636e\n    \/\/ ...\n\n    \/\/ \u8bbe\u7f6e\u4f1a\u8bdd\u53d8\u91cf\n    $_SESSION['authenticated'] = true;\n\n    \/\/ \u91cd\u5b9a\u5411\u81f3\u4e3b\u9875\n    header('Location: \/index.php');\n    exit;\n  } else {\n    \/\/ \u663e\u793a\u9519\u8bef\u6d88\u606f\n    echo '\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e\u3002';\n  }\n}\n\n\/\/ \u751f\u6210\u9a8c\u8bc1\u7801\n$captcha = substr(md5(uniqid()), 0, 6);\n$_SESSION['captcha'] = $captcha;\n\n?&gt;\n\n&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;body&gt;\n  &lt;h1&gt;\u767b\u5f55&lt;\/h1&gt;\n  &lt;form action=\"&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;\" method=\"post\"&gt;\n    &lt;label for=\"username\"&gt;\u7528\u6237\u540d\uff1a&lt;\/label&gt;\n    &lt;input type=\"text\" id=\"username\" name=\"username\"&gt;\n    &lt;br&gt;\n    &lt;label for=\"password\"&gt;\u5bc6\u7801\uff1a&lt;\/label&gt;\n    &lt;input type=\"password\" id=\"password\" name=\"password\"&gt;\n    &lt;br&gt;\n    &lt;label for=\"captcha\"&gt;\u9a8c\u8bc1\u7801\uff1a&lt;\/label&gt;\n    &lt;input type=\"text\" id=\"captcha\" name=\"captcha\"&gt;\n    &lt;img src=\"captcha.php\" alt=\"\u9a8c\u8bc1\u7801\"&gt;\n    &lt;br&gt;\n    &lt;input type=\"submit\" value=\"\u767b\u5f55\"&gt;\n  &lt;\/form&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n<p>\u901a\u8fc7\u9075\u5faa\u8fd9\u4e9b\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u60a8\u53ef\u4ee5\u7f16\u5199\u51fa\u5b89\u5168\u53ef\u9760\u7684 PHP \u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u7406\u8bba\u8981\u638c\u63e1\uff0c\u5b9e\u64cd\u4e0d\u80fd\u843d\uff01\u4ee5\u4e0a\u5173\u4e8e\u300aphp\u7f51\u7edc\u7f16\u7a0b\u6307\u5357\uff1a\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5\u300b\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u5927\u5bb6\u90fd\u638c\u63e1\u4e86\u5427\uff01\u5982\u679c\u60f3\u8981\u7ee7\u7eed\u63d0\u5347\u81ea\u5df1\u7684\u80fd\u529b\uff0c\u90a3\u4e48\u5c31\u6765\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\u5427\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>php\u7f51\u7edc\u7f16\u7a0b\u6307\u5357\uff1a\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5 \u7f16\u7a0b\u5e76\u4e0d\u662f\u4e00\u4e2a\u673a\u68b0\u6027\u7684\u5de5\u4f5c\uff0c\u800c\u662f\u9700\u8981\u6709\u601d\u8003\uff0c\u6709\u521b\u65b0\u7684\u5de5\u4f5c\uff0c\u8bed\u6cd5\u662f\u56fa\u5b9a\u7684\uff0c\u4f46\u89e3\u51b3\u95ee\u9898\u7684\u601d\u8def\u5219\u662f\u4f9d\u9760\u4eba\u7684\u601d\u7ef4\uff0c\u8fd9\u5c31\u9700\u8981\u6211\u4eec\u575a\u6301\u5b66\u4e60\u548c\u66f4\u65b0\u81ea\u5df1\u7684\u77e5\u8bc6\u3002\u4eca\u5929\u7c73\u4e91\u5c31\u6574\u7406\u5206\u4eab\u300aphp\u7f51\u7edc\u7f16\u7a0b\u6307\u5357\uff1a\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5\u300b\uff0c\u6587\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u70b9\u4e3b\u8981\u5305\u62ec\uff0c\u5982\u679c\u4f60\u5bf9\u6587\u7ae0\u65b9\u9762\u7684\u77e5\u8bc6\u70b9\u611f\u5174\u8da3\uff0c\u5c31\u4e0d\u8981\u9519\u8fc7\u7c73\u4e91\uff0c\u5728\u8fd9\u53ef\u4ee5\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u52a9\u529b\u5f00\u53d1\u80fd\u529b\u7684\u63d0\u5347\u3002 \u5728 PHP \u7f51\u7edc\u7f16\u7a0b\u4e2d\uff0c\u786e\u4fdd\u4ee3\u7801\u5b89\u5168\u81f3\u5173\u91cd\u8981\u3002\u8981\u6784\u5efa\u5b89\u5168\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5fc5\u987b\uff1a\u4f7f\u7528 HTTPS \u534f\u8bae\u8fdb\u884c\u52a0\u5bc6\u6570\u636e\u4f20\u8f93\uff1b\u9a8c\u8bc1\u7528\u6237\u8f93\u5165\uff0c\u9632\u6b62\u6076\u610f\u653b\u51fb\uff1b\u8bbe\u7f6e\u5b89\u5168\u6807\u5934\uff0c\u4fdd\u62a4\u5e94\u7528\u7a0b\u5e8f\u514d\u53d7\u653b\u51fb\uff1b\u907f\u514d\u9519\u8bef\u62a5\u544a\uff0c\u9632\u6b62\u4fe1\u606f\u6cc4\u9732\uff1b\u9650\u5236\u6587\u4ef6\u4e0a\u4f20\u5927\u5c0f\uff0c\u9632\u6b62\u6076\u610f\u6587\u4ef6\u4e0a\u4f20\uff1b\u4f7f\u7528\u9a8c\u8bc1\u7801\u963b\u6b62\u81ea\u52a8\u5316\u653b\u51fb\uff0c\u5982\u673a\u5668\u4eba\u8868\u5355\u586b\u5199\u3002 PHP \u7f51\u7edc\u7f16\u7a0b\u6307\u5357\uff1a\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5 \u4ecb\u7ecd \u5728 PHP \u4e2d\u8fdb\u884c\u7f51\u7edc\u7f16\u7a0b\u65f6\uff0c\u786e\u4fdd\u4ee3\u7801\u7684\u5b89\u5168\u81f3\u5173\u91cd\u8981\u3002\u672c\u6587\u6982\u8ff0\u4e86 PHP \u7f51\u7edc\u7f16\u7a0b\u4e2d\u5e38\u89c1\u7684\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u4ee5\u5e2e\u52a9\u60a8\u6784\u5efa\u5b89\u5168\u53ef\u9760\u7684\u5e94\u7528\u7a0b\u5e8f\u3002 \u4f7f\u7528 HTTPS \u534f\u8bae \u59cb\u7ec8\u4f7f\u7528 HTTPS \u534f\u8bae\uff0c\u8be5\u534f\u8bae\u4f7f\u7528 SSL\/TLS \u52a0\u5bc6\u4f20\u8f93\u6570\u636e\u3002\u8fd9\u53ef\u9632\u6b62\u7a83\u542c\u653b\u51fb\uff0c\u5e76\u786e\u4fdd\u654f\u611f\u4fe1\u606f\u5982\u5bc6\u7801\u548c\u4e2a\u4eba\u6570\u636e\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u4e0d\u4f1a\u88ab\u622a\u53d6\u3002 \u4ee3\u7801\u793a\u4f8b\uff1a &lt;?php \/\/ \u4f7f\u7528 HTTPS \u534f\u8bae $url = &#8216;https:\/\/example.com\/&#8217;; \u9a8c\u8bc1\u7528\u6237\u8f93\u5165 \u4ece\u7528\u6237\u63a5\u6536\u8f93\u5165\u65f6\uff0c\u8bf7\u59cb\u7ec8\u4f7f\u7528\u8fc7\u6ee4\u548c\u9a8c\u8bc1\u51fd\u6570\u6765\u6e05\u9664\u6709\u5bb3\u5b57\u7b26\u3002\u8fd9\u53ef\u4ee5\u9632\u6b62 SQL \u6ce8\u5165\u3001\u8de8\u7ad9\u70b9\u811a\u672c (XSS) \u653b\u51fb\u548c\u4ee3\u7801\u6ce8\u5165\u3002 \u4ee3\u7801\u793a\u4f8b\uff1a &lt;?php \/\/ \u9a8c\u8bc1\u7528\u6237\u8f93\u5165 $username = filter_input(INPUT_POST, &#8216;username&#8217;, FILTER_SANITIZE_STRING); \u8bbe\u7f6e\u5b89\u5168\u6807\u5934 \u5728 HTTP \u54cd\u5e94\u4e2d\u8bbe\u7f6e\u5b89\u5168\u6807\u5934\u53ef\u9632\u6b62\u6d4f\u89c8\u5668\u4e2d\u7684\u653b\u51fb\u3002\u8fd9\u4e9b\u6807\u5934\u5305\u62ec\uff1a Content-Security-Policy (CSP) X-XSS-Protection X-Content-Type-Options [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-47032","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/47032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=47032"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/47032\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=47032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=47032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=47032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}