dtt27783 2016-06-16 09:09
浏览 37
已采纳

PHP - 只允许访问我的网站

I've created a Angular website and an PHP API but I don't want my API being usable to everyone and I don't know how to block access to all users except my website.

Some ideas, advices ?

  • 写回答

3条回答 默认 最新

  • douwojiao5919 2016-06-16 09:14
    关注

    You would want to implement some sort of authentication or limiting of access. Here are something to get you started: https://www.sitepoint.com/php-authorization-jwt-json-web-tokens/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?