Restrict access to images on my website except through my own htmls

前端 未结 5 387
没有蜡笔的小新
没有蜡笔的小新 2021-01-03 14:33

On my website I store user pictures in a simple manner such as: \"image/user_1.jpg\".

I don\'t want visitors to be able to view images on my server just by trying us

5条回答
  •  孤独总比滥情好
    2021-01-03 15:10

    Any method you choose to determine the source of a request is only as reliable as the HTTP_REFERER information that is sent by the user's browser, which is not very. Requiring authentication is the only good way to protect content.

提交回复
热议问题