求教,有没有便宜的图片存储平台

2018-10-09 11:18:01 +08:00
 qiutianaimeili

前段时间弄了一个博客,然后图片存的是七牛,最近不知道怎么回事,然后就是流量消耗的特别快,导致总是欠费,刚交了钱,没几天就欠费了,长久下去,肯定消耗不起啊。本来博客就是纪录一些平常的东西,也赚不到钱,下面是我发现可能导致欠费的原因: 看了看,好像就是那个国内下载流量老是超,那个好像一个月有 10 个 G 的免费流量,现在网站一天就有 3,4g 的流量,然后现实是一天也没几个人看,哪来这么高的流量?有没有遇到类似问题的?这个国内下载流量到底是啥?另外大家知不知道便宜存图片的地方?

网站地址:http://qiutianaimeili.com

2537 次点击
所在节点    问与答
38 条回复
qiutianaimeili
2018-10-09 13:53:24 +08:00
@nikoo 老哥,同病相怜啊,我现在想法是用微博图床,七牛那边我把访问特别高的几个图片删除,然后更新了 CDN 缓存,看看能否下降。
nikoo
2018-10-09 14:03:10 +08:00
@qiutianaimeili 你在后台开启一下 CDN 的空间日志 /访问日志

https://developer.qiniu.com/kodo/manual/3796/set-the-log

