Android Client, Http Server, How do I know client is sending data using my app? authentication

后端 未结 3 1633
悲哀的现实
悲哀的现实 2021-01-15 05:28

I have client/server data passing all working correctly. Text, Images, etc. My users create blog-type posts on their android device, and upload to my server.. All is done us

3条回答
  •  春和景丽
    2021-01-15 05:53

    You can use a captcha to solve this problem.

    1. Before submitting the post, request the server for a captcha.
    2. Server associates a random captcha image with a unique key, and sends the application both the captcha and the key.
    3. Show the captcha image to the user.
    4. Send the post, the letters entered by the user and the unique key in your http request.
    5. Server verifies the captcha letters based on the unique key.
    6. If captcha verification succeeded you add the post, otherwise you don't.

    This should solve all the scenarios.

提交回复
热议问题