Answer the question
In order to leave comments, you need to log in
Client-server requests, how to do it right?
There is a client application and of course there is a responder on the server side.
How can you protect the server from requests outside the client - for example, someone decided to track the request through the client application and decided to communicate directly with the server.
Checking user-agent ? It is possible to replace
And all the rest it seems can be traced (request which is sent to the server).
For example, if I want to make it possible for the application to directly add data to the server (without captcha), the evil uncle can track which request is coming and, based on this, make such requests directly (referer can also be replaced).
Who has experience share)
ps I searched in Google, or searched badly, or there is no answer for my version of the question
pssOPTION WITHOUT AUTHORIZATION / REGISTRATION - or is there no such option?
Answer the question
In order to leave comments, you need to log in
In the program, you write the algorithm by which you generate the user id. You interpose this Id into requests. On the server, you check Id , if it is generated correctly, you return a response. If not, you're trolling.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question