M
M
Max Darkleviathan2019-12-16 11:48:09
PHP
Max Darkleviathan, 2019-12-16 11:48:09

What is the best way to provide access to a link with a json array to only one or several users?

Please tell me what method is better to close access to a link with a json array and allow data to be collected, for example, having some kind of key?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
ThunderCat, 2019-12-16
@darkleviathan

if this is an array of data - store in the database, give by the keys that are in the database in a separate key table, after use the key is erased or marked invalid. In general, it strongly depends on the task, there may be a dozen solutions to your question, each of which is better suited for a particular task.

F
freeExec, 2019-12-16
@freeExec

Yes, even the implementation of authorization through .htaccess. The problem is usually different, if this is done on the client side, then it will not be difficult for him to find out what needs to be sent to the server in order to get the result.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question