-1

Can my software send information to my site and read information off my site?

Imagine that someone opens a copy of my software. The IP address of that device send to my site. So I can see if that person is a friend or not. If that person is not a friend, I will set a variable to false. The software will then read it as false then the software will close out.

Is this possible to do? If so, how can I do this?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Jeff
  • 11
  • 4
  • Take a look at [this answer](http://stackoverflow.com/a/10182935/2263683) – Ghasem Jan 03 '16 at 08:32
  • you can build a register and login page which will give you similar approach, ( all users to your services must be authenticated in order to access your site details) – Monah Jan 03 '16 at 08:50
  • Could you please explain what your tried and in what way it did not work for you? (You've likely already searched for something like https://www.bing.com/search?q=c%23+send+read+data+web+site and it should be trivial to add couple links/examples to the post to make it more concrete). – Alexei Levenkov Jan 03 '16 at 08:51
  • You're essentially describing _[Digital Rights Management (DRM)](https://en.wikipedia.org/wiki/Digital_rights_management)_ –  Jan 03 '16 at 10:38

1 Answers1

1

You need to add a web service on your site then you can call the service and get an answer. You can also create a simple web page that see a white page with the result true or false. Consider using a WCF service so that it can expand if you needed more in the future.

erikscandola
  • 2,854
  • 2
  • 17
  • 24