{"id":2648,"date":"2023-08-28T10:52:52","date_gmt":"2023-08-28T02:52:52","guid":{"rendered":"https:\/\/www.tra56.com\/?p=2648"},"modified":"2023-08-28T10:52:52","modified_gmt":"2023-08-28T02:52:52","slug":"2648","status":"publish","type":"post","link":"https:\/\/www.tra56.com\/2648.html","title":{"rendered":"\u89e3\u6790\u767e\u5ea6\u641c\u7d22\u7ed3\u679c\u94fe\u63a5\u7684url\uff0c\u83b7\u53d6\u771f\u6b63\u7684url"},"content":{"rendered":"

\u901a\u5e38\uff0c\u5728\u767e\u5ea6\u8f93\u5165\u5173\u952e\u8bcd\u641c\u7d22\u51fa\u73b0\u7684\u5217\u8868\u9875\uff0c\u70b9\u51fb\u76ee\u6807\u94fe\u63a5\uff0c\u7136\u800c\u8df3\u8f6c\u7684\u65f6\u5019\u5374\u662f\u767e\u5ea6\u5730\u5740\uff0c\u7ecf\u8fc7\u767e\u5ea6\u89e3\u6790\uff0c\u624d\u771f\u7684\u8df3\u5230\u76ee\u6807\u9875\u9762\u3002<\/p>\n

\u5728SEO\u4e2d\uff0c\u7ecf\u5e38\u9700\u8981\u770b\u4e0b\u81ea\u5df1\u7684\u7f51\u7ad9\u6392\u540d\uff0c\u53c8\u4e0d\u60f3\u624b\u52a8\u6bcf\u5929\u624b\u52a8\u53bb\u70b9\uff0c\u53ef\u7528\u4ee5\u4e0b\u65b9\u6cd5\u53bb\u5f97\u5230\u76ee\u6807\u5730\u5740\u3002<\/p>\n

\u539f\u7406\u76f8\u5f53\u7684\u7b80\u5355\uff1a\u6a21\u62df\u8bf7\u6c42\uff0c\u5f97\u5230\u771f\u6b63\u7684\u5730\u5740\u3002<\/p>\n

<?php\r\n$url = "http:\/\/www.baidu.com\/link?url=nS2MGJqjJ4zBBpC8yDF8xDh8vibi1lVeE7gGr9UONBu";\r\n\r\n$info = parse_url($url);\r\n$fp = fsockopen($info['host'], 80,$errno, $errstr, 30);\r\nfputs($fp,"GET {$info['path']}?{$info['query']} HTTP\/1.1\\r\\n");\r\nfputs($fp, "Host: {$info['host']}\\r\\n");\r\nfputs($fp, "Connection: close\\r\\n\\r\\n");\r\n$rewrite = '';\r\nwhile(!feof($fp)) {\r\n    $line = fgets($fp);\r\n    if($line != "\\r\\n" ) {\r\n        if(strpos($line,'Location:') !== false) {\r\n            $rewrite = str_replace(array("\\r","\\n","Location: "),'',$line);\r\n        }\r\n    }else {\r\n        break;\r\n    }\r\n}\r\nvar_dump($rewrite); \/\/\u7ed3\u679c\u663e\u793a\uff1astring(22) "http:\/\/www.google.com\/" \r\n?><\/pre>\n

\u5c06http:\/\/www.baidu.com\/link?url=nS2MGJqjJ4zBBpC8yDF8xDh8vibi1lVeE7gGr9UONBu\u89e3\u6790\u4e3ahttp:\/\/www.google.com\/<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

\u901a\u5e38\uff0c\u5728\u767e\u5ea6\u8f93\u5165\u5173\u952e\u8bcd\u641c\u7d22\u51fa\u73b0\u7684\u5217\u8868\u9875\uff0c\u70b9\u51fb\u76ee\u6807\u94fe\u63a5\uff0c\u7136\u800c\u8df3\u8f6c\u7684\u65f6\u5019\u5374\u662f\u767e\u5ea6\u5730\u5740\uff0c\u7ecf\u8fc7\u767e\u5ea6\u89e3\u6790\uff0c\u624d\u771f\u7684\u8df3\u5230\u76ee\u6807 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,92],"tags":[],"class_list":["post-2648","post","type-post","status-publish","format-standard","hentry","category-php","category-phpcode"],"_links":{"self":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/2648"}],"collection":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/comments?post=2648"}],"version-history":[{"count":1,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/2648\/revisions"}],"predecessor-version":[{"id":2649,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/posts\/2648\/revisions\/2649"}],"wp:attachment":[{"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/media?parent=2648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/categories?post=2648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tra56.com\/wp-json\/wp\/v2\/tags?post=2648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}