{"id":97151,"date":"2020-05-04T11:47:15","date_gmt":"2020-05-04T03:47:15","guid":{"rendered":"http:\/\/4563.org\/?p=97151"},"modified":"2020-05-04T11:47:15","modified_gmt":"2020-05-04T03:47:15","slug":"pixabay-%e5%8f%8d%e7%88%ac%e5%a5%bd%e5%8e%89%e5%ae%b3%ef%bc%8c%e6%b5%8f%e8%a7%88%e5%99%a8%e8%83%bd%e8%ae%bf%e9%97%ae%ef%bc%8c%e5%a4%8d%e5%88%b6%e6%89%80%e6%9c%89-headers-%e7%94%a8-curl-%e6%8a%93","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=97151","title":{"rendered":"pixabay \u53cd\u722c\u597d\u5389\u5bb3\uff0c\u6d4f\u89c8\u5668\u80fd\u8bbf\u95ee\uff0c\u590d\u5236\u6240\u6709 headers \u7528 curl \u6293\u53d6\uff0c\u76f4\u63a5 403\uff0c\u597d\u795e\u5947\uff01"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  pixabay \u53cd\u722c\u597d\u5389\u5bb3\uff0c\u6d4f\u89c8\u5668\u80fd\u8bbf\u95ee\uff0c\u590d\u5236\u6240\u6709 headers \u7528 curl \u6293\u53d6\uff0c\u76f4\u63a5 403\uff0c\u597d\u795e\u5947\uff01               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kisshere <\/span>  <span><i><\/i> 74<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e0d\u80fd\u5916\u51fa\uff0c\u5728\u5bb6\u95f2\u6765\u65e0\u4e8b\u51c6\u5907\u5199\u722c\u866b\u7ec3\u624b\uff0c\u9009\u4e86\u4e2a pixabay.com ,\u6d4f\u89c8\u5668\u6b63\u5e38\u8bbf\u95ee\uff0c\u590d\u5236\u6d4f\u89c8\u5668 headers\uff0c\u7528 curl \u6293\u53d6\u9875\u9762\u5185\u5bb9\uff1a<\/p>\n<pre><code>&lt;?php     $ch = curl_init('https:\/\/pixabay.com');     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);     curl_setopt($ch, CURLOPT_HEADER, true);     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);     curl_setopt($ch, CURLOPT_FOLLOWLOCATION,TRUE);     curl_setopt($ch, CURLOPT_HTTPHEADER, array(         \"accept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng;q=0.8,application\/signed-exchange;v=b3\",         \"Accept-Language:en-US,en;q=0.5\",         \"Accept-encoding: identity\",         \"User-agent: Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/74.0.3729.131 Safari\/537.36\",     ));     $a = curl_exec($ch);     curl_close($ch);     echo $a; ?&gt; <\/code><\/pre>\n<p>\u76f4\u63a5\u8fd4\u56de cloudflare \u7684 403\uff0c\u8fd9\u662f\u7528\u4e86\u4ec0\u4e48\u795e\u5947\u7684\u6280\u672f\uff1f\u6211\u6d4f\u89c8\u5668\u90fd\u80fd\u6b63\u5e38\u8bbf\u95ee\u8bc1\u660e ip \u6ca1\u88ab ban<\/p>\n<p>\u6211\u662f php \u5c0f\u767d\uff0c\u5e0c\u671b\u5927\u795e\u4e0d\u541d\u8d50\u6559<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"908846\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : webshe11 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u641e\u4e2a BurpSuite \u6293\u5305\uff0c\u770b\u770b\u5230\u5e95\u4e00\u6837\u4e0d\u4e00\u6837                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"908847\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ClarkAbe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6355\u83b7\u670d\u52a1\u7aef SetCookie \u7136\u540e\u7528\u5e26 CfCookie \u7684\u8bf7\u6c42\u518d\u6b21&#8230;..                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"908848\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : kisshere <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ClarkAbe \u6d4f\u89c8\u5668\u6e05\u7a7a cookie \u4e0d\u5e26 referer \u76f4\u63a5\u8bbf\u95ee\uff0c\u8fd8\u662f\u80fd\u6b63\u5e38\u8bbf\u95ee pixabay\uff0c\u7528 curl \u5c31\u4e0d\u884c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"908849\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chzzzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u65f6\u5019\u6211\u6302\u68af\u8bbf\u95ee\u4e5f\u4f1a\u88ab 403                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"908850\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tqyq88 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6d4b\u8bd5\u901a\u8fc7<br \/>curl &#8216;https:\/\/pixabay.com\/&#8217; -H &#8216;authority: pixabay.com&#8217; -H &#8216;cache-control: max-age=0&#8217; -H &#8216;upgrade-insecure-requests: 1&#8217; -H &#8216;user-agent: Mozilla\/5.0 (Windows NT 10.0; WOW64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/78.0.3904.108 Safari\/537.36&#8217; -H &#8216;sec-fetch-user: ?1&#8217; -H &#8216;accept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3&#8217; -H &#8216;sec-fetch-site: cross-site&#8217; -H &#8216;sec-fetch-mode: navigate&#8217; -H &#8216;referer: https:\/\/v2ex.com\/t\/640340&#8217; -H &#8216;accept-language: zh-CN,zh;q=0.9&#8217; -H &#8216;cookie: __cfduid=d449a6f26015565933edbff1e02f115151580005222; anonymous_user_id=f886998b-0a14-45fb-a0f4-77c58f2f627b; _ga=GA1.2.1192310497.1580005225; _gid=GA1.2.1957918665.1580005225; _gat_UA-20223345-1=1; is_human=1; _sp_id.aded=c8cdb6f1-c436-4cd6-8434-7055755d8aba.1580005226.1.1580005226.1580005226.5a63ed0f-69dc-4111-ba9b-a09f3f22a098; _sp_ses.aded=*; client_width=1399&#8217;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"908851\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 0x400 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bd5\u8bd5 https:\/\/couponbirds.com                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"908852\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : baobao1270 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bf4\u4e0d\u5b9a\u662f Cookie \u6bcf\u6b21\u8bf7\u6c42\u5237\u65b0\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"908853\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : kisshere <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tqyq88 \u6211\u8fd9\u513f\u8fd8\u662f 403                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"908854\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : bloggergo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u80fd\u662f\u7f51\u7ad9\u4f7f\u7528\u4e86 cloudflare \u7684\u9632\u76d7\u94fe\u4fdd\u62a4\uff0c\u9700\u8981\u68c0\u6d4b referer \u540c\u6e90\u6216\u8005\u7a7a referer \u4e5f\u53ef\u4ee5\uff0c\u5176\u4ed6\u7684\u57df\u540d\u4f1a 403\uff0c\u8fd8\u6709 curl \u7684&#8221;Accept-encoding: identity&#8221;\u8fd9\u4e2a\u548c\u7528\u6237\u6d4f\u89c8\u5668\u6709\u4e0d\u540c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>pixabay \u53cd\u722c\u597d\u5389\u5bb3\uff0c\u6d4f\u89c8\u5668&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/97151"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=97151"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/97151\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=97151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=97151"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=97151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}