应是有两天的延迟,然后观察下流量情况,把日志发上来研究一下
qiutianaimeili
2018-10-09 14:11:30 +08:00
@nikoo 121.206.235.178 HIT 0 [09/Oct/2018:00:01:00 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_4.jpg HTTP/1.1" 200 45760 "http://cktool.cy1788.com/html/bulletScreen.jsp?username=en5zfnJ5eH17eHw%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
125.94.171.58 HIT 1 [09/Oct/2018:00:01:30 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_4.jpg HTTP/1.1" 200 45761 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=en5zen55fn97en0%3D" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
113.97.34.137 HIT 2 [09/Oct/2018:00:01:42 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 200 95133 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=enNyc3tyfX1zc3s%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
113.69.211.179 HIT 0 [09/Oct/2018:00:04:29 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 200 95133 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=en56fnx8fH96c3s%3D" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
39.128.16.66 HIT 1 [09/Oct/2018:00:00:27 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 200 95138 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=enhye3Nzfnxye3g%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
111.18.34.102 MISS 141 [09/Oct/2018:00:03:21 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_4.jpg HTTP/1.1" 404 1163 "http://cktool.cy1788.com/html/bulletScreen.jsp?username=enNzeXJ7eH5_fXs%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
39.181.159.34 HIT 2 [09/Oct/2018:00:02:10 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 200 95104 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=enh6f3p-en17fns%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
183.199.128.101 MISS 75 [09/Oct/2018:00:01:18 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_4.jpg HTTP/1.1" 404 1092 "http://cktool.cy1788.com/html/bulletScreen.jsp?username=enNzen55eHp6eHk%3D" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
115.212.180.225 MISS 18 [09/Oct/2018:00:00:32 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 404 1095 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=en5yfnxyeXN7fH8%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
42.199.48.62 HIT 1 [09/Oct/2018:00:02:48 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 200 95138 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=enh9c3l5enxzf3s%3D" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
58.17.61.84 MISS 73 [09/Oct/2018:00:02:22 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 404 1155 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=enNzfHJyfHNzfXo%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
39.186.31.124 MISS 43 [09/Oct/2018:00:01:26 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 404 1096 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=enh5c3l8enx8c3o%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
36.250.175.121 MISS 61 [09/Oct/2018:00:02:08 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_4.jpg HTTP/1.1" 404 1157 "http://cktool.cy1788.com/html/bulletScreen.jsp?username=enN9fnJ_c3lzeng%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
121.205.100.186 MISS 38 [09/Oct/2018:00:01:48 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 404 1148 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=enh-fnJ-c3N4ens%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
117.24.202.9 MISS 19 [09/Oct/2018:00:03:21 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 404 1106 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=enN7fntzen5yeHw%3D" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
117.87.151.116 MISS 40 [09/Oct/2018:00:00:35 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 404 1150 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=enx4fHlyeXl4fX4%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
222.184.187.187 MISS 20 [09/Oct/2018:00:01:51 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_4.jpg HTTP/1.1" 404 1094 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=en5ye315c3t4eX4%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
222.184.187.187 MISS 19 [09/Oct/2018:00:01:51 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 404 1094 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=en5ye315c3t4eX4%3D" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
59.61.198.6 MISS 51 [09/Oct/2018:00:04:40 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_4.jpg HTTP/1.1" 404 1147 "http://cktool.cy1788.com/html/bulletScreen.jsp?username=enN7fnt9cn5-fnM%3D" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
125.94.171.58 HIT 1 [09/Oct/2018:00:01:30 +0800] "GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 200 95133 "http://xztooljk.cy1788.com/html/bulletScreen.jsp?username=en5zen55fn97en0%3D" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36"
qiutianaimeili
2018-10-09 14:13:34 +08:00
@nikoo
one_year_head_4.jpg

one_year_head_3.jpg
这两个图片访问量很高,是不是有人在刷啊?
qiutianaimeili
2018-10-09 14:16:21 +08:00
@nikoo 我大概看出来了,应该是有人拿了我的 demo 源码,然后放在网上了,所以导致这两个图片的访问量很大。
nikoo
2018-10-09 14:18:21 +08:00
根据这个日志大部分请求返回 404 了,这个图片是在各个节点陆续删除,所以应该流量会降下来

在哪获得的这个即时的 CDN 访问日志?

可以开一下网站的 access log,然后看看图片访问日志里的 IP 有没访问你网站对应的页面,验证一下这些访问的真实性
nikoo
2018-10-09 14:21:47 +08:00
@qiutianaimeili 如果是别人拿你源码建站,你可以在 CDN 后台“防盗链”里限制仅你的域名可访图片来解决
qiutianaimeili
2018-10-09 14:24:22 +08:00
@nikoo 我的 CND 日志一直是开的,只是一直没看,这个也是前几天的,我早些时候把这两个图片已经删除了,但是我这边还能访问,我估计应该是某些新的没有缓存的节点访问不到,所以 404,已经缓存过的节点就返回 200,现在我已经把这两个图片的缓存彻底清了,但是我担心到时候 404 的访问会不会算流量。
qiutianaimeili
2018-10-09 14:31:29 +08:00
@nikoo 测试域名能防盗链吗?好像只有绑定的域名才能防盗链。
nikoo
2018-10-09 14:37:40 +08:00
@qiutianaimeili

404 只会消耗少量流量,这张图片正常情况下:
"GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 200 95133
95KB 流量

404 的话:
"GET http://od2op62zm.bkt.clouddn.com/one_year_head_3.jpg HTTP/1.1" 404 1095
1KB 流量

测试域名应也可以开防盗,在后空间后台看看
qiayue
2018-10-09 14:38:42 +08:00
你源头删除了,七牛缓存的还有,需要去七牛那里删除文件
nikoo
2018-10-09 14:39:32 +08:00
做个站真难啊兄弟!!! 1KB 1KB 的抠搜
qiutianaimeili
2018-10-09 14:55:52 +08:00
@nikoo 是啊。真是长见识了。原来穷,真的啥也做不了。。
qiutianaimeili
2018-10-09 14:59:25 +08:00
@qiayue 嗯,今天把缓存那也删了,看看会不会好些。
yc8332
2018-10-09 15:17:30 +08:00
有防盗链的设置啊。如果你只是网站的话,必须设置啊。至少能防绝大部分
gettext
2018-10-09 19:53:46 +08:00
别用 7niu
msg7086
2018-10-10 02:00:54 +08:00
@msg7086 公益,零广告。
msg7086
2018-10-10 02:01:34 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/495862

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX