How can I block unwanted clients from accessing my API?

0
13
Asked By TechWhiz42 On

I'm looking for a way to prevent clients from accessing my REST API for ticket purchasing, especially those that use automated methods to resell tickets at higher prices. Has anyone developed a solution for this, or do you have any suggestions on how to verify that a request is coming from a legitimate app?

2 Answers

Answered By DevGuru102 On

This question comes up a lot! The reality is that anything you implement can potentially be spoofed by someone with enough motivation. For example, if your app indicates it's a specific version, someone could easily pretend to be that version. While stopgap measures exist, they can often be bypassed. Instead of just blocking clients, I'd suggest you clarify what you're specifically trying to prevent. Understanding your goal might lead to more effective solutions.

Answered By SecureDev_89 On

I've tackled a similar issue before. One effective method we used was implementing an HTTP client certificate challenge. This, in combination with enterprise security software and strict admin controls, helped prevent users from easily accessing or replicating the required certificate. However, if you don't have full control over your client devices, it becomes much tougher to prevent unwanted access.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.