Ok, so I am kind of new to jQuery and web programming in general, (though I have been doing web services and SharePoint related C# for a few years, but only ever with an internal setup where security wasn't an issue) But now I am looking to create a public website that pulls information from an internal Database. I know how I can implement a web service and I know how I can make it secure. However I then need to call the web service using Jquery from a page. I know how to do this as well.
What I am struggling with is how to secure that. If I am able to call the web service from my page, what's to stop person XYZ from coming along, stealing my Jquery/Code and accessing MY web service with THIER website? how can I stop this, I've thought about ways to encrypt the data/authenticate, but anything I do can be accessible then because they can just view whatever I do in the Jquery.
any suggestions on how I would go about securing my web service so only people from my website could access it would be great.