English 中文(简体)
如何确保图像代理?
原标题:How to secure an image proxy?

我制作了一个简单的PHP图像代理复印件,收集了URI的数据,因此,我可以使用超文本5的图像。

I want to secure the proxy so that it only processes my requests, from a single domain. Is there a way I can do this considering the api is accessed through client side JavaScript?

问题回答

也可以检查:$_SERVER[ HTTP_REFER]与贵领域相吻合。 然而,注意到有合理的理由(如过滤亲子或浏览器隐私环境),说明哪怕是用户浏览你的网站,提及人可能空白或失踪或不完整:如果发送人向某个领域指出other,那么你能做的最好就是拒绝提供图像。





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Remotely authenticating client Windows user on demand

Suppose I am writing a server for a particular network protocol. If I know that the client is running on a Windows machine, is it possible for my server to authenticate the Windows user that owns the ...

Role/Permission based forms authorizing/authentication?

While looking into forms authorizing/authentication, I found that it is possible to do role based authorizing by adding an array of roles to a FormsAuthenticationTicket. That way I can write User....

热门标签