I'M beginner to REST API creation.
I have created a REST API (provides JSON output) which I give access to multiple users(each has their API key).
I want each user can only use the API on a specific website, not for other websites.
Example:
User-A (with unique API key) took my API for "example1.com".
User-B (with unique API key) took my API for "example2.com".
so my API should run on these 2 sites, they can not run it in "example3.com".
How can I restrict them?