{"id":29843,"date":"2020-02-12T09:25:43","date_gmt":"2020-02-12T01:25:43","guid":{"rendered":"http:\/\/4563.org\/?p=29843"},"modified":"2020-02-12T09:25:43","modified_gmt":"2020-02-12T01:25:43","slug":"%e6%b1%82%e5%8a%a9%ef%bc%9acloudflare%e7%9c%9f%e5%ae%9eip%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=29843","title":{"rendered":"\u6c42\u52a9\uff1acloudflare\u771f\u5b9eip\u5206\u6790"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>yaren<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 10:54:53\t<\/p>\n<h3>\u6c42\u52a9\uff1acloudflare\u771f\u5b9eip\u5206\u6790<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 yaren \u4e8e 2020-1-8 23:35 \u7f16\u8f91 <\/p>\n<p> \u6700\u8fd1\u7528\u4e86CF\u53d1\u73b0\u6709\u4e2aVPS\u4e0a\u7684\u51e0\u4e2a\u7ad9\u70b9\uff0c\u90fd\u906d\u53d7\u4e00\u4e2a\u4e0d\u660e\u7684\u91c7\u96c6\u6216\u8005bot\uff1a<br \/>  \u6211nginx\u4e0a\u65e5\u5fd7\u683c\u5f0f\u662f ( nginx with http_realip_module ):<\/p>\n<p>  log_format main &#8216;$remote_addr &#8211; $remote_user [$time_local] \u201c$request\u201d \u2019<br \/>  &#8216;$status $body_bytes_sent \u201c$http_referer\u201d \u2019 request_time: &#8216;&quot;$request_time&quot; \u2019 upstream_response_time &#8216;&quot;$upstream_response_time&quot; \u2019<br \/>  &#8216;&quot;$http_user_agent&quot; http_x_forwarded_for: \u201c$http_x_forwarded_for\u201d \u2019 host: &#8216;&quot;$host&quot; \u2019 http_cf_connecting_ip: &#8216;&quot;$http_cf_connecting_ip&quot; \u2019 ;<\/p>\n<p>  \u7136\u540e\u53d1\u73b0\u5927\u91cf\u8bf7\u6c42\u65e5\u5fd7\u5982\uff1a<\/p>\n<p>  172.69.33.99 &#8211; &#8211;  \u201cGET \/xx\/ HTTP\/1.1\u201d 200 13962 \u201chttp:\/\/cc.com\/xx\/\u201d request_time:\u201c0.002\u201d upstream_response_time&quot;0.002&quot; \u201cWordPress\/5.3.2; http:\/\/cc.com\u201d http_x_forwarded_for: \u201c200.200.200.200\u201d host:\u201ccc.com\u201d http_cf_connecting_ip:\u201c200.200.200.200\u201d<\/p>\n<p>  \u5947\u602a\u7684\u95ee\u9898\u6709\u4e24\u4e2a\uff1a<br \/>  1http_x_forwarded_for and http_cf_connecting_ip \u8bb0\u5f55\u7684ip (200.200.200.200 ) \u4e3a\u4ec0\u4e48\u662f\u672c\u9e21\u7684ip\uff0c\u7f51\u5361\u4e0a\u7ed1\u5b9a\u4e86\u7684\u3002\u90a3\u8fd9\u4e24\u4e2aheader\u96be\u9053\u662f\u4f2a\u88c5\u7684\uff1f\u4ececf\u8fc7\u6765\u7684\u8fd8\u662f\u4f2a\u88c5\u4eceCF\u6765\u7684\uff1f \u5173\u4e8e\u8fd9\u4e2a\u8bbe\u7f6e\uff0c\u6211\u7528\u672c\u673achrome\u6253\u5f00\u67e5\u770b\u65e5\u5fd7\u4e2dip\u90fd\u662f\u51c6\u786e\u7684\u3002<\/p>\n<p>  \u7ec8\u4e8e\u5b9a\u4f4d\u51fa\u6765\u4e86\u3002<\/p>\n<p>  \u539f\u6765\u662fWP Super Cache\u7684\u95ee\u9898\u3002\u3002\u8fd9\u4e2a\u63d2\u4ef6\u65e0\u610f\u6211\u5f00\u4e86\u4e2apreload\u6a21\u5f0f\uff0c\u4e00\u65e6\u89e6\u53d1\u4e86\uff0c\u4f1a\u81ea\u52a8\u904d\u5386\u6240\u6709post url\uff0c\u4ee5\u671f\u751f\u6210\u7f13\u5b58\u3002 \u86cb\u75bc\u7684\u63d2\u4ef6<\/p>\n<p>  2\u7c7b\u4f3cip \u201c172.69.33.99\u201d \u662f\u6765\u81eacloudflare\u5957\u5957\u5417? \u4f46\u662f\u5728\u5b98\u65b9ip\u5217\u8868 https:\/\/www.cloudflare.com\/ips\/\u6ca1\u627e\u5230\uff0c\u90a3\u662f\u5426\u662f\u4f2a\u88c5\u7684ip?<br \/>  &#8212;&#8211;\u8fd9\u4e2a\u5df2\u7ecf\u89e3\u51b3\uff0c\u501f\u52a9\u697c\u4e0b\u51e0\u4f4d\u5206\u6790\u662f\u5728CF IP\u5217\u8868\u4e2d<\/p>\n<p>  \u770b\u770b\u6709\u6ca1\u6709CF\u5927\u795e\u4e00\u8d77\u770b\u770b\u3002<\/p>\n<p>  \u4e5f\u5728CF\u5b98\u65b9\u8be2\u95ee\u4e86\uff0c\u53ef\u4ee5\u56f4\u89c2\uff1ahttps:\/\/community.cloudflare.com\/t\/help-is-this-ip-is-a-fake-cloudflare-ip\/140975\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u843d\u53f6\u968f\u98ce<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 10:58:15\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u53cd\u4ee3\u5957cf\uff1f<br \/>  \u8fd9\u4e2aip\u50cf\u662fcf\u7684\u56de\u6e90ip  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u51bb\u732b<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 10:59:05\t<\/p>\n<h3><\/h3>\n<p>  \t\t172.69\u5f00\u5934\u7684\u662fCF\u56de\u6e90\u670d\u52a1\u5668IP\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>affyun.org<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 10:59:26\t<\/p>\n<h3><\/h3>\n<p>  \t\t172.64.0.0\/13<br \/>  \u4f60\u4e3a\u4f55\u8fd9\u4e48\u767d\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>mobisww<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 11:02:18\t<\/p>\n<p>  \t\t\t\t\t<strong>yaren<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 11:04:28\t<\/p>\n<h3><\/h3>\n<p>  \t\taffyun.org \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 10:59<br \/>  172.64.0.0\/13<br \/>  \u4f60\u4e3a\u4f55\u8fd9\u4e48\u767d<\/p>\n<p> \u54c8\u54c8\uff0cip\u6bb5\u6ca1\u4ed4\u7ec6\u7814\u7a76\u8fc7yc010t\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u7f9e\u6da9<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 11:05:40\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e86\u89e3\u4e00\u4e0bIPV4 IP\u6bb5\u683c\u5f0f\u7b97\u6cd5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>shiro<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 11:09:13\t<\/p>\n<h3><\/h3>\n<p>  \t\thttp:\/\/nginx.org\/en\/docs\/http\/ngx_http_realip_module.html<br \/>  \u5e94\u8be5\u642d\u914d\u8fd9\u4e2a\u6307\u4ee4 set_real_ip_from<\/p>\n<p>  \u653e\u5230nginx\u914d\u7f6e\u6587\u4ef6http\u5757\u91cc<\/p>\n<p>  set_real_ip_from 173.245.48.0\/20;<br \/>  set_real_ip_from 103.21.244.0\/22;<br \/>  &#8230;<br \/>  real_ip_header X-Forwarded-For;<br \/>  real_ip_recursive on;  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yaren<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 11:17:46\t<\/p>\n<h3><\/h3>\n<p>  \t\tshiro \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 11:09<br \/>  http:\/\/nginx.org\/en\/docs\/http\/ngx_http_realip_module.html<br \/>  \u5e94\u8be5\u642d\u914d\u8fd9\u4e2a\u6307\u4ee4 set_real_ip_from<\/p>\n<p> \u8fd9\u4e2a\u6211\u6709\u914d\u7f6e\u8fc7<br \/>  \u914d\u7f6e\u4e4b\u540e\uff0cremote_addr\u5c31\u4e5f\u53d8\u6210\u4e86\u672c\u673aip \uff08200.200.200.200\uff09\u4e86\u3002<br \/>  \u6240\u4ee5\u975e\u5e38\u5947\u602a\u7684\u662f\uff0c\u4e3a\u5565\u4ececf\u8fc7\u6765\u7684http_cf_connecting_ip\u4e5f\u662f\u672c\u673aIp\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yaren<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-8 11:38:07\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9876\u4e00\u4e0b\uff0c\u5173\u952e\u662f\uff0c\u4e3a\u4ec0\u4e48cf\u8fc7\u6765\u7684\u5ba2\u6237\u5730\u5740\u4f1a\u662f \u6211vps\u7684ip\u554a\uff1f\u6709\u6ca1\u6709\u4eba\u9047\u5230\u8fc7\uff1f<br \/>  \u96be\u9053\u662fopenvz\u7684vps\u6709bug\u5417\uff1f\u6216\u8005\u662f\u6bcd\u9e21\u4e0a\u7684\u8bf7\u6c42\u5417\uff1f\u8fd9\u4e2avps\u8fd8\u80fd\u7528\u5417\uff1f\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>yaren \u5927\u4f6c\u6709\u8bdd\u8bf4 : 202&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\/29843"}],"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=29843"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/29843\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29843"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}