V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
wojiaodaxiaxia
V2EX  ›  Python

github 上挂了个静态页面(抓了知乎的一些答案,方便自己看),图片 403 错误

  •  
  •   wojiaodaxiaxia ·
    linux · Aug 26, 2016 · 4810 views
    This topic created in 3532 days ago, the information mentioned may be changed or developed.

    页面在这里

    10 replies    2016-08-29 00:51:27 +08:00
    popu111
        1
    popu111  
       Aug 26, 2016   ❤️ 1
    Referer 防盗链
    ljcarsenal
        2
    ljcarsenal  
       Aug 26, 2016   ❤️ 1
    图片做了禁止外链。。。你自己抓了图片上传到自己的服务器呗
    wojiaodaxiaxia
        3
    wojiaodaxiaxia  
    OP
       Aug 26, 2016
    @ljcarsenal 有几张显示出来了,html 在本地也能打开, 搞不懂 (´・_・`)
    Kokororin
        4
    Kokororin  
       Aug 26, 2016
    空 referer 可以,非知乎的第三方不行
    ljcarsenal
        5
    ljcarsenal  
       Aug 26, 2016
    倪一宁这货不是写软文被扒皮了么
    xddxdd
        6
    xddxdd  
       Aug 26, 2016   ❤️ 1
    @wojiaodaxiaxia referer 做了限制,显示出来的说不定是你在知乎主站浏览过这些图片缓存了
    phithon
        7
    phithon  
       Aug 26, 2016
    楼上正解,显示是缓存的。
    aprikyblue
        8
    aprikyblue  
       Aug 26, 2016 via Android
    显示出来是缓存,本地打开 html 的话没有 referer
    wojiaodaxiaxia
        9
    wojiaodaxiaxia  
    OP
       Aug 26, 2016 via Android
    @xddxdd 感谢 的确是缓存 手机打开就一张图片都显示不出来
    Izual_Yang
        10
    Izual_Yang  
       Aug 29, 2016 via Android
    第一反应就是 referer
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   999 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 20:13 · PVG 04:13 · LAX 13:13 · JFK 16:13
    ♥ Do have faith in what you're doing.