How to restrict access to a PHP file?

后端 未结 7 1307
故里飘歌
故里飘歌 2021-01-06 20:47

I\'d like to restrict access to a PHP file on my server. This PHP file takes data from an HTTP GET request and appends it to a file. Simple. But I don\'t want this PHP fi

7条回答
  •  借酒劲吻你
    2021-01-06 21:09

    There's no guarantee method. You can use oauth authentication... Depending upon what platform your using and how your deploying app to the phone, maybe perhaps you can compile your key into the application itself? Anything can & will always be cracked, there is no 100% security... But no shame in trying. :)

    Personally what I use for my mobile apps is RESTful authentication with regular login/pass pair the token based communication till it expires. :)

提交回复
热议问题