I was ready to create an API, but I couldn't find a way to restrict users who weren't logged in.For users who have successfully logged in, I can fulfill this requirement. But for users who are not logged in, I hope he can use it 10 times for free.
The question is how to effectively control it?
- cookie?
- browser fingerprinting?
- ip?
I have thought about the above approach, but do not know how to achieve it completely.I have no experience with this part.