Imagine I have an ActionResult like this:
[HttpGet]
public ActionResult Cities(string q)
{
//Return a list of cities that matches parameter
}
How do I stop all other sites apart from mine using this as if it's their own little REST-based service for getting a list of matching cities? Is checking the referrer the only way to go? Or are there any better ideas